Can we see the simple program?

Alexander

On Wed, 21 Mar 2007, allen mathias 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.
Thanks
-Allen


This message posted from opensolaris.org
_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org


_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org

Reply via email to