Performance Comparison

I recently migrated a web application from Red Hat (Intel) to a new T2000 (Solaris 10) box.

I have a test script that takes 8 seconds on the T2000 and only 2 seconds on the Intel box.

The script performs a readdir and opens each file looking for a particular string.

I have an identical number of files in the search directory on both servers. Is this normal operation or is there some file system optimization that can performed to bring these numbers closer together.

Thanks in Advance.

Mike

[531 byte] By [dexthageeka] at [2007-11-26 17:50:02]
# 1
?Are you comparing a fish to a bicycle? You don't say anything about the Red Hat host's hardware.
wsandersa at 2007-7-9 5:02:32 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2

Remeber, the t2000 is optimised for parallelism not for single threaded performance.

Its effectively a system with 32 relatively slow processors.

So its not surprising that it doesn't do a very well on a single threaded test.

Fire up 64 instances of the benchmark simultaneously and see how the 2 system fare.

robert.cohena at 2007-7-9 5:02:32 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3
This may be because the OS(linux) is faster, not the server hardware problem . I have seen sometimes linux runs faster on Sunbox(H/W) than SunOS itself on Sunbox.
bhaskisa at 2007-7-9 5:02:32 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 4
Sorry, The hardware for the intel server was Dual 3.2 Xeon with 2 GB Ram
dexthageeka at 2007-7-9 5:02:32 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 5
Here are the times. Running the same script.Intel: real0m1.906suser0m1.637ssys0m0.270sT2000:real0m7.879suser0m7.095ssys0m0.763s
dexthageeka at 2007-7-9 5:02:32 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 6
Have you got noatime specified in vfstab. logging is also worth trying, but its probably on by default.The only other thing you could try is migrate your filesystem to zfs.
robert.cohena at 2007-7-9 5:02:32 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...