From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pekka Enberg Subject: Re: [PATCH 2/2] slab, slub, slob: convert slab_flags_t to 32-bit Date: Sun, 22 Oct 2017 09:40:27 +0300 Message-ID: References: <20171021100225.GA22428@avx2> <20171021100635.GA8287@avx2> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-mm@kvack.org, cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, ecryptfs@vger.kernel.org, linux-xfs@vger.kernel.org, kasan-dev@googlegroups.com, netdev@vger.kernel.org To: Alexey Dobriyan , akpm@linux-foundation.org Return-path: In-Reply-To: <20171021100635.GA8287@avx2> Content-Language: en-US Sender: owner-linux-mm@kvack.org List-Id: netdev.vger.kernel.org On 21/10/2017 13.06, Alexey Dobriyan wrote: > struct kmem_cache::flags is "unsigned long" which is unnecessary on > 64-bit as no flags are defined in the higher bits. > > Switch the field to 32-bit and save some space on x86_64 until such > flags appear: > > add/remove: 0/0 grow/shrink: 0/107 up/down: 0/-657 (-657) > function old new delta > sysfs_slab_add 720 719 -1 > ... > check_object 699 676 -23 > > Signed-off-by: Alexey Dobriyan Acked-by: Pekka Enberg -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com ([66.111.4.28]:55467 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751112AbdJVGka (ORCPT ); Sun, 22 Oct 2017 02:40:30 -0400 Subject: Re: [PATCH 2/2] slab, slub, slob: convert slab_flags_t to 32-bit References: <20171021100225.GA22428@avx2> <20171021100635.GA8287@avx2> From: Pekka Enberg Message-ID: Date: Sun, 22 Oct 2017 09:40:27 +0300 MIME-Version: 1.0 In-Reply-To: <20171021100635.GA8287@avx2> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-xfs-owner@vger.kernel.org List-ID: List-Id: xfs To: Alexey Dobriyan , akpm@linux-foundation.org Cc: linux-mm@kvack.org, cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, ecryptfs@vger.kernel.org, linux-xfs@vger.kernel.org, kasan-dev@googlegroups.com, netdev@vger.kernel.org On 21/10/2017 13.06, Alexey Dobriyan wrote: > struct kmem_cache::flags is "unsigned long" which is unnecessary on > 64-bit as no flags are defined in the higher bits. > > Switch the field to 32-bit and save some space on x86_64 until such > flags appear: > > add/remove: 0/0 grow/shrink: 0/107 up/down: 0/-657 (-657) > function old new delta > sysfs_slab_add 720 719 -1 > ... > check_object 699 676 -23 > > Signed-off-by: Alexey Dobriyan Acked-by: Pekka Enberg