LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 04-15-2009, 08:23 PM   #1
orbit
Member
 
Registered: Sep 2006
Location: Australia
Distribution: Slackware
Posts: 176

Rep: Reputation: 30
unable to increase /tmp


Hi all,

Using slack12 I am coming up against a strange issue with not having enough /tmp space.

I tried to install the openoffice3.0.1 autobuilder and it failed because I did not have enough /tmp freespace (Open Office needed 1100mb and my system only had 500mb /tmp freespace).

(BTW, I also have 1GB of physical memory and a 1GB swap partition in this system).


My fstab line originally read as:
Quote:
tmpfs /tmp tmpfs defaults 0 0

So in an attempt to increase /tmp space, I created a new separate 2GB xfs partition at /dev/hda8, and adjusted my fstab to read:
Quote:
/dev/hda8 /mnt/tmp tmpfs defaults 0 0

But after rebooting, my system still only has 500mb of /tmp space available on the new 2GB partition?


FSTAB contents:
Quote:
/dev/hda2 swap swap defaults
/dev/hda1 / reiserfs defaults
devpts /dev/pts devpts gid=5,mode=620
proc /proc proc defaults
/dev/hda8 /mnt/tmp tmpfs defaults 0 0
/dev/hda6 /mnt/ntfs ntfs-3g noauto,user,rw,umask=000,dmask=000,fmask=000
none /proc/bus/usb usbfs auto,busgid=1000,busmode=0775,devgid=100,devmode=0666


Mount command shows:
Quote:
root@Crazed-Weasel:~# mount
/dev/hda1 on / type reiserfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda8 on /mnt/tmp type tmpfs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)

df /mnt/tmp reports:
Quote:
root@Crazed-Weasel:~# df /mnt/tmp
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda8 517276 0 517276 0% /mnt/tmp

Does anyone know where this 500mb limitation is coming from?, and how can I increase /tmp space to 2GB?


Thanks in advance for any assistance.



.
 
Old 04-15-2009, 08:34 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 10,460

Rep: Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623
Don't use tmpfs on a disk partition - remove that altogether.
 
Old 04-15-2009, 08:42 PM   #3
orbit
Member
 
Registered: Sep 2006
Location: Australia
Distribution: Slackware
Posts: 176

Original Poster
Rep: Reputation: 30
Hi syg00,

Thanks for your response.

Can I ask more about your response... is tmpfs bad, what is it's purpose?

Also, will I have any negative system effects by removing tmpfs? (does anything need it?).

Thanks
 
Old 04-15-2009, 09:01 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 10,460

Rep: Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623
Quote:
Tmpfs is a file system which keeps all files in virtual memory.
That's from the tmpfs.txt file in your source tree.
By default it will be half your (RAM) memory size, as you found out - that can be enlarged, but can cause swap/page issues. Makes no sense for a physical (disk) parition.
On-disk /tmp will be a little slower, but you can make it whatever size you like.
 
Old 04-15-2009, 09:22 PM   #5
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 223Reputation: 223Reputation: 223
Yes - as said tmpfs is a virtual filesystem loaded in memory. Your entry in fstab showing the device is getting confused as you tell it it's a tmpfs system This will default to half of your memory. If you want to use the portion of disk you partitioned then then change your fstab entry to :
Code:
 /dev/hda8 /mnt/tmp xfs defaults 0 0
 
Old 04-15-2009, 10:01 PM   #6
lordwolf
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 42

Rep: Reputation: 15
Just from what I know...

You don't really need a separate partition for tmp and tmpfs is usually used by livecd distributions in Run-from-RAM mode. So, to suggest another alternative, just create /tmp in your root partition (I thought this is the default install?) and remove that tmp entry from your fstab.

cheers.
 
Old 04-15-2009, 10:11 PM   #7
orbit
Member
 
Registered: Sep 2006
Location: Australia
Distribution: Slackware
Posts: 176

Original Poster
Rep: Reputation: 30
Hi syg00, bgeddy and lordwolf,

Thanks for all your very helpful and instructional responses

I have removed the 'offending' fstab entry and after re-booting; was successfully able to create the openoffice autobuild package, so very happy.

Cheers very much
 
Old 04-16-2009, 01:30 AM   #8
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Ubuntu, Slackware
Posts: 1,877

Rep: Reputation: 222Reputation: 222Reputation: 222
Remember to check your /tmp directory from time to time. If you build a lot of packages, a lot of junk can accumulate there and take up space. So clean out /tmp now and then to free up space.
 
Old 04-16-2009, 02:52 AM   #9
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Rep: Reputation: 32
From what I remember, the default maximum size for 'tmpfs' is half of installed physical ram.

This can be changed by adding 'size=xxxx' to the entry in 'fstab'.

Bill.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Increase /tmp RAH104 Linux - Newbie 5 07-27-2008 08:55 PM
How to increase tmp partition - mount loop device grim2 Linux - Server 2 03-10-2008 08:27 AM
increase /tmp space to 1GB gobbs Linux - Newbie 3 01-22-2007 01:08 AM
/tmp partition won't increase? I_AM Linux - General 1 03-19-2005 12:18 AM
Unable to Increase Monitor Resolution latino Linux - Hardware 4 02-21-2005 06:26 PM


All times are GMT -5. The time now is 04:57 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration