Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1309420
| From | Christoph Lameter <cl@linux.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 16/16] mm/slab: introduce new slab management type, OBJFREELIST_SLAB |
| Date | 2016-01-14 16:40 +0100 |
| Message-ID | <qQSae-yO-41@gated-at.bofh.it> (permalink) |
| References | <qQIDU-2oH-3@gated-at.bofh.it> <qQIDV-2oH-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, 14 Jan 2016, Joonsoo Kim wrote: > SLAB needs a array to manage freed objects in a slab. It is only used > if some objects are freed so we can use free object itself as this array. > This requires additional branch in somewhat critical lock path to check > if it is first freed object or not but that's all we need. Benefits is > that we can save extra memory usage and reduce some computational > overhead by allocating a management array when new slab is created. Hmmm... But then you need to have an offset in the page struct to figure out where the freelist starts. One additional level of indirection. Seems to have some negative impact on performance. > In my system, without enabling CONFIG_DEBUG_SLAB, Almost caches become > OBJFREELIST_SLAB and NORMAL_SLAB (using leftover) which doesn't waste > memory. Following is the result of number of caches with specific slab > management type. Sounds good.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 16/16] mm/slab: introduce new slab management type, OBJFREELIST_SLAB Joonsoo Kim <js1304@gmail.com> - 2016-01-14 06:30 +0100
Re: [PATCH 16/16] mm/slab: introduce new slab management type, OBJFREELIST_SLAB Christoph Lameter <cl@linux.com> - 2016-01-14 16:40 +0100
Re: [PATCH 16/16] mm/slab: introduce new slab management type, OBJFREELIST_SLAB Joonsoo Kim <js1304@gmail.com> - 2016-01-14 17:30 +0100
csiph-web