public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.com>
To: linux-btrfs@vger.kernel.org
Cc: David Sterba <dsterba@suse.com>
Subject: [PATCH 0/2] Pool for compression pages
Date: Wed, 15 Nov 2023 17:59:37 +0100	[thread overview]
Message-ID: <cover.1700067287.git.dsterba@suse.com> (raw)

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(-)

-- 
2.42.1


             reply	other threads:[~2023-11-15 17:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-15 16:59 David Sterba [this message]
2023-11-15 16:59 ` [PATCH 1/2] btrfs: use page alloc/free wrapeprs for compression pages David Sterba
2023-11-16  9:15   ` Johannes Thumshirn
2023-11-16 19:50     ` David Sterba
2023-11-15 16:59 ` [PATCH 2/2] btrfs: use shrinker for compression page pool David Sterba
2023-11-20 17:05 ` [PATCH 0/2] Pool for compression pages Josef Bacik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1700067287.git.dsterba@suse.com \
    --to=dsterba@suse.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox