在 2020/11/26 下午11:55, Matthew Wilcox 写道: > On Thu, Nov 26, 2020 at 04:44:04PM +0100, Vlastimil Babka wrote: >> However, Matthew wanted to increase pagevec size [1] and once 15^2 becomes >> 63^2, it starts to be somewhat more worrying. >> >> [1] >> https://lore.kernel.org/linux-mm/20201105172651.2455-1-wi...@infradead.org/ > > Well, Tim wanted it ;-) > > I would suggest that rather than an insertion sort (or was it a bubble > sort?), we should be using a Shell sort. It's ideal for these kinds of > smallish arrays. > > https://en.wikipedia.org/wiki/Shellsort > Uh, looks perfect good!. I gonna look into it. :) Thanks!
- Re: [PATCH next] mm/swap.c: reduce lock contention in lru_... Vlastimil Babka
- Re: [PATCH next] mm/swap.c: reduce lock contention in... Alex Shi
- Re: [PATCH next] mm/swap.c: reduce lock contentio... Vlastimil Babka
- Re: [PATCH next] mm/swap.c: reduce lock contention in... Yu Zhao
- Re: [PATCH next] mm/swap.c: reduce lock contentio... Alex Shi
- Re: [PATCH next] mm/swap.c: reduce lock conte... Yu Zhao
- Re: [PATCH next] mm/swap.c: reduce lock c... Alex Shi
- Re: [PATCH next] mm/swap.c: reduce lock c... Vlastimil Babka
- Re: [PATCH next] mm/swap.c: reduce l... Vlastimil Babka
- Re: [PATCH next] mm/swap.c: redu... Matthew Wilcox
- Re: [PATCH next] mm/swap.c: ... Alex Shi