Re: [PATCH 04/10] memcg: Introduce __GFP_NOACCOUNT.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/06/2012 08:13 PM, Suleiman Souhlal wrote:
On Tue, Mar 6, 2012 at 2:36 AM, Glauber Costa<glommer@xxxxxxxxxxxxx>  wrote:
On 03/04/2012 04:10 AM, Suleiman Souhlal wrote:

Just a few lines below:

         data = kmalloc_node_track_caller(size, gfp_mask, node);

-- Suleiman

Can't we just make sure those come from the root cgroup's slabs?
Then we need no flag.

Do you mean make it so that all kmallocs come from the root cgroup's slabs?
No.

We would really like to account kmallocs in general (and all the other
slab types) to the right cgroup...
For the record, even in the scenario where we mark the slabs we want to track, I'd still like to account and limit kmallocs. They are a big source of memory usage.

What I mean, is that if we can specify which cgroup certain kmallocs should be billed against, we could use that to get rid of this GFP flag.
And if we really want another non-kmalloc slab to escape accounting,
then we can use a SLAB flag instead of a GFP flag.


That said, I'm probably going to concentrate on accounting specially
marked caches only, for now, since there seems to be a strong
opposition on accounting everything, even though I don't understand
this point of view.

Give me a couple of days to sketch something on the lines of what I described above.

I think that would be a good compromise for us here. If it is also okay for Kame, we might have good chances of reaching consensus with that.


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]