bcachefs icon indicating copy to clipboard operation
bcachefs copied to clipboard

Unexpected not-really-lockups under heavy I/O load

Open K900 opened this issue 1 year ago • 2 comments

Something I'm seeing on my laptop (NixOS, kernel 6.9.7, generally pretty vanilla) is that when there's a big spike in I/O load (in my case usually caused by a NixOS rebuild), the filesystem slows down extremely hard (effectively locks up) for a while, before recovering and continuing as if nothing happened. During the lockup, perf top shows that the CPU time is dominated by

  55,13%  [kernel]                                 [k] osq_lock
  24,07%  [kernel]                                 [k] mutex_spin_on_owner
  17,44%  [kernel]                                 [k] bch2_btree_key_cache_scan

So possibly there's some weird lock contention issue?

K900 avatar Jul 05 '24 06:07 K900

this is fixed in 6.10

koverstreet avatar Jul 05 '24 13:07 koverstreet

Thanks, good to hear! Is it too much effort to backport to 6.9 at this point?

K900 avatar Jul 05 '24 13:07 K900

this was fixed by the key cache reclaim rewrite

koverstreet avatar Aug 02 '25 01:08 koverstreet