Skip to content

ksm changes (v2)

Izik Eidus linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 46 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ksm: limiting the num of mem regions user can register per fd.mm/ksm.c+15 -01 reply
2/6ksm: dont allow overlap memory addresses registrations.mm/ksm.c+54 -417 replies
3/6ksm: change the KSM_REMOVE_MEMORY_REGION ioctl.mm/ksm.c+26 -1925 replies
4/6ksm: change the prot handling to use the generic helper functionsmm/ksm.c+6 -61 reply
5/6ksm: build system make it compile for all archsmm/Kconfig+0 -11 reply
6/6ksm: use another miscdevice minor number.Documentation/devices.txt include/linux/miscdevice.h+2 -11 reply

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchRik van Riel
1/6A-b
2/6
3/6
4/6A-b
5/6A-b
6/6A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] ksm changes (v2)

Following patchs touch 4 diffrent areas inside ksm:

1) Patchs 1 - 3: Change the api to be more robust and make more sense. This include:
* Limiting the number of memory regions user can register inside ksm per file descriptor that he open.

* Reject overlap memory addresses registrations.

* change KSM_REMOVE_MEMORY_REGION ioctl to make more sense, untill this patchs user was able to register servel memory regions per file descriptor, but when he called to KSM_REMOVE_MEMORY_REGION, he had no way to tell what memory region he want to remove, as a result each call to KSM_REMOVE_MEMORY_REGION nuked all the regions inside the fd. Now KSM_REMOVE_MEMORY_REGION is working on specific addresses.

2) Patch 4: Use generic helper functions to deal with the vma prot.

3) Patch 5: Return ksm to be build on all archs (Now after patch 4, ksm shouldnt break any arch).

4) Patch 6: change the miscdevice minor number - lets wait to Alan saying he is happy with this change before we apply.

Quoted 1 line

From V1 to V2:

Patch 3 (ksm: change the KSM_REMOVE_MEMORY_REGION ioctl.) was changed:

- Fixed bug found by Hugh.

- Make ksm_sma_ioctl_remove_memory_region return -EFAULT in case there is no such memory. (up untill now it was just return 0)

Thanks.

Izik Eidus (6):
ksm: limiting the num of mem regions user can register per fd.
ksm: dont allow overlap memory addresses registrations.
ksm: change the KSM_REMOVE_MEMORY_REGION ioctl.
ksm: change the prot handling to use the generic helper functions
ksm: build system make it compile for all archs
ksm: use another miscdevice minor number.

 Documentation/devices.txt  |    1 +
 include/linux/miscdevice.h |    2 +-
 mm/Kconfig                 |    1 -
 mm/ksm.c                   |  126 ++++++++++++++++++++++++++++++++++---------
 4 files changed, 101 insertions(+), 29 deletions(-)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>