[systemd-devel] Swap gets activated twice (through fstab and gpt generators)
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Tue Jan 27 21:33:59 PST 2015
On Tue, Jan 27, 2015 at 10:25:32PM -0700, Chris Murphy wrote:
> On Tue, Jan 27, 2015 at 8:19 PM, Zbigniew Jędrzejewski-Szmek
> <zbyszek at in.waw.pl> wrote:
> > You also need swap if you want to use all of your memory. If you have
> > no swap, allocating close to 100% RAM becomes very dangerous, because
> > any overflow will result in oom.
>
> Yes that makes sense too. Maybe zram will work out such that it
> effectively slows things to a craw until pressure instead of
> implosion, and swap on disk can mostly be obviated for the ordinary
> cases.
Certainly not for all cases. zram can give compression on the order of 50%
max, so it allows you to trade some CPU for RAM, but does not help at all
for the case I described, since my data is noncompressible and cpus are
maxed out anyway.
Zbyszek
More information about the systemd-devel
mailing list