On 21/03/07, allen mathias <[EMAIL PROTECTED]> wrote:
Hi,
I am attempting to understand why my Solaris with a UFS filesystem is taking an
extrodinarilary larger time to read files from disk using a simple c++ program
as compared to a linux system. The program is simple C++ code that uses
fstreams to read a million lines and write them to a file as soon as the line
is read.
Compilation done with default options and 64bit binaries generated.
These are the 'time' outputs
1. Solaris snv56 + CC compilation
real 0m9.486s
user 0m4.610s
sys 0m4.873s
2. Solaris snv56 + g++ compilation
real 0m5.490s
user 0m1.703s
sys 0m3.782s
3. Linux 2.6 kernel + g++ compilation
real 0m5.349s
user 0m0.672s
sys 0m4.668s
Also I notice that if instead of using fstreams I use cin and 'cat' the file
into my test program the time values are in favor of the Solaris system.
ufs logging is set on all disks.
Can anyone shed some light on this.
It is difficult to say without seeing what this "simple" program is doing.
--
"Less is only more where more is no good." --Frank Lloyd Wright
Shawn Walker, Software and Systems Analyst
[EMAIL PROTECTED] - http://binarycrusader.blogspot.com/
_______________________________________________
ufs-discuss mailing list
[email protected]