mbox series

[0/2] Pool for compression pages

Message ID cover.1700067287.git.dsterba@suse.com (mailing list archive)
Headers show
Series Pool for compression pages | expand

Message

David Sterba Nov. 15, 2023, 4:59 p.m. UTC
Add wrappers for alloc/free of pages used for compresion and keep a
small cache (for all filesystems, ie. per module). This can speed up
short compression IO when we don't need to go to the allocator. Shrinker
is attached to free the pages if there's memory pressure.

David Sterba (2):
  btrfs: use page alloc/free wrapeprs for compression pages
  btrfs: use shrinker for compression page pool

 fs/btrfs/compression.c | 118 ++++++++++++++++++++++++++++++++++++++++-
 fs/btrfs/compression.h |   5 ++
 fs/btrfs/inode.c       |   4 +-
 fs/btrfs/lzo.c         |   4 +-
 fs/btrfs/zlib.c        |   6 +--
 fs/btrfs/zstd.c        |   7 ++-
 6 files changed, 132 insertions(+), 12 deletions(-)

Comments

Josef Bacik Nov. 20, 2023, 5:05 p.m. UTC | #1
On Wed, Nov 15, 2023 at 05:59:37PM +0100, David Sterba wrote:
> Add wrappers for alloc/free of pages used for compresion and keep a
> small cache (for all filesystems, ie. per module). This can speed up
> short compression IO when we don't need to go to the allocator. Shrinker
> is attached to free the pages if there's memory pressure.
> 
> David Sterba (2):
>   btrfs: use page alloc/free wrapeprs for compression pages
>   btrfs: use shrinker for compression page pool
>

Sorry I thought I responded to this last week,

Reviewed-by: Josef Bacik <josef@toxicpanda.com>

Thanks,

Josef