[PATCH RFC 1/1] ksm: check and skip page, if it is already scanned

2014-03-03 Thread Pradeep Sawlani
From: Pradeep Sawlani On system like Android where most of the process are forked from parent w/o execve, KSM can scan same page multiple times in one scan cycle. There is no advantage in scanning same page multiple times for merging. During testing with Android, it was observed around 60% pages

[PATCH RFC 0/1] ksm: check and skip page, if it is already scanned

2014-03-03 Thread Pradeep Sawlani
From: Pradeep Sawlani Patch uses two bits to detect if page is scanned, one bit for odd cycle and other for even cycle. This adds one more bit in page flags and overloads existing bit (PG_owner_priv_1). Changes are based of 3.4.79 kernel, since I have used that for verification. Detail

[PATCH RFC 0/1] ksm: check and skip page, if it is already scanned

2014-03-03 Thread Pradeep Sawlani
From: Pradeep Sawlani Patch uses two bits to detect if page is scanned, one bit for odd cycle and other for even cycle. This adds one more bit in page flags and overloads existing bit (PG_owner_priv_1). Changes are based of 3.4.79 kernel, since I have used that for verification. Detail

Re: KSM on Android

2014-02-14 Thread Pradeep Sawlani
> Re-sending this in plain text format (Apologies) > > Hello, > > In pursuit of saving memory on Android, I started experimenting with > Kernel Same Page Merging(KSM). > Number of pages shared because of KSM is reported by > /sys/kernel/mm/pages_sharing. > Documentation/vm/ksm.txt explains this as:

KSM on Android

2014-02-13 Thread Pradeep Sawlani
Re-sending this in plain text format (Apologies) Hello, In pursuit of saving memory on Android, I started experimenting with Kernel Same Page Merging(KSM). Number of pages shared because of KSM is reported by /sys/kernel/mm/pages_sharing. Documentation/vm/ksm.txt explains this as: "pages_sharing