On Thu, Aug 30, 2012 at 03:50:08PM -0600, Josef Bacik wrote: > On Thu, Aug 30, 2012 at 03:34:49PM -0600, Martin Steigerwald wrote: > > I wonder what a good value for SSD might be. I tend to not use anymore > > than 16k, but thats just some gut feeling right now. Nothing based on a > > well-founded explaination. > > > > 32k really starts to depend on your workload. Generally speaking everybody > will > be faster with 16k, but 32k starts to depend on your workload and hardware, > and > then anything about 64k really starts to hurt with memmove(). With this sort > of > thing SSD vs not isn't going to make much of a difference, erase blocks tend > to > be several megs in size so you aren't going to get anywhere close to avoiding > the internal RMW cycle inside the ssd. Thanks,
I almost made 16k the default, but the problem is that it does increase lock contention because bigger nodes mean fewer locks. You can see this with dbench and compilebench, especially early in the FS life. My goal is to make the cow step of btrfs_search_slot really atomic, so we don't have to switch to a blocking lock. That will really fix a lot of contention problems. -chris -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html