*sigh* http://blogs.sun.com/timc/entry/the_seduction_of_single_threaded
Even though you're only using US-IIIi CPUs, the same issue applies here. You're running a single threaded workload on 4 CPUs which are better at multithreaded workloads (US-IIIi) and comparing it to running a single threaded workload on a CPU optimized for a single threaded workload (Intel). At least that's what you appear to be doing (to me) from looking at your snippet and reading your description of the problem. That's comparing apples to loafers. On Thu, Sep 10, 2009 at 03:38, Raymond Wong <raym...@gmail.com> wrote: > Hi, > > Thanks for taking a look. > > The SPARC system is a Sun V440 with 4 CPUs and 16GB of RAM. The normal CPU > load is about 50% and minimal disk activity. > > What the script does is to go through a text file and get the beginning & > ending line # for printing the pages specified. The part of the script that > is taking over 20min on Solaris is quoted here. > > I ran the script in the /tmp folder on both the Solaris & Linux systems. > > > [code] > #!/usr/bin/bash > # > # set -x > # > # > authen=$1 > > prt_req_id=82044908 > page_from=200 > page_to=250 > printer=nec_p2000 > copies=0 > printed=1 > > file_dir=./ > org_file=o${prt_req_id}.out > dest_file=o${prt_req_id}.prt > line=0 > page=1 > BeginLine=1 > EndLine=0 > page_to=`echo ${page_to} + 1 | bc` > > echo `date` > echo "Calculating line numbers." > > while read a > do > line=`echo ${line} + 1 | bc` > if [ "`echo ${a} | cut -b1`" = ^L ] > then > page=`echo ${page} + 1 | bc` > if [ ${page_from} -eq ${page} ] > then > BeginLine=`echo ${line} | bc` > fi > if [ ${page_to} -eq ${page} ] > then > EndLine=`echo ${line} - 1 | bc` > break > fi > fi > done<<list > `cat ${file_dir}/${org_file}` > list > [/code] > -- > This message posted from opensolaris.org > _______________________________________________ > perf-discuss mailing list > perf-discuss@opensolaris.org > -- "You can choose your friends, you can choose the deals." - Equity Private AlphaGuy - http://alphaguy.blogspot.com On Twitter - @khyron4eva
_______________________________________________ perf-discuss mailing list perf-discuss@opensolaris.org