[systemd-devel] [PATCH] swap: introduce Discard property

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Mon Sep 29 09:52:12 PDT 2014


On Mon, Sep 29, 2014 at 08:35:04PM +0400, Andrei Borzenkov wrote:
> В Mon, 29 Sep 2014 17:16:25 +0200
> Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl> пишет:
> 
> > 
> > The problem with reading but back discards settings remains.
> > 
> 
> Seems like the most natural solution is to extend /proc/swaps. The only
> place where these flags are printed right now is in dmesg during swapon.
Yeah, but how can you extend /proc/swaps in a backwards compatible way?
Like many kernel interfaces, it was designed with no thought towards
extensibility. A new file would have to be created (/proc/swapinfo?).

The advantage would be that all the flags could be exposed.
This new file could probably be also used to expose information about
zswap & friends.

Zbyszek


More information about the systemd-devel mailing list