On Thu, 23 Jul 2015 15:34:24 +0900 Joonsoo Kim <iamjoonsoo.kim@xxxxxxx> wrote: > On Wed, Jul 22, 2015 at 01:28:19AM +0200, Jesper Dangaard Brouer wrote: > > On Tue, 21 Jul 2015 08:50:36 -0500 (CDT) > > Christoph Lameter <cl@xxxxxxxxx> wrote: > > > > > On Mon, 20 Jul 2015, Jesper Dangaard Brouer wrote: > > > > > > > Yes, I think it is merged... how do I turn off merging? > > > > > > linux/Documentation/kernel-parameters.txt > > > > > > slab_nomerge [MM] > > > Disable merging of slabs with similar size. May be > > > necessary if there is some reason to distinguish > > > allocs to different slabs. Debug options disable > > > merging on their own. > > > For more information see Documentation/vm/slub.txt. > > > > I was hoping I could define this per slub runtime. Any chance this > > would be made possible? > > It's not possible to set/reset slab merge in runtime. Once merging > happens, one slab could have objects from different kmem_caches so we > can't separate it cleanly. Current best approach is to prevent merging > when creating new kmem_cache by introducing new slab flag > like as SLAB_NO_MERGE. Yes, the best option would be a new flag (e.g. SLAB_NO_MERGE) when creating the kmem_cache. -- Best regards, Jesper Dangaard Brouer MSc.CS, Sr. Network Kernel Developer at Red Hat Author of http://www.iptv-analyzer.org LinkedIn: http://www.linkedin.com/in/brouer -- 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>