RE: [PATCH] mm/vmscan: add vm_swappiness configuration knobs

From: Ivan Teterevkov
Date: Mon Mar 16 2020 - 12:15:16 EST


On Mon, 16 Mar 2020, Vlastimil Babka wrote:
>
> Setting the vm_swappiness specific case aside, I wonder if if would be
> useful to be able to emulate any sysctl with a kernel parameter,
> i.e. boot the kernel with sysctl.vm.swappiness=X
> There are already some options that provide kernel parameter as well
> as sysctl, why not just support all.
>
It looks like a missing feature to me but I've always assumed that
there is some unobvious philosophical reasoning behind not having
such interfaces in the kernel. The feature-wise I'd be one of the
first users of the sysctl command-line parameters.