Skip to contentSkip to conversation

Btrfs-cleaner FS DoS issues

DISCUSSION Matt Grant 3 participants 3 messages Apr 16, 2015 Btrfs file system

lore
Share & tools
lore

Matt Grant

author
#0 lore raw

Hi!

When ever I delete a large snapshot this stalls all the processes on my system for 30 minutes plus, kernel v19.2. Btrfs-cleaner is taking 100% CPU when completely stalled. Every few minutes its say 99.8% and satall abates and  processes/io happen.

About to lodge a kernel bug about this as it is serious issue.

Could some one look at making the clean up process more sensitive to when the system is idle? MD Raid is very good at this, and it should be possible to set this up.

Best Regards,

Matt Grant���{.n�+�������+%�����ݶ��w��{.n�+����{���k~���^n�r���z���h����&���z��z�ޗ�+��+zf���h���~����i��������z_��j:+v���)ߣ�m

#1 lore raw
Quoted 7 lines · Matt Grant

Hi!

When ever I delete a large snapshot this stalls all the processes on my system for 30 minutes plus, kernel v19.2. Btrfs-cleaner is taking 100% CPU when completely stalled. Every few minutes its say 99.8% and satall abates and processes/io happen.

About to lodge a kernel bug about this as it is serious issue.

Could some one look at making the clean up process more sensitive to when the system is idle? MD Raid is very good at this, and it should be possible to set this up.

I suggest reproducing with 4.0.0, and issuing sysrq+t during the hang if it's just sluggish, or use sysrq+w if you get blocked task messages, and then attach to a bug report. Then reply to this thread with the bug URL.

Signature · 1 line
Chris Murphy
#2 lore raw
In reply to Matt Grant
Quoted 3 lines · On Thu, 16 Apr 2015 13:41:21 +1200 Matt Grant <[email protected]> wrote:

Hi!

When ever I delete a large snapshot this stalls all the processes on my system for 30 minutes plus, kernel v19.2. Btrfs-cleaner is taking 100% CPU when completely stalled. Every few minutes its say 99.8% and satall abates and  processes/io happen.

By any chance do you use this on SSD with TRIM enabled?

Signature · 2 lines
With respect,
Roman