Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1438510
| From | David Sterba <dsterba@suse.cz> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] btrfs: Fix slab accounting flags |
| Date | 2016-07-07 12:30 +0200 |
| Message-ID | <rSeJc-5D9-31@gated-at.bofh.it> (permalink) |
| References | <rNhol-5sv-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Jun 23, 2016 at 09:17:08PM +0300, Nikolay Borisov wrote: > BTRFS is using a variety of slab caches to satisfy internal needs. > Those slab caches are always allocated with the SLAB_RECLAIM_ACCOUNT, > meaning allocations from the caches are going to be accounted as > SReclaimable. At the same time btrfs is not registering any shrinkers > whatsoever, thus preventing memory from the slabs to be shrunk. This > means those caches are not in fact reclaimable. > > To fix this remove the SLAB_RECLAIM_ACCOUNT on all caches apart from the > inode cache, since this one is being freed by the generic VFS super_block > shrinker. Also set the transaction related caches as SLAB_TEMPORARY, > to better document the lifetime of the objects (it just translates > to SLAB_RECLAIM_ACCOUNT). > > Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com> Reviewed-by: David Sterba <dsterba@suse.com>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] btrfs: Fix slab accounting flags Nikolay Borisov <n.borisov.lkml@gmail.com> - 2016-06-23 20:20 +0200 Re: [PATCH] btrfs: Fix slab accounting flags Nikolay Borisov <n.borisov.lkml@gmail.com> - 2016-07-05 16:00 +0200 Re: [PATCH] btrfs: Fix slab accounting flags David Sterba <dsterba@suse.cz> - 2016-07-07 12:30 +0200
csiph-web