From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-f173.google.com (mail-ie0-f173.google.com [209.85.223.173]) by kanga.kvack.org (Postfix) with ESMTP id E911B6B0032 for ; Wed, 21 Jan 2015 17:44:52 -0500 (EST) Received: by mail-ie0-f173.google.com with SMTP id tr6so14834646ieb.4 for ; Wed, 21 Jan 2015 14:44:52 -0800 (PST) Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com. [2607:f8b0:4001:c03::234]) by mx.google.com with ESMTPS id bc8si510009igb.36.2015.01.21.14.44.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Jan 2015 14:44:51 -0800 (PST) Received: by mail-ie0-f180.google.com with SMTP id rl12so10766329iec.11 for ; Wed, 21 Jan 2015 14:44:51 -0800 (PST) Date: Wed, 21 Jan 2015 14:44:49 -0800 (PST) From: David Rientjes Subject: Re: [PATCH] mm: move MACRO SLAB_NEVER_MERGE and SLAB_MERGE_SAME to file linux/slab.h In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Bryton Lee Cc: Christoph Lameter , iamjoonsoo.kim@lge.com, penberg@kernel.org, Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org On Wed, 7 Jan 2015, Bryton Lee wrote: > thanks for review my patch. > > I want to move these macros to linux/slab.h cause I don't want perform > merge in slab level. for example. ss read /proc/slabinfo to finger out > how many requests pending in the TCP listern queue. it use slabe name > "tcp_timewait_sock_ops" search in /proc/slabinfo, although the name is > obsolete. so I committed other patch to iproute2, replaced > tcp_timewait_sock_ops by request_sock_TCP, but it still not work, because > slab request_sock_TCP merge into kmalloc-256. > > how could I prevent this merge happen. I'm new to kernel, this is my first > time submit a kernel patch, thanks! > Any bit in SLAB_NEVER_MERGE will cause the allocator to not merge the slab caches, it's not necessary to all of them be set as it seems you're implying. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org