On Tue, 8 Dec 2015, Jesper Dangaard Brouer wrote: > > > > Does this support freeing objects from a set of different caches? > > > > > > This is for supporting memcg (CONFIG_MEMCG_KMEM). > > > > > > Quoting from commit 033745189b1b ("slub: add missing kmem cgroup > > > support to kmem_cache_free_bulk"): > > > > > > Incoming bulk free objects can belong to different kmem cgroups, and > > > object free call can happen at a later point outside memcg context. Thus, > > > we need to keep the orig kmem_cache, to correctly verify if a memcg object > > > match against its "root_cache" (s->memcg_params.root_cache). > > > > Where is that verification? This looks like SLAB would support freeing > > objects from different caches. > > This is for supporting CONFIG_MEMCG_KMEM, thus I would like Vladimir > input on this, as I don't know enough about memcg.... Oww... So far objects passed to bulk free must be confined to the *same* slab cache. Not the same "root_cache". Are we changing 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/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>