bcachefs: Increase BSET_CACHELINE to 256 bytes
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 6 Apr 2021 17:43:31 +0000 (13:43 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:59 +0000 (17:08 -0400)
Linear searches have gotten cheaper relative to binary searches on
modern hardware, due to better branch prediction behaviour.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bset.h

index e6c8d081f9b64a39d58145d3e8a8139f7cf600bf..8acbcb5d86c4d84c70f9f938f33a2e6aeafb38be 100644 (file)
@@ -188,7 +188,7 @@ static inline enum bset_aux_tree_type bset_aux_tree_type(const struct bset_tree
  * gets to the second cacheline.
  */
 
-#define BSET_CACHELINE         128
+#define BSET_CACHELINE         256
 
 static inline size_t btree_keys_cachelines(const struct btree *b)
 {