1 |
On Sat, May 26, 2012 at 8:08 PM, Jarry <mr.jarry@×××××.com> wrote: |
2 |
> On 26-May-12 22:01, Dale wrote: |
3 |
> |
4 |
>> Jarry wrote: |
5 |
>>> |
6 |
>>> |
7 |
>>> after updating baselayout from 2.0.3 to 2.1-r1 /run is mounted |
8 |
>>> as tmpfs. But I can not find any mount-option for controlling |
9 |
>>> how much memory is (or could be) used for it. |
10 |
>>> |
11 |
>>> Filesystem 1K-blocks Used Available Use% Mounted on |
12 |
>>> tmpfs 8223848 224 8223624 1% /run |
13 |
>>> |
14 |
>>> I know it does not use 8GB right now, yet I'd like to reduce |
15 |
>>> it to some lower value, not half of my physical memory. |
16 |
>>> How can I do it? Can I simply add line in fstab like: |
17 |
>>> |
18 |
>>> none /run tmpfs size=128m 0 0 ??? |
19 |
>>> |
20 |
>>> Jarry |
21 |
>> |
22 |
>> |
23 |
>> Holy smoke ! Mine is doing the same thing. |
24 |
>> tmpfs 7.9G 260K 7.9G 1% /run |
25 |
>> |
26 |
>> But I also have this: |
27 |
>> tmpfs 7.9G 0 7.9G 0% /var/tmp/portage |
28 |
>> |
29 |
>> So, between those two, I could run out of ram since I have 16Gbs. |
30 |
>> |
31 |
>> There is now TWO people that needs a answer to this question. Why does |
32 |
>> it need that much anyway? It looks to me like a few hundred Mbs, like |
33 |
>> Jarry posted, would be plenty. Jeepers creepers. lol |
34 |
>> |
35 |
>> Dale |
36 |
> |
37 |
> |
38 |
> I suppose default size for tmpfs is half of physical memory, |
39 |
> if it is not configured somewhere else. |
40 |
> |
41 |
> BTW, is there any way to turn this great feature off? |
42 |
> What is it good for? I do not see any advantage in having |
43 |
> /run on tmpfs... |
44 |
|
45 |
If /var/run is described in /etc/fstab, then you can use mount options |
46 |
to control the maximum size of the tmpfs. |
47 |
|
48 |
http://www.kernel.org/doc/Documentation/filesystems/tmpfs.txt |
49 |
|
50 |
-- |
51 |
:wq |