does O_DIRECT hinder greatly file reading performance but not writing??
Hi All,
I am kind of new to UML and I am experiencing a very strange performance hinder with it. I am running two benchmarks; one that writes a 50Mbyte file and the other one reads a 50Mbyte file. I tried the benchmarks with and without setting the O_DIRECT flag, in which cases the whole task is done in a matter of seconds(10-30 seconds) except when reading the file with O_DIRECT flag on. In this case, it takes 18-20 min!!! I am running UML 2.4.19 on top of kernel 2.4.25. I have time output like that (average of 20 runs) Operation
User Time (sec)
Sys Time(sec)
Wall Clock Time(sec)
Write Without O_DIRECT 5.612000
0.117500
27.164500
Write With O_DIRECT 10.007000
0.017000
22.199500
Read without O_DIRECT 3.035000
0.091000
7.760000
Read With O_DIRECT 21.492000
29.680000
1133.054000
I would appreciate it very much if somebody would explain to me how to solve that strange performance problem, or even explain why does it happen for reading with O_DIRECT but not without !!?? Thanks allot, Lamia Youseff -- ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Please upgrade! (was: Re: [uml-devel] does O_DIRECT hinder greatly file reading performance but not writing??)
Alle 10:42, venerdì 2 luglio 2004, Lamia M.Youseff ha scritto:
Quoted 2 lines
I am running UML 2.4.19 on top of kernel 2.4.25. I have time output like that (average of 20 runs)
Well, could you try upgrading it to 2.4.24-1um and retesting? That UML is old, buggy, and outdated.
Signature · 14 lines
Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Re: Please upgrade! (was: Re: [uml-devel] does O_DIRECT hinder greatly file reading performance but not writing??)
Hello All, Hi BlaisorBlade,
I upgraded to 2.4.24-1um, but the same error still persist on the um..i.e. the disk reads takes so long when used with the O_DIRECT flag !! Anybody has any explanation for that??
Thank you,
Lamia Youseff
BlaisorBlade wrote:
Alle 10:42, venerdì 2 luglio 2004, Lamia M.Youseff ha scritto: I am running UML 2.4.19 on top of kernel 2.4.25. I have time output like that (average of 20 runs)