Re: [PATCH 5/5] Account certain kmem allocations to memcg

2015-11-10 Thread Michal Hocko
On Tue 10-11-15 11:07:09, Vladimir Davydov wrote: > On Mon, Nov 09, 2015 at 03:39:55PM +0100, Michal Hocko wrote: [...] > > pipe buffers are trivial to abuse (e.g. via fd passing) so we want to > > You might also mention allocations caused by select/poll, page tables, > radix_tree_node, etc. They

Re: [PATCH 5/5] Account certain kmem allocations to memcg

2015-11-10 Thread Vladimir Davydov
On Mon, Nov 09, 2015 at 03:39:55PM +0100, Michal Hocko wrote: > On Sat 07-11-15 23:07:09, Vladimir Davydov wrote: > > This patch marks those kmem allocations that are known to be easily > > triggered from userspace as __GFP_ACCOUNT, which makes them accounted to > > memcg. For the list, see below:

Re: [PATCH 5/5] Account certain kmem allocations to memcg

2015-11-09 Thread Michal Hocko
On Sat 07-11-15 23:07:09, Vladimir Davydov wrote: > This patch marks those kmem allocations that are known to be easily > triggered from userspace as __GFP_ACCOUNT, which makes them accounted to > memcg. For the list, see below: > > - threadinfo > - task_struct > - task_delay_info > - pid > -