Re: [PATCH v2] mm: show proportional swap share of the mapping

2015-08-05 Thread Vlastimil Babka
On 07/29/2015 12:30 PM, Minchan Kim wrote: This won't work for sysV shm, tmpfs and MAP_SHARED | MAP_ANONYMOUS mapping pages which are pte_none when paged out. They're currently not accounted at all when in swap. This patch doesn't handle those pages because we don't have supported thoses pages.

Re: [PATCH v2] mm: show proportional swap share of the mapping

2015-07-29 Thread Jerome Marchand
On 07/29/2015 12:30 PM, Minchan Kim wrote: > Hi Jerome, > > On Wed, Jul 29, 2015 at 10:33:53AM +0200, Jerome Marchand wrote: >> On 06/15/2015 03:06 PM, Minchan Kim wrote: >>> We want to know per-process workingset size for smart memory management >>> on userland and we use swap(ex, zram) heavily t

Re: [PATCH v2] mm: show proportional swap share of the mapping

2015-07-29 Thread Minchan Kim
Hi Jerome, On Wed, Jul 29, 2015 at 10:33:53AM +0200, Jerome Marchand wrote: > On 06/15/2015 03:06 PM, Minchan Kim wrote: > > We want to know per-process workingset size for smart memory management > > on userland and we use swap(ex, zram) heavily to maximize memory efficiency > > so workingset inc

Re: [PATCH v2] mm: show proportional swap share of the mapping

2015-07-29 Thread Jerome Marchand
On 06/15/2015 03:06 PM, Minchan Kim wrote: > We want to know per-process workingset size for smart memory management > on userland and we use swap(ex, zram) heavily to maximize memory efficiency > so workingset includes swap as well as RSS. > > On such system, if there are lots of shared anonymous

Re: [PATCH v2] mm: show proportional swap share of the mapping

2015-07-15 Thread Minchan Kim
On Tue, Jul 14, 2015 at 02:07:08PM -0700, Andrew Morton wrote: > On Mon, 15 Jun 2015 22:06:54 +0900 Minchan Kim wrote: > > > We want to know per-process workingset size for smart memory management > > on userland and we use swap(ex, zram) heavily to maximize memory efficiency > > so workingset in

Re: [PATCH v2] mm: show proportional swap share of the mapping

2015-07-14 Thread Andrew Morton
On Mon, 15 Jun 2015 22:06:54 +0900 Minchan Kim wrote: > We want to know per-process workingset size for smart memory management > on userland and we use swap(ex, zram) heavily to maximize memory efficiency > so workingset includes swap as well as RSS. > > On such system, if there are lots of sha

Re: [PATCH v2] mm: show proportional swap share of the mapping

2015-07-07 Thread Minchan Kim
It seems merge windows is closed so bump up. On Mon, Jun 15, 2015 at 10:06:54PM +0900, Minchan Kim wrote: > We want to know per-process workingset size for smart memory management > on userland and we use swap(ex, zram) heavily to maximize memory efficiency > so workingset includes swap as well as

[PATCH v2] mm: show proportional swap share of the mapping

2015-06-15 Thread Minchan Kim
We want to know per-process workingset size for smart memory management on userland and we use swap(ex, zram) heavily to maximize memory efficiency so workingset includes swap as well as RSS. On such system, if there are lots of shared anonymous pages, it's really hard to figure out exactly how ma