On Wed, Mar 08, 2023 at 11:21:36AM +0100, Vlastimil Babka wrote: > > > On 3/6/23 07:07, ye.xingchen@xxxxxxxxxx wrote: > > From: Minghao Chi <chi.minghao@xxxxxxxxxx> > > > > In Documentation/admin-guide/sysctl/vm.rst:109 say: when 1 is written > > to the file, all zones are compacted such that free memory is available > > in contiguous blocks where possible. > > So limit the value of interface compact_memory to 1. > > > > Link: https://lore.kernel.org/all/ZAJwoXJCzfk1WIBx@xxxxxxxxxxxxxxxxxxxxxx/ > > I don't think the split to two patches you did, achieves Luis' request. > > IIUC his request was to move the compaction entries out of sysctl.c? Yes, thanks Vlastimil, just git log kernel/sysctl.c and you'll see tons of examples. Luis