public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] How can I control size of /run (tmpfs)?
  @ 2012-05-26 20:44 99%       ` Alex Schuster
  0 siblings, 0 replies; 1+ results
From: Alex Schuster @ 2012-05-26 20:44 UTC (permalink / raw
  To: gentoo-user

Dale writes:

> Jarry wrote:
>> On 26-May-12 22:01, Dale wrote:
>>> Jarry wrote:
>>>>
>>>> after updating baselayout from 2.0.3 to 2.1-r1 /run is mounted
>>>> as tmpfs. But I can not find any mount-option for controlling
>>>> how much memory is (or could be) used for it.
>>>>
>>>> Filesystem     1K-blocks    Used Available Use% Mounted on
>>>> tmpfs            8223848     224   8223624   1% /run
>>>>
>>>> I know it does not use 8GB right now, yet I'd like to reduce
>>>> it to some lower value, not half of my physical memory.
>>>> How can I do it? Can I simply add line in fstab like:
>>>>
>>>> none /run tmpfs size=128m 0 0         ???

Just try it :) I don't know if this would work, probably yes. But you
can change it later with mount -o remount,size=128m /run

>>> Holy smoke !  Mine is doing the same thing.
>>> tmpfs                   7.9G  260K  7.9G   1% /run
>>>
>>> But I also have this:
>>> tmpfs                   7.9G     0  7.9G   0% /var/tmp/portage

Now have a look at /dev/shm...

>>> So, between those two, I could run out of ram since I have 16Gbs.

But only if you copy stuff to /run yourself, otherwise this will never
happen.

>>> There is now TWO people that needs a answer to this question.  Why does
>>> it need that much anyway?  It looks to me like a few hundred Mbs, like
>>> Jarry posted, would be plenty.  Jeepers creepers.  lol

It doesn't need it, it's just the maximum sitze, which it will never reach.


>> I suppose default size for tmpfs is half of physical memory,
>> if it is not configured somewhere else.
>>
>> BTW, is there any way to turn this great feature off?
>> What is it good for? I do not see any advantage in having
>> /run on tmpfs...

In case of power failure or lockup, the contents are lost, and will not
cause confusion on the next reboot when /run is still populated by
stuff. Just an idea, I do not know if it would really matter.
But it does no harm, so why not juest keep it like it is.


> I had no idea it was doing this either until your post.  I got the same
> questions as you do.  Why is it there?  Why so much is allocated to it?
>  Where can we change the settings for this questionable "feature"?
> 
> I'm hoping someone will come along and answer both our questions.  I'm
> really hoping for a place we can change the settings.  I don't mind it
> being there so much if it is useful.   I would like to know its purpose
> tho.

I don't know the details, but I'd think it does not matter. There will
nothing be put into /run that uses a lot of memory, so it will never
actually use its default size of half of your RAM.

	Wonko



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2012-05-26 19:46     [gentoo-user] How can I control size of /run (tmpfs)? Jarry
2012-05-26 20:01     ` Dale
2012-05-26 20:08       ` Jarry
2012-05-26 20:28         ` Dale
2012-05-26 20:44 99%       ` Alex Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox