diff options
author | Daniel Hill <daniel@gluo.nz> | 2022-07-14 10:33:09 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:35 +0200 |
commit | c807ca95a6e20bedbbb84287bc7087c2b2b775de (patch) | |
tree | 0add067029709ede728fd48ca3761325fe1cd8fc /fs/bcachefs/Kconfig | |
parent | bcachefs: bch2_time_stats_to_text now indents properly (diff) | |
download | linux-c807ca95a6e20bedbbb84287bc7087c2b2b775de.tar.xz linux-c807ca95a6e20bedbbb84287bc7087c2b2b775de.zip |
bcachefs: added lock held time stats
We now record the length of time btree locks are held and expose this in debugfs.
Enabled via CONFIG_BCACHEFS_LOCK_TIME_STATS.
Signed-off-by: Daniel Hill <daniel@gluo.nz>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/Kconfig')
-rw-r--r-- | fs/bcachefs/Kconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/bcachefs/Kconfig b/fs/bcachefs/Kconfig index d2eb65e9032b..7ae85900e5b4 100644 --- a/fs/bcachefs/Kconfig +++ b/fs/bcachefs/Kconfig @@ -59,6 +59,12 @@ config BCACHEFS_TESTS help Include some unit and performance tests for the core btree code +config BCACHEFS_LOCK_TIME_STATS + bool "bcachefs lock time statistics" + depends on BCACHEFS_FS + help + Expose statistics for how long we held a lock in debugfs + config BCACHEFS_NO_LATENCY_ACCT bool "disable latency accounting and time stats" depends on BCACHEFS_FS |