All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Nikolay Borisov <nborisov@suse.com>
Cc: dsterba@suse.cz, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH 0/3] Remove deprecated inode cache feature
Date: Fri, 27 Nov 2020 15:58:36 +0100	[thread overview]
Message-ID: <20201127145836.GZ6430@twin.jikos.cz> (raw)
In-Reply-To: <90b5646b-cd53-f5bd-7214-44387c523203@suse.com>

On Thu, Nov 26, 2020 at 06:00:24PM +0200, Nikolay Borisov wrote:
> 
> 
> On 26.11.20 г. 17:31 ч., David Sterba wrote:
> > There's still the remaining issue what to do with the space occupied by
> > the cache inode if the feature was enabled. I haven't researched that,
> > eg. how big the inode is if it's worth removing it at all or if we
> > should do some lightweight scan to remove them at some appropriate time.
> 
> I'd rather implement this in btrfs-progs.

I did a quick check, 1M empty files created then every 7th deleted (so
there are no large ranges to free), resulting in ~140K files and that
occupied about 680KiB. So for 1M files it's about 5M of space, where
metadata part is small (<1KiB), the bitmaps are stored in hidden data
inodes.  All in all it does not sound like a terrible waste of space.

      reply	other threads:[~2020-11-27 15:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-26 13:10 [PATCH 0/3] Remove deprecated inode cache feature Nikolay Borisov
2020-11-26 13:10 ` [PATCH 1/3] btrfs: Move btrfs_find_highest_objectid/btrfs_find_free_objectid to disk-io.c Nikolay Borisov
2020-11-26 13:10 ` [PATCH 2/3] btrfs: Replace calls to btrfs_find_free_ino with btrfs_find_free_objectid Nikolay Borisov
2020-11-26 13:10 ` [PATCH 3/3] btrfs: Remove inode cache feature Nikolay Borisov
2020-11-27 16:30   ` David Sterba
2020-11-26 15:31 ` [PATCH 0/3] Remove deprecated " David Sterba
2020-11-26 16:00   ` Nikolay Borisov
2020-11-27 14:58     ` David Sterba [this message]

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=20201127145836.GZ6430@twin.jikos.cz \
    --to=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=nborisov@suse.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.