linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* high cpu usage due to btrfs_find_space_for_alloc and rb_next
@ 2017-02-18  7:16 Stefan Priebe - Profihost AG
  0 siblings, 0 replies; only message in thread
From: Stefan Priebe - Profihost AG @ 2017-02-18  7:16 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org

Hi,

is there any chance to optimize btrfs_find_space_for_alloc / rb_next on
big devices?

I've plenty of free space but most of the time there's only low I/O but
high cpu usage. perf top shows:

  60,41%  [kernel]                   [k] rb_next
   9,74%  [kernel]                   [k] btrfs_find_space_for_alloc
   5,55%  [kernel]                   [k] tree_search_offset.isra.25

# btrfs filesystem df /backup/
Data, single: total=14.85TiB, used=14.37TiB
System, single: total=32.00MiB, used=2.27MiB
Metadata, single: total=63.00GiB, used=54.87GiB
GlobalReserve, single: total=512.00MiB, used=80.17MiB

--
Stefan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-02-18  7:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-18  7:16 high cpu usage due to btrfs_find_space_for_alloc and rb_next Stefan Priebe - Profihost AG

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).