Messages in this thread | | | Subject | RE: [PATCH 2/2] aio: propogate post-EIOCBQUEUED errors to completion event | Date | Wed, 21 Feb 2007 00:09:58 +0300 | From | "Ananiev, Leonid I" <> |
| |
-O I've missed: aiostress -s 1200m -O -o 2 -i 1 -r 16k <test_file>
You are right I've used harness scripts. i=0; while ((i++<50)); do ~/bm/bin/runs I2 -; done &
It runs bmrun harness script which is long for different hardware configurations and test options. The lines in aio-stress wrapper which could be useful for you are: gcc aiostress.c -Wall -o aiostress -lpthread -laio 2>>${file_log} ... sudo umount -f ${pdisk} ${ppath} > /dev/null 2>&1 sudo /sbin/mke2fs -j ${pdisk} > /dev/null 2>>${file_log} sudo mount ${pdisk} ${ppath} > /dev/null 2>>${file_log}... export LD_LIBRARY_PATH=/lib:/usr/lib:$LD_LIBRARY_PATH all_files_size=1200 # in megabytes ... else num_disks=1 ((file_size = all_files_size / num_disks)) testfiles=${ppath}/test/testfile dd if=/dev/zero of=$testfiles bs=1M count=${file_size} > /dev/null fi aiostress ${*} -v -o 2 -s ${file_size}m -i 1 -r 16k $testfiles > ${file_res} 2>&1 if [ "$1" == "-S" ] ; then info="O_SYNC" elif [ "$1" == "-O" ] ; then info="O_DIRECT" fi awk .... ${file_res} .... Which does 1) mem=1G in kernel boot param if you have more 2) unmount; mk2fs; mount 3) dd if=/dev/zero of=<test_file> bs=1M count=1200 4) aiostress -s 1200m -O -o 2 -i 1 -r 16k <test_file> 5) if i++<50 goto 2).
Leonid -----Original Message----- From: Chris Mason [mailto:chris.mason@oracle.com] Sent: Tuesday, February 20, 2007 8:55 PM To: Ananiev, Leonid I Cc: Zach Brown; linux-aio@kvack.org; linux-kernel@vger.kernel.org; Benjamin LaHaise; Suparna bhattacharya; Andrew Morton Subject: Re: [PATCH 2/2] aio: propogate post-EIOCBQUEUED errors to completion event
On Tue, Feb 20, 2007 at 08:17:51PM +0300, Ananiev, Leonid I wrote: > aio-stress command lines used for test > 1) mem=1G in kernel boot param if you have more > 2) mk2fs for test_file > 3) dd if=/dev/zero of=<test_file> bs=1M count=1200 > 4) aiostress -s 1200m -o 2 -i 1 -r 16k <test_file> >
Sorry, this aio-stress command line doesn't do O_DIRECT. Do you have this bundled into a test script that I can try?
-chris - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |