Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to set size of tmpfs?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
war_pig
n00b
n00b


Joined: 27 May 2002
Posts: 17

PostPosted: Tue Jul 09, 2002 11:24 pm    Post subject: how to set size of tmpfs? Reply with quote

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
View user's profile Send private message
war_pig
n00b
n00b


Joined: 27 May 2002
Posts: 17

PostPosted: Tue Jul 09, 2002 11:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Wed Jul 10, 2002 12:02 am    Post subject: Re: how to set size of tmpfs? Reply with quote

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
View user's profile Send private message
ElCondor
Guru
Guru


Joined: 10 Apr 2002
Posts: 520
Location: Vienna, Austria, Europe

PostPosted: Wed Jul 10, 2002 12:10 am    Post subject: Reply with quote

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
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Wed Jul 10, 2002 12:17 am    Post subject: Reply with quote

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
View user's profile Send private message
war_pig
n00b
n00b


Joined: 27 May 2002
Posts: 17

PostPosted: Wed Jul 10, 2002 5:22 am    Post subject: Reply with quote

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
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Wed Jul 10, 2002 5:27 am    Post subject: Reply with quote

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
View user's profile Send private message
ElCondor
Guru
Guru


Joined: 10 Apr 2002
Posts: 520
Location: Vienna, Austria, Europe

PostPosted: Wed Jul 10, 2002 7:04 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum