[#4755] testsuites: atapi_hd_test.exp - performance test need "-o sync" option when mounting fs
Submitted By: Yi Li
Open Date
2008-12-25 22:24:46 Close Date
2008-12-25 22:39:36
Priority:
Medium Assignee:
Nobody
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
N/A Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Assigned (Not Start)
Uboot version or rev.:
Toolchain version or rev.:
App binary format:
N/A
Summary: testsuites: atapi_hd_test.exp - performance test need "-o sync" option when mounting fs
Details:
The write speed performance test in this script does not use "-o sync" when mount.
I think "-o sync" option is necessary to bypass the page cache and test the "real" hard disk write speed.
With "-o sync":
root:/> mount -o sync /dev/sda1 /mnt/
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
root:/> time dd if=/dev/zero of=/mnt/100m.bin bs=1M count=100
100+0 records in
100+0 records out
real 0m 22.16s
user 0m 0.00s
sys 0m 13.24s
4.5MB/s
Without "-o sync":
root:/> mount /dev/sda1 /mnt/
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
root:/> time dd if=/dev/zero of=/mnt/100m.bin bs=1M count=100
100+0 records in
100+0 records out
real 0m 9.60s
user 0m 0.00s
sys 0m 5.05s
10.4MB/s
Follow-ups
--- Yi Li 2008-12-25 22:39:36
duplicate. close.
--- Mike Frysinger 2008-12-25 23:35:41
duplicate of what ?
--- Yi Li 2008-12-26 01:15:12
Bug [#4756]. I commit twice.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found