View previous topic :: View next topic |
Author |
Message |
war_pig n00b
Joined: 27 May 2002 Posts: 17
|
Posted: Tue Jul 09, 2002 11:24 pm Post subject: how to set size of tmpfs? |
|
|
i need to know where i set the size of the tmpfs filesystem used at boot
i added another kernel and it seems to be running out of space
what i found is to set it in initd/boot, but i dont have one, so i iknow its hidden somewhere i cant find it anywhere in /etc _________________ no signature available here |
|
Back to top |
|
|
war_pig n00b
Joined: 27 May 2002 Posts: 17
|
Posted: Tue Jul 09, 2002 11:54 pm Post subject: |
|
|
nm, found it, its a variable in /sbin/rc set in /sbin/functions.sh as a deribvative of $srvdir orsomething close to that... _________________ no signature available here |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Wed Jul 10, 2002 12:02 am Post subject: Re: how to set size of tmpfs? |
|
|
war_pig wrote: | i need to know where i set the size of the tmpfs filesystem used at boot |
tmpfs isn't a ramdisk formatted with a filesystem; you don't set its size. It grows as necessary to accomodate whatever files are added, first using RAM, then going to swap as necessary. It is highly unlikely that tmpfs was running out of space, unless you have very little virtual memory. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
ElCondor Guru
Joined: 10 Apr 2002 Posts: 520 Location: Vienna, Austria, Europe
|
Posted: Wed Jul 10, 2002 12:10 am Post subject: |
|
|
Hm .. I just tried copying a 40MB file to /mnt/.init.d/ but got No space left on device (and I've got 512MB here, so the 40 should be no problem). The tmpfs-disk has 1MB and doesn't grow here.
* ElCondor pasa * _________________ Here I am the victim of my own choices and I'm just starting! |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Wed Jul 10, 2002 12:17 am Post subject: |
|
|
Oops; I forgot to check the mount options of /mnt/.init.d:
Code: | tmpfs on /mnt/.init.d type tmpfs (rw,mode=0644,size=1024k) |
In general, though, it does grow as necessary unless told otherwise. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
war_pig n00b
Joined: 27 May 2002 Posts: 17
|
Posted: Wed Jul 10, 2002 5:22 am Post subject: |
|
|
its specifically set in /sbin/rc
i was trying out a nother kernel on the same system and for some reason coulndt get past updating system configuration during the boot process
but a handy reading of the error messages led me to /sbin/rc, which is a weird place for a boot config file, if you ask me _________________ no signature available here |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Wed Jul 10, 2002 5:27 am Post subject: |
|
|
The thing is that no one is supposed to reconfigure it. "1024 kilobytes should be enough for anyone!"
Seriously, though, as far as I know there's never been a problem with that before. What do you have that could account for such large "Caching service dependencies..." entries? _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
ElCondor Guru
Joined: 10 Apr 2002 Posts: 520 Location: Vienna, Austria, Europe
|
Posted: Wed Jul 10, 2002 7:04 am Post subject: |
|
|
On a laptop it's rather useful for temporary files, logging, etc. just those things that would keep the harddisk running all the time.
* ElCondor pasa * _________________ Here I am the victim of my own choices and I'm just starting! |
|
Back to top |
|
|
|