Skip to content

ksm resend

Izik Eidus linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 31 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10ksm: add mmu_notifier set_pte_at_notify()include/linux/mmu_notifier.h mm/memory.c mm/mmu_notifier.c+61 -21 reply
2/10ksm: first tidy up madvise_vma()mm/madvise.c+13 -261 reply
3/10ksm: define MADV_MERGEABLE and MADV_UNMERGEABLEarch/alpha/include/asm/mman.h arch/mips/include/asm/mman.h arch/parisc/include/asm/mman.h +2 more+15 -02 replies
4/10ksm: the mm interface to ksminclude/linux/ksm.h include/linux/mm.h include/linux/sched.h +5 more+147 -11 reply
5/10ksm: no debug in page_dup_rmap()include/linux/rmap.h mm/memory.c mm/rmap.c+2 -272 replies
6/10ksm: identify PageKsm pagesfs/proc/page.c include/linux/ksm.h mm/memory.c+36 -113 replies
7/10ksm: Kernel SamePage Mergingmm/ksm.c+1491 -51 reply
8/10ksm: prevent mremap move poisoningmm/mremap.c+12 -01 reply
9/10ksm: change copyright messagemm/ksm.c+2 -12 replies
10/10ksm: change ksm nice level to be 5mm/ksm.c+1 -15 replies

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchHugh DickinsRik van RielRalf Baechle
1/10A-b
2/10A-b
3/10A-b A-b
4/10A-b
5/10A-b
6/10A-b
7/10A-b
8/10A-b
9/10A-b A-b
10/10A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/10] ksm resend

Hey,

First for who that is not familier with what is ksm please take a look at:
http://lkml.org/lkml/2009/4/19/210

About this send:

After modifications by Hugh Dickins to make the ksm code fit more to the internal strctures / interfaces of the kernel, I am resending the whole seires again.

The biggest change from previous version that was sent is: the moving into madvise interface for registering the application memory to be scan. Now when application want its memory to be merged with another applications what it do is to call to madvise() with the MADV_MERGEABLE flag set.

In addition to changes to the interfaces of ksm,. there was a major code clean / optimizations made by Hugh.

There is more work to be taken in the area of documentions, as well as some questions regerding to how ksm should handle the way it break the SharedPages when it need to do so, but the code seems to be ready to be in the MM tree right now to get more testing and reviews from other developers.

The code still need to get Andrea Arcangeli acks.
(he was busy and will ack it later).

Thanks.

Izik Eidus (10):
ksm: add mmu_notifier set_pte_at_notify()
ksm: first tidy up madvise_vma()
ksm: define MADV_MERGEABLE and MADV_UNMERGEABLE
ksm: the mm interface to ksm
ksm: no debug in page_dup_rmap()
ksm: identify PageKsm pages
ksm: Kernel SamePage Merging
ksm: prevent mremap move poisoning
ksm: change copyright message
ksm: change ksm nice level to be 5

 arch/alpha/include/asm/mman.h     |    3 +
 arch/mips/include/asm/mman.h      |    3 +
 arch/parisc/include/asm/mman.h    |    3 +
 arch/xtensa/include/asm/mman.h    |    3 +
 fs/proc/page.c                    |    5 +
 include/asm-generic/mman-common.h |    3 +
 include/linux/ksm.h               |   79 ++
 include/linux/mm.h                |    1 +
 include/linux/mmu_notifier.h      |   34 +
 include/linux/rmap.h              |    6 +-
 include/linux/sched.h             |    7 +
 kernel/fork.c                     |    8 +-
 mm/Kconfig                        |   11 +
 mm/Makefile                       |    1 +
 mm/ksm.c                          | 1543 +++++++++++++++++++++++++++++++++++++
 mm/madvise.c                      |   53 +-
 mm/memory.c                       |   14 +-
 mm/mmu_notifier.c                 |   20 +
 mm/mremap.c                       |   12 +
 mm/rmap.c                         |   21 -
 20 files changed, 1773 insertions(+), 57 deletions(-)
 create mode 100644 include/linux/ksm.h
 create mode 100644 mm/ksm.c

--
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>