lkml.org 
[lkml]   [2018]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RESEND] slab: introduce the flag SLAB_MINIMIZE_WASTE


On Wed, 13 Jun 2018, Christoph Hellwig wrote:

> On Wed, Jun 13, 2018 at 01:01:22PM -0400, Mikulas Patocka wrote:
> > Hi
> >
> > I'd like to ask about this patch - will you commit it, or do you want to
> > make some more changes to it?
>
> How about you resend it with the series adding an actual user once
> ready? I haven't actually seen patches using it posted on any list yet.

dm-bufio is already using it. Starting with the kernel 4.17 (f51f2e0a7fb1
- "dm bufio: support non-power-of-two block sizes"), dm-bufio has the
capability to use non-power-of-two buffers. It uses slab cache for its
buffers - so we would like to have this slab optimization - to avoid
excessive memory wasting.

Originally, the slub patch used a new flag SLAB_MINIMIZE_WASTE, but after
a suggestion from others, I reworked the patch so that it minimizes waste
of all slub caches and doesn't need an extra flag to activate.

Mikulas

\
 
 \ /
  Last update: 2018-06-13 20:54    [W:0.060 / U:7.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site