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-28 21:19 99%                                   ` Michael Mol
  0 siblings, 0 replies; 1+ results
From: Michael Mol @ 2012-05-28 21:19 UTC (permalink / raw
  To: gentoo-user

On Mon, May 28, 2012 at 3:24 PM, Jarry <mr.jarry@gmail.com> wrote:
> On 28-May-12 20:58, Michael Mol wrote:
>
>>>>> Q2: Can I turn this "/run in tmpfs" feature off?
>>
>>
>> Up front: I don't know. Not my area of expertise, but I also don't
>> think you've given enough information about your system to really
>> answer.
>>
>> 1) Are you using openrc or systemd? (which version?)
>
>
> openrc 0.9.8.4

I'll let someone more familiary with openrc figure out if/how you'd
reconfigure it wrt /run.

>
>
>> 2) Are you using an initramfs? (Generated by what version of what?)
>
>
> no, but I might be forced to use it later when udev >=181 becomes
> stable.

Is your /usr on a separate partition?

[snip]

>> But why would you want to?
>
>
> I do not see any advantage in having /run on tmpfs.
>
>> will be automatically moved to your swap partition if doing so
>> benefits your system.
>
>
> I'm not sure it is true. I have read somewhere that tmfps is
> never moved to swap.

Then you didn't read the link I gave above, which points directly to
the kernel documentation on tmpfs. Here's the link again:

http://www.kernel.org/doc/Documentation/filesystems/tmpfs.txt

> Anyway, I prefer not using swap at all.

I'm *generally* of the same opinion, but I budge here and there. I try
to have enough RAM in my various systems that I can build chromium and
libreoffice without things getting shoved to swap. (Heh. There's a
losing battle, especially when I parallelize stuff so much. And have
you seen the RAM consumed by ld in chromium's final link stages?)

> And I have better use for physical memory than holding some
> more-or-less statical data...

This is *exactly* what swap is for.

http://kerneltrap.org/node/3000

If you have, e.g. five terabytes of swap space and five terabytes of
RAM, and you set vm.swappiness to 0, your swap space will never get
touched. (Unless you somehow manage to consume all your RAM.)

In such a scenario, it'd be like not having any swap at all.

With that in mind, whether or not you have any swap, your only
sacrifice is how much space on a block device you sacrifice for a swap
partition. With the exception of some virtual machines, none of my
systems have drives smaller than 160GB. Discount laptops and mobile
devices, and none of my systems have drives smaller than 500GB. One
can easily throw 1GB of disk at swap (which then never gets used) and
not notice it in filesystem volume; I have running ext* filesystems
with more intrinsic overhead than that.

[snip]

-- 
:wq



^ 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:40         ` Neil Bothwick
2012-05-26 22:17           ` Dale
2012-05-26 22:34             ` Neil Bothwick
2012-05-26 23:17               ` Dale
2012-05-26 23:21                 ` Alan McKinnon
2012-05-27  0:15                   ` Dale
2012-05-27  2:30                     ` Pandu Poluan
2012-05-27  3:06                       ` Dale
2012-05-27  4:29                         ` Joshua Murphy
2012-05-27  6:20                           ` Canek Peláez Valdés
2012-05-27  7:05                             ` Jarry
2012-05-27  8:24                               ` Neil Bothwick
2012-05-28 18:31                                 ` Jarry
2012-05-28 18:58                                   ` Michael Mol
2012-05-28 19:24                                     ` Jarry
2012-05-28 21:19 99%                                   ` Michael Mol

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