linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* jbd2_clear_buffer_revoked_flags() takes a long time
@ 2018-10-10 13:43 Adrian Hunter
  2018-10-10 17:49 ` Theodore Y. Ts'o
  0 siblings, 1 reply; 6+ messages in thread
From: Adrian Hunter @ 2018-10-10 13:43 UTC (permalink / raw)
  To: Andreas Dilger, linux-ext4@vger.kernel.org, Theodore Ts'o

Hi

I have a case on a v4.14 kernel where the EXT4 journal commit disables
preemption for 30ms due to jbd2_clear_buffer_revoked_flags().  That in turn
disables preemption on other CPUs as they come to spin waiting for the same
lock.  The side-effect of that is that it periodically blocks high priority
tasks from running.

I see jbd2_clear_buffer_revoked_flags() iterating 32768 times calling
__find_get_block().

Is there any way to make jbd2_clear_buffer_revoked_flags() take less time,
or move its work out from under write_lock(&journal->j_state_lock)?

Or do you have any other suggestions?

Regards
Adrian

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

end of thread, other threads:[~2018-10-16 17:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-10 13:43 jbd2_clear_buffer_revoked_flags() takes a long time Adrian Hunter
2018-10-10 17:49 ` Theodore Y. Ts'o
2018-10-11 11:12   ` Jan Kara
2018-10-11 12:38     ` Adrian Hunter
2018-10-16  8:49       ` Adrian Hunter
2018-10-16  9:50         ` Jan Kara

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