Re: [PATCH v2 3/6] memcg: only account kmem allocations marked as __GFP_ACCOUNT

2015-11-19 Thread Johannes Weiner
On Tue, Nov 10, 2015 at 09:34:04PM +0300, Vladimir Davydov wrote: > Black-list kmem accounting policy (aka __GFP_NOACCOUNT) turned out to be > fragile and difficult to maintain, because there seem to be many more > allocations that should not be accounted than those that should be. > Besides,

Re: [PATCH v2 3/6] memcg: only account kmem allocations marked as __GFP_ACCOUNT

2015-11-19 Thread Johannes Weiner
On Tue, Nov 10, 2015 at 09:34:04PM +0300, Vladimir Davydov wrote: > Black-list kmem accounting policy (aka __GFP_NOACCOUNT) turned out to be > fragile and difficult to maintain, because there seem to be many more > allocations that should not be accounted than those that should be. > Besides,

Re: [PATCH v2 3/6] memcg: only account kmem allocations marked as __GFP_ACCOUNT

2015-11-12 Thread Michal Hocko
On Tue 10-11-15 21:34:04, Vladimir Davydov wrote: > Black-list kmem accounting policy (aka __GFP_NOACCOUNT) turned out to be > fragile and difficult to maintain, because there seem to be many more > allocations that should not be accounted than those that should be. > Besides, false accounting an

Re: [PATCH v2 3/6] memcg: only account kmem allocations marked as __GFP_ACCOUNT

2015-11-12 Thread Michal Hocko
On Tue 10-11-15 21:34:04, Vladimir Davydov wrote: > Black-list kmem accounting policy (aka __GFP_NOACCOUNT) turned out to be > fragile and difficult to maintain, because there seem to be many more > allocations that should not be accounted than those that should be. > Besides, false accounting an

[PATCH v2 3/6] memcg: only account kmem allocations marked as __GFP_ACCOUNT

2015-11-10 Thread Vladimir Davydov
Black-list kmem accounting policy (aka __GFP_NOACCOUNT) turned out to be fragile and difficult to maintain, because there seem to be many more allocations that should not be accounted than those that should be. Besides, false accounting an allocation might result in much worse consequences than

[PATCH v2 3/6] memcg: only account kmem allocations marked as __GFP_ACCOUNT

2015-11-10 Thread Vladimir Davydov
Black-list kmem accounting policy (aka __GFP_NOACCOUNT) turned out to be fragile and difficult to maintain, because there seem to be many more allocations that should not be accounted than those that should be. Besides, false accounting an allocation might result in much worse consequences than