Skip to content

Extend remote madvise API to KSM hints

Oleksandr Natalenko linux-api linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5mm: rename madvise_core to madvise_commonmm/madvise.c+7 -70 replies
2/5mm: revert madvise_inject_error line splitmm/madvise.c+1 -20 replies
3/5mm: include uio.h to madvise.cmm/madvise.c+1 -00 replies
4/5mm/madvise: employ mmget_still_valid for write lockmm/madvise.c+3 -00 replies
5/5mm/madvise: allow KSM hints for remote APImm/madvise.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH NOTFORMERGE 0/5] Extend remote madvise API to KSM hints

Hi, Minchan.

This is a set of commits based on our discussion on your submission [1].

First 2 implement minor suggestions just for you to not forget to take them into account.

uio.h inclusion was needed for me to be able to compile your series successfully. Also please note I had to enable "Transparent Hugepage Support" as well as "Enable idle page tracking" options, otherwise the build failed. I guess this can be addressed by you better since the errors are introduced with MADV_COLD introduction.

Last 2 commits are the actual KSM hints enablement. The first one implements additional check for the case where the mmap_sem is taken for write, and the second one just allows KSM hints to be used by the remote interface.

I'm not Cc'ing else anyone except two mailing lists to not distract people unnecessarily. If you are fine with this addition, please use it for your next iteration of process_madvise(), and then you'll Cc all the people needed.

Thanks.

[1] https://lore.kernel.org/lkml/[email protected]/

Oleksandr Natalenko (5):
mm: rename madvise_core to madvise_common
mm: revert madvise_inject_error line split
mm: include uio.h to madvise.c
mm/madvise: employ mmget_still_valid for write lock mm/madvise: allow KSM hints for remote API

 mm/madvise.c | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)
Signature · 1 line
2.22.0