1 |
Am 26.05.2012 22:28, schrieb Dale: |
2 |
> Jarry wrote: |
3 |
>> On 26-May-12 22:01, Dale wrote: |
4 |
>>> Jarry wrote: |
5 |
>>>> |
6 |
>>>> after updating baselayout from 2.0.3 to 2.1-r1 /run is mounted |
7 |
>>>> as tmpfs. But I can not find any mount-option for controlling |
8 |
>>>> how much memory is (or could be) used for it. |
9 |
>>>> |
10 |
>>>> Filesystem 1K-blocks Used Available Use% Mounted on |
11 |
>>>> tmpfs 8223848 224 8223624 1% /run |
12 |
>>>> |
13 |
>>>> I know it does not use 8GB right now, yet I'd like to reduce |
14 |
>>>> it to some lower value, not half of my physical memory. |
15 |
>>>> How can I do it? Can I simply add line in fstab like: |
16 |
>>>> |
17 |
>>>> none /run tmpfs size=128m 0 0 ??? |
18 |
>>>> |
19 |
>>>> Jarry |
20 |
>>> |
21 |
>>> Holy smoke ! Mine is doing the same thing. |
22 |
>>> tmpfs 7.9G 260K 7.9G 1% /run |
23 |
>>> |
24 |
>>> But I also have this: |
25 |
>>> tmpfs 7.9G 0 7.9G 0% /var/tmp/portage |
26 |
>>> |
27 |
>>> So, between those two, I could run out of ram since I have 16Gbs. |
28 |
>>> |
29 |
>>> There is now TWO people that needs a answer to this question. Why does |
30 |
>>> it need that much anyway? It looks to me like a few hundred Mbs, like |
31 |
>>> Jarry posted, would be plenty. Jeepers creepers. lol |
32 |
>>> |
33 |
>>> Dale |
34 |
>> |
35 |
>> I suppose default size for tmpfs is half of physical memory, |
36 |
>> if it is not configured somewhere else. |
37 |
>> |
38 |
>> BTW, is there any way to turn this great feature off? |
39 |
>> What is it good for? I do not see any advantage in having |
40 |
>> /run on tmpfs... |
41 |
>> |
42 |
>> Jarry |
43 |
> |
44 |
> |
45 |
> I had no idea it was doing this either until your post. I got the same |
46 |
> questions as you do. Why is it there? Why so much is allocated to it? |
47 |
> Where can we change the settings for this questionable "feature"? |
48 |
> |
49 |
> I'm hoping someone will come along and answer both our questions. I'm |
50 |
> really hoping for a place we can change the settings. I don't mind it |
51 |
> being there so much if it is useful. I would like to know its purpose |
52 |
> tho. |
53 |
|
54 |
As Michael Mol already said, tmpfs for the run dir is not a bad thing, |
55 |
it, it does not eat all your ram :) |
56 |
I however have a different question: Why do we need a new /run when we |
57 |
already have /var/run. There's no mention of /run in the FHS either. |
58 |
I only see udev stuff under /run - So it's another crazy udev thing? :) |