linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Questions about folio allocation.
@ 2022-04-24 11:35 Guo Xuenan
  2022-04-24 11:37 ` Matthew Wilcox
  0 siblings, 1 reply; 5+ messages in thread
From: Guo Xuenan @ 2022-04-24 11:35 UTC (permalink / raw)
  To: willy; +Cc: linux-mm, linux-kernel, houtao1, fangwei1, guoxuenan

Hi Matthew,

You have done a lot of work on folio, many folio related patches have been
incorporated into the mainline. I'm very interested in your excellent work
and did some sequential read test (using fixed read length, testing on a
10G file), and found something.
1. different read length may effect folio order
   using 100KB read length during sequentital read, when readahead folio
   order may always 0, so there always allocate folios with 0 or 2. 
2. folio order can not reach MAX_PAGECACHE_ORDER, when read length is small.
   (eg, less than 32KB)

As you have mentationed here[1],
"The heuristic for choosing which folio sizes will surely need some tuning"
I wonder (1) why the folio order need align with page index. is this
necessary or there are some certain restrictions?
(2) for pagecache, by using large folio, it saving loops for allocating pages,
and i also did some test on dropcache, it shows that dropcache costs less time.
there are twenty times performance improvement when drop the 10G file's cache.
so, can i concluded that pagecache should tend to use large order of folio?

[1] https://lore.kernel.org/linux-mm/20220204195852.1751729-72-willy@infradead.org/,

Thanks,
Guo Xuenan


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-28  9:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-24 11:35 Questions about folio allocation Guo Xuenan
2022-04-24 11:37 ` Matthew Wilcox
2022-04-24 13:30   ` Guo Xuenan
2022-04-27 21:15     ` Matthew Wilcox
2022-04-28  9:09       ` Guo Xuenan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox