linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Huge load on btrfs subvolume delete
@ 2016-08-15 10:39 Daniel Caillibaud
  2016-08-15 12:32 ` Austin S. Hemmelgarn
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Caillibaud @ 2016-08-15 10:39 UTC (permalink / raw)
  To: linux-btrfs

Hi,

I'm newbie with btrfs, and I have pb with high load after each btrfs subvolume delete

I use snapshots on lxc hosts under debian jessie with
- kernel 4.6.0-0.bpo.1-amd64
- btrfs-progs 4.6.1-1~bpo8

For backup, I have each day, for each subvolume

btrfs subvolume snapshot -r $subvol $snap
# then later
ionice -c3 btrfs subvolume delete $snap

but ionice doesn't seems to have any effect here and after a few minutes the load grows up
quite high (30~40), and I don't know how to make this deletion nicer with I/O

Is there a better way to do so ?

Is it a bad idea to set ionice -c3 on the btrfs-transacti process which seems the one doing a
lot of I/O ?

Actually my io priority on btrfs process are 

ps x|awk '/[b]trfs/ {printf("%20s ", $NF); system("ionice -p" $1)}'
      [btrfs-worker] none: prio 4
   [btrfs-worker-hi] none: prio 4
    [btrfs-delalloc] none: prio 4
   [btrfs-flush_del] none: prio 4
       [btrfs-cache] none: prio 4
      [btrfs-submit] none: prio 4
       [btrfs-fixup] none: prio 4
       [btrfs-endio] none: prio 4
   [btrfs-endio-met] none: prio 4
   [btrfs-endio-met] none: prio 4
   [btrfs-endio-rai] none: prio 4
   [btrfs-endio-rep] none: prio 4
         [btrfs-rmw] none: prio 4
   [btrfs-endio-wri] none: prio 4
   [btrfs-freespace] none: prio 4
   [btrfs-delayed-m] none: prio 4
   [btrfs-readahead] none: prio 4
   [btrfs-qgroup-re] none: prio 4
   [btrfs-extent-re] none: prio 4
     [btrfs-cleaner] none: prio 0
   [btrfs-transacti] none: prio 0



Thanks

-- 
Daniel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-08-15 19:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-15 10:39 Huge load on btrfs subvolume delete Daniel Caillibaud
2016-08-15 12:32 ` Austin S. Hemmelgarn
2016-08-15 14:06   ` Daniel Caillibaud
2016-08-15 14:16     ` Austin S. Hemmelgarn
2016-08-15 19:56       ` Daniel Caillibaud

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).