[perf-discuss] Re: ufs performance

2007-03-21 Thread allen mathias
Alex, yes adding in the -library=stlport4 option does help a lot. Will read the manual on why. Dan, yes the lseeks are way high on the CC version of the binary. Have posted this out on the studio forumn. thanks for your prompt comments as always. This message posted from opensolaris.org

[perf-discuss] Re: ufs performance

2007-03-21 Thread allen mathias
Dan here are the truss outputs -bash-3.00$ truss -c ./fileio-fs-fs #compiled using CC syscall seconds calls errors _exit.000 1 read .345 17198 write 13.249 100 open .030 9 1 clos

[perf-discuss] Re: ufs performance

2007-03-21 Thread allen mathias
Apologies for not posting this earlier. This is the source code. #include #include #include using namespace std; int main() { string line; ofstream fsmo; fsmo.open("temp.temp.ae"); ifstream fsm; fsm.open("temp.ae"); getline(fsm, line);

[perf-discuss] ufs performance

2007-03-21 Thread allen mathias
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