On 3/17/20 9:29 AM, Michal Hocko wrote: > On Mon 16-03-20 15:53:21, Vlastimil Babka wrote: >> On 3/12/20 2:26 PM, Michal Hocko wrote: > > This sounds like a much better idea than a case by case handling. I > wouldn't be surprised if some kernel parameters would duplicate sysctl > values. I cannot judge the implementation unfortunately but from a quick > glance it makes sense to me. Especially where you hooked it into because > not all handlers are simple setters for a global value. Some of them > have a much more complicated logic which requires a lot of > infrastructure to be set up already. So putting do_sysctl_args right > before the init is executed should be good enough. > > Care to post an RFC to a larger audience? Let's see where we get from > there. FYI done: (I didn't CC everybody from this thread) https://lore.kernel.org/linux-api/20200317132105.24555-1-vbabka@xxxxxxx/