forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commit6638380
mm: fix madvise WILLNEED performance problem
The calculation of the end page index was incorrect, leading to aregression of 70% when running stress-ng.With this fix, we instead see a performance improvement of 3%.Fixes:e6e8871 ("mm: optimise madvise WILLNEED")Reported-by: kernel test robot <rong.a.chen@intel.com>Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Tested-by: Xing Zhengjun <zhengjun.xing@linux.intel.com>Acked-by: Johannes Weiner <hannes@cmpxchg.org>Cc: William Kucharski <william.kucharski@oracle.com>Cc: Feng Tang <feng.tang@intel.com>Cc: "Chen, Rong A" <rong.a.chen@intel.com>Link:https://lkml.kernel.org/r/20201109134851.29692-1-willy@infradead.orgSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent488dac0 commit6638380
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
0 commit comments
Comments
(0)