Gentoo Archives: gentoo-user

From: Jarry <mr.jarry@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How can I control size of /run (tmpfs)?
Date: Sat, 26 May 2012 20:13:27
Message-Id: 4FC13850.2020802@gmail.com
In Reply to: Re: [gentoo-user] How can I control size of /run (tmpfs)? by Dale
1 On 26-May-12 22:01, Dale wrote:
2 > Jarry wrote:
3 >>
4 >> after updating baselayout from 2.0.3 to 2.1-r1 /run is mounted
5 >> as tmpfs. But I can not find any mount-option for controlling
6 >> how much memory is (or could be) used for it.
7 >>
8 >> Filesystem 1K-blocks Used Available Use% Mounted on
9 >> tmpfs 8223848 224 8223624 1% /run
10 >>
11 >> I know it does not use 8GB right now, yet I'd like to reduce
12 >> it to some lower value, not half of my physical memory.
13 >> How can I do it? Can I simply add line in fstab like:
14 >>
15 >> none /run tmpfs size=128m 0 0 ???
16 >>
17 >> Jarry
18 >
19 > Holy smoke ! Mine is doing the same thing.
20 > tmpfs 7.9G 260K 7.9G 1% /run
21 >
22 > But I also have this:
23 > tmpfs 7.9G 0 7.9G 0% /var/tmp/portage
24 >
25 > So, between those two, I could run out of ram since I have 16Gbs.
26 >
27 > There is now TWO people that needs a answer to this question. Why does
28 > it need that much anyway? It looks to me like a few hundred Mbs, like
29 > Jarry posted, would be plenty. Jeepers creepers. lol
30 >
31 > Dale
32
33 I suppose default size for tmpfs is half of physical memory,
34 if it is not configured somewhere else.
35
36 BTW, is there any way to turn this great feature off?
37 What is it good for? I do not see any advantage in having
38 /run on tmpfs...
39
40 Jarry
41 --
42 _______________________________________________________________
43 This mailbox accepts e-mails only from selected mailing-lists!
44 Everything else is considered to be spam and therefore deleted.

Replies

Subject Author
Re: [gentoo-user] How can I control size of /run (tmpfs)? Dale <rdalek1967@×××××.com>
Re: [gentoo-user] How can I control size of /run (tmpfs)? Michael Mol <mikemol@×××××.com>
Re: [gentoo-user] How can I control size of /run (tmpfs)? Neil Bothwick <neil@××××××××××.uk>