Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1633418

[PATCH 0/3] try to save some memory for kmem_cache in some cases

From Wei Yang <richard.weiyang@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 0/3] try to save some memory for kmem_cache in some cases
Date 2017-04-30 13:40 +0200
Message-ID <tBVmO-2D4-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


kmem_cache is a frequently used data in kernel. During the code reading, I
found maybe we could save some space in some cases.

1. On 64bit arch, type int will occupy a word if it doesn't sit well.
2. cpu_slab->partial is just used when CONFIG_SLUB_CPU_PARTIAL is set
3. cpu_partial is just used when CONFIG_SLUB_CPU_PARTIAL is set, while just
save some space on 32bit arch.

Wei Yang (3):
  mm/slub: pack red_left_pad with another int to save a word
  mm/slub: wrap cpu_slab->partial in CONFIG_SLUB_CPU_PARTIAL
  mm/slub: wrap kmem_cache->cpu_partial in config
    CONFIG_SLUB_CPU_PARTIAL

 include/linux/slub_def.h |  6 +++-
 mm/slub.c                | 88 ++++++++++++++++++++++++++++++++----------------
 2 files changed, 64 insertions(+), 30 deletions(-)

-- 
2.11.0

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] try to save some memory for kmem_cache in some cases Wei Yang <richard.weiyang@gmail.com> - 2017-04-30 13:40 +0200
  [PATCH 3/3] mm/slub: wrap kmem_cache->cpu_partial in config CONFIG_SLUB_CPU_PARTIAL Wei Yang <richard.weiyang@gmail.com> - 2017-04-30 13:40 +0200
    Re: [PATCH 3/3] mm/slub: wrap kmem_cache->cpu_partial in config  CONFIG_SLUB_CPU_PARTIAL Wei Yang <richard.weiyang@gmail.com> - 2017-05-01 17:50 +0200
  [PATCH 1/3] mm/slub: pack red_left_pad with another int to save a word Wei Yang <richard.weiyang@gmail.com> - 2017-04-30 13:40 +0200
  [PATCH 2/3] mm/slub: wrap cpu_slab->partial in CONFIG_SLUB_CPU_PARTIAL Wei Yang <richard.weiyang@gmail.com> - 2017-04-30 13:40 +0200
    Re: [PATCH 2/3] mm/slub: wrap cpu_slab->partial in  CONFIG_SLUB_CPU_PARTIAL Matthew Wilcox <willy@infradead.org> - 2017-05-01 04:50 +0200
      Re: [PATCH 2/3] mm/slub: wrap cpu_slab->partial in  CONFIG_SLUB_CPU_PARTIAL Wei Yang <richard.weiyang@gmail.com> - 2017-05-01 09:50 +0200
      Re: [PATCH 2/3] mm/slub: wrap cpu_slab->partial in  CONFIG_SLUB_CPU_PARTIAL Wei Yang <richard.weiyang@gmail.com> - 2017-05-01 10:30 +0200
        Re: [PATCH 2/3] mm/slub: wrap cpu_slab->partial in  CONFIG_SLUB_CPU_PARTIAL Matthew Wilcox <willy@infradead.org> - 2017-05-01 16:40 +0200
          Re: [PATCH 2/3] mm/slub: wrap cpu_slab->partial in  CONFIG_SLUB_CPU_PARTIAL Wei Yang <richard.weiyang@gmail.com> - 2017-05-01 17:50 +0200
  Re: [PATCH 0/3] try to save some memory for kmem_cache in some  cases Christoph Lameter <cl@linux.com> - 2017-04-30 23:30 +0200

csiph-web