All of lore.kernel.org
 help / color / mirror / Atom feed
* Writes blocked on wait_for_stable_page (Writes of less than page size sometimes take too long)
@ 2015-01-28 18:58 Nikhilesh Reddy
  2015-01-28 19:27 ` Nikhilesh Reddy
  0 siblings, 1 reply; 11+ messages in thread
From: Nikhilesh Reddy @ 2015-01-28 18:58 UTC (permalink / raw)
  To: linux-ext4

Hi
I am working on a 64 bit Android device and have been trying to improve 
performance for stream based data download (for example an ftp)
The device has 3GB of ram and the dirty_ratio and dirty_background_ratio 
are set to 5 and 1 respectively.

Kernel 3.10 , Highmem is not enabled and the backing device is a emmc 
and checksumming is not enabled

I noticed when profiling writes that if we dont use streamed IO (ie. use 
write of whatever size data was read on the tcp stream) there are some 
writes that seem to get blocked on
wait_for_stable_page.

If I force the writes to be buffered in the userspace and ensure writing 
4k chunks the writes never seem to stall.

I noticed there was earlier discussion on this and idea were proposed to 
use snapshotting of the pages to avoid stalls...
For example: https://lwn.net/Articles/546658/

But this seems to only snapshot ext3 ... (unless i misunderstood what 
the patch is doing)

Is there a similar patch to snapshot the buffers to not stall the writes 
for ext4?

Please let me know.

I would really appreciate any help you can give me.

-- 
Thanks
Nikhilesh Reddy

Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project.

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

end of thread, other threads:[~2015-02-04 17:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-28 18:58 Writes blocked on wait_for_stable_page (Writes of less than page size sometimes take too long) Nikhilesh Reddy
2015-01-28 19:27 ` Nikhilesh Reddy
2015-01-28 21:39   ` Darrick J. Wong
2015-01-28 23:23     ` Nikhilesh Reddy
2015-01-28 23:36       ` Nikhilesh Reddy
2015-01-28 23:57         ` Darrick J. Wong
2015-01-30 21:25           ` Nikhilesh Reddy
2015-01-30 21:53             ` Darrick J. Wong
2015-02-01  2:37           ` Theodore Ts'o
2015-02-03 23:51             ` Nikhilesh Reddy
2015-02-04 17:02               ` Theodore Ts'o

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.