public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
[parent not found: <20140606095836.65149718001@webmail.sinamail.sina.com.cn>]
* Interactivity regression since v3.11 in mm/vmscan.c
@ 2014-06-05 11:33 Felipe Contreras
  2014-06-05 13:37 ` Michal Hocko
  0 siblings, 1 reply; 16+ messages in thread
From: Felipe Contreras @ 2014-06-05 11:33 UTC (permalink / raw)
  To: linux-kernel, linux-mm
  Cc: Andrew Morton, Linus Torvalds, Mel Gorman, KAMEZAWA Hiroyuki,
	Rik van Riel

Hi,

For a while I've noticed that my machine bogs down in certain
situations, usually while doing heavy I/O operations, it is not just the
I/O operations, but everything, including the graphical interface, even
the mouse pointer.

As far as I can recall this did not happen in the past.

I noticed this specially on certain operations, for example updating a
a game on Steam (to an exteranl USB 3.0 device), or copying TV episodes
to a USB memory stick (probably flash-based).

Today I decided to finally hunt down the problem, so I created a
synthetic test that basically consists on copying a bunch of files from
one drive to another (from an SSD to an external USB 3.0). This is
pretty similar to what I noticed; the graphical interface slows down.

Then I bisected the issue and it turns out that indeed it wasn't
happening in the past, it started happening in v3.11, and it was
triggered by this commit:

  e2be15f (mm: vmscan: stall page reclaim and writeback pages based on
  dirty/writepage pages encountered)

Then I went back to the latest stable version (v3.14.5), and commented
out the line I think is causing the slow down:

  if (nr_unqueued_dirty == nr_taken || nr_immediate)
	  congestion_wait(BLK_RW_ASYNC, HZ/10);

After that I don't notice the slow down any more.

Anybody has any ideas how to fix the issue properly?

-- 
Felipe Contreras

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

end of thread, other threads:[~2014-06-09 12:58 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20140607123518.88983301D2@webmail.sinamail.sina.com.cn>
2014-06-07 15:23 ` Interactivity regression since v3.11 in mm/vmscan.c Felipe Contreras
2014-06-07 18:24 ` Linus Torvalds
2014-06-08 21:33   ` Linus Torvalds
2014-06-09 12:58   ` Mel Gorman
     [not found] <20140606095836.65149718001@webmail.sinamail.sina.com.cn>
2014-06-06 10:24 ` Felipe Contreras
2014-06-05 11:33 Felipe Contreras
2014-06-05 13:37 ` Michal Hocko
2014-06-05 14:00   ` Felipe Contreras
2014-06-06  9:16     ` Michal Hocko
2014-06-06 10:33       ` Felipe Contreras
2014-06-06 11:03         ` Michal Hocko
2014-06-06 12:54           ` Felipe Contreras
2014-06-06 23:11         ` Felipe Contreras
2014-06-09  7:53           ` Michal Hocko
2014-06-09 10:02             ` Felipe Contreras
2014-06-06 12:27   ` Felipe Contreras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox