Re: Bug in kernel 2.6.31, Slow wb_kupdate writeout

From: Wu Fengguang
Date: Sat Aug 01 2009 - 01:04:41 EST


On Sat, Aug 01, 2009 at 12:53:46PM +0800, Wu Fengguang wrote:
> On Sat, Aug 01, 2009 at 12:03:13PM +0800, Wu Fengguang wrote:

> I can see the growth when I increased the dd size to 2GB,
> and the dd throughput decreased from 82.5MB/s to 60.9MB/s.

The raw disk write throughput seems to be 60MB/s:

wfg ~% dd if=/dev/zero of=/opt/vm/200M bs=1M count=200 oflag=direct
200+0 records in
200+0 records out
209715200 bytes (210 MB) copied, 3.48137 s, 60.2 MB/s

read throughput is a bit better:

wfg ~% dd of=/dev/null if=/opt/vm/200M bs=1M count=200 iflag=direct
200+0 records in
200+0 records out
209715200 bytes (210 MB) copied, 2.66606 s, 78.7 MB/s

# hdparm -tT /dev/hda

/dev/hda:
Timing cached reads: 10370 MB in 1.99 seconds = 5213.70 MB/sec
Timing buffered disk reads: 216 MB in 3.03 seconds = 71.22 MB/sec

And sync writes are pretty slow:

wfg ~% dd if=/dev/zero of=/opt/vm/200M bs=1M count=200 oflag=sync
200+0 records in
200+0 records out
209715200 bytes (210 MB) copied, 10.4741 s, 20.0 MB/s

Thanks,
Fengguang
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/