Re: btrfs and 1 billion small files
- Subject: Re: btrfs and 1 billion small files
- From: Martin <m_btrfs@xxxxxxxxx>
- Date: Tue, 08 May 2012 17:51:05 +0100
- In-reply-to: <20120508123153.GS11876@shiny>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120425 Thunderbird/10.0.4
On 08/05/12 13:31, Chris Mason wrote:
[...]
> A few people have already mentioned how btrfs will pack these small
> files into metadata blocks. If you're running btrfs on a single disk,
[...]
> But the cost is increased CPU usage. Btrfs hits memmove and memcpy
> pretty hard when you're using larger blocks.
>
> I suggest using a 16K or 32K block size. You can go up to 64K, it may
> work well if you have beefy CPUs. Example for 16K:
>
> mkfs.btrfs -l 16K -n 16K /dev/xxx
Is that still with "-s 4K" ?
Might that help SSDs that work in 16kByte chunks?
And why are memmove and memcpy more heavily used?
Does that suggest better optimisation of the (meta)data, or just a
greater housekeeping overhead to shuffle data to new offsets?
Regards,
Martin
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux NFS]
[Linux NILFS]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[Linux SCSI]
[XFree86]