linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RESEND][PATCH V3 0/4] KSM: Mark new vma for deduplication
@ 2014-11-13 21:01 Timofey Titovets
  2014-11-13 21:01 ` [RESEND][PATCH V3 1/4] KSM: Add auto flag new VMA as VM_MERGEABLE Timofey Titovets
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Timofey Titovets @ 2014-11-13 21:01 UTC (permalink / raw)
  To: linux-mm; +Cc: akpm, Timofey Titovets

Good time of day List,
this tiny series of patches implement feature for auto deduping all anonymous memory.
mark_new_vma - new ksm sysfs interface
Every time then new vma created and mark_new_vma set to 1, then will be vma marked as VM_MERGEABLE and added to ksm queue.
This can produce small overheads
(I have not catch any problems or slowdown)

This is useful for:
Android (CM) devs which implement ksm support with patching system.
Users of tiny pc.
Servers what not use KVM but use something very releated, like containers.

Can be pulled from:
https://github.com/Nefelim4ag/linux.git ksm_improvements

For tests:
I have tested it and it working very good. For testing apply it and enable ksm:
echo 1 | sudo tee /sys/kernel/mm/ksm/run
This show how much memory saved:
echo $[$(cat /sys/kernel/mm/ksm/pages_shared)*$(getconf PAGE_SIZE)/1024 ]KB

On my system i save ~1% of memory 26 Mb/2100 Mb (deduped)/(used)

v2:
	Added Kconfig for control default value of mark_new_vma
	Added sysfs interface for control mark_new_vma
	Splitted in several patches

v3:
	Documentation for ksm changed for clarify new cha

Timofey Titovets (4):
  KSM: Add auto flag new VMA as VM_MERGEABLE
  KSM: Add to sysfs - mark_new_vma
  KSM: Add config to control mark_new_vma
  KSM: mark_new_vma added to Documentation.

 Documentation/vm/ksm.txt |  7 +++++++
 include/linux/ksm.h      | 39 +++++++++++++++++++++++++++++++++++++++
 mm/Kconfig               |  7 +++++++
 mm/ksm.c                 | 39 ++++++++++++++++++++++++++++++++++++++-
 mm/mmap.c                | 17 +++++++++++++++++
 5 files changed, 108 insertions(+), 1 deletion(-)

-- 
2.1.3

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

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

end of thread, other threads:[~2014-12-07 15:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-13 21:01 [RESEND][PATCH V3 0/4] KSM: Mark new vma for deduplication Timofey Titovets
2014-11-13 21:01 ` [RESEND][PATCH V3 1/4] KSM: Add auto flag new VMA as VM_MERGEABLE Timofey Titovets
2014-11-13 21:01 ` [RESEND][PATCH V3 2/4] KSM: Add to sysfs - mark_new_vma Timofey Titovets
2014-11-13 21:01 ` [RESEND][PATCH V3 3/4] KSM: Add config to control mark_new_vma Timofey Titovets
2014-11-13 21:01 ` [RESEND][PATCH V3 4/4] KSM: mark_new_vma added to Documentation Timofey Titovets
2014-12-01 10:35 ` [RESEND][PATCH V3 0/4] KSM: Mark new vma for deduplication Hugh Dickins
2014-12-07 15:20   ` Timofey Titovets

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).