Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Performance on multicore vs single core

Posted on 2008-10-29
Medium Priority
Last Modified: 2013-12-10
We are seeing some significant performance differences on single vs
multi-core processors on AMD chips.

We have a database application that we are running on XP which also
does regression analysis.

I have asked the manufacturer of the software if they have seen this,
but they have not.  They are using Clarion from SoftVelocity to build
the application.

on some systems I know the core others I do not

 AMD Athlon Socket 939 (single) 4000+       102 secs

 AMD Athlon 64 X2 (Toledo) (single) 4800+          145 secs

AMD Athlon 64 (Unknown) (dual) 3500+               184 secs

AMD  Black Edition (Brisbane) (dual) 5000+         780 secs
(Overclocked to 3GHz)

AMD  Athlon 64 (Brisbane) (dual) 5200 +

AMD Quad Phenom 9950                                    810 secs

We then installed the application on an operating system installed as
guest in VMWare

AMD  Quad Phenom 9950                                      92 secs

Any idea on what is going on here.  This really doesn't make sense.  I
would expect maybe a little performance hit but 5 to 6 times

The only hint I can see of the issue may be the run made on the
Toledo.   While it's clock speed is faster It's performance is still
worse than a 4000+.  My understanding is that a Toledo is a dual core
with one core disabled.

The software being used in these tests were written using SoftVelocity/Clarion.   I will more than likely post a specific problem to the Clarion group,  because although the problem is different I think it may be related.

But, this is not the only software in use where we are seeing the problem.  This is just the software that is causing the most problem.
Question by:baggins2001
  • 4
  • 3

Expert Comment

ID: 22849201
Not knowing your software, it's difficult to answer this. However, I'll give you a little backgorund, and let you draw your own conclusions:

A single core system is genreally consideren to be faster than a dual core system in terms of "actual clockspeed". This is because a dual core system will have two CPUs in the same physical space as a single system will have only one.
However, new technology allows for some pretty mean miniturization, so this "rule" might not always be true.
Also, you should always perform your test many time, so as to not run into situations where another job is screwing up your measurements.
That said, each generation of CPUs perform the same task differently because of differences in design. Thus two CPUs from the same year can easily have many differences in executions. In the days of old, this was most easily seen in interger and floating point operations, which for a long time meant that the latest version of Quake would always run faster on Intel CPUs than AMD CPUs of the same clockspeed.
In order for a program to truely take advantage of multicore CPU architecture, the program as WELL as the OS must be configured correctly to accept multiple threads. However, even if you're able to thread this GENIOUSLY, you'll never be able to halve the speed by using twice as many CPUs as there will be some overhead in threading and joining the results.

So while 5 times the execution time SOUNDS like a lot, it's theoretically possible if you hit all the wrong combinations of factors influencing the operation of the program. However, it seems more likely that you're running into a design flaw/limitation in the programming or the OS.

Author Comment

ID: 22850594
Thanks for your response.

This was actually a dual core.
AMD Athlon 64 X2 (Toledo) (single) 4800+          145 secs

Most of these systems were stripped bare and installed on brand new installations of XP with SP2 and the AMD drivers installed.

We have also obtained results for running this in an Intell E8550,
Intel E8550                                                               150 secs

We are still testing, but more sporadically, since we have found what we consider a temporary fix, running inside of VMWare.

I have contacted AMD and VMWare technical support.  None seem to be able to figure this one out.

Next test will be to go back and retest a couple of systems and make sure we had cpu affinity set correctly.


Expert Comment

ID: 22850752
Or if the program supports it, try installing a Linux flavor. Most linux' are every bit as good at multithreading as the latest Windows server editions, at a fraction of the cost. This will at least let you know if it's an OS limitation.
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 23000578
The software doesn't work on linux, but works on XP.  The best times  were achieved running XP in VMware on 64bit linux on the 9950 quad core system.

Accepted Solution

Twisteddk earned 2000 total points
ID: 23007753
Ah well. That might answer a few questions. Generally, XP isn't a truly multi threaded OS, and most programs written for it are even less so. So running it on a virtual machine might actually speed up things because the multithreading is much more efficient on the Linux box. However, you cant generalize. But if it's a database application, there are many databases availabel for Linux flavors, in case you have the option of choosing which DB to utilize. A single threaded DB does sound like quite a limitation. Are you sure the DB is configured correctly for the job ?

Author Comment

ID: 23008394
According to the vendor it is.  
But if we are running on a virtual machine, (this may be the part I don't understand) isn't  the virtual machine just pretending to be a simulated computer, and the actual software (OS and applications) behave the same as on a regular computer.
I mean my tests seem to bear this out that it doesn't behave the same.  But I am also trying to understand why and how vmware saved my butt and would any hypervisor that I had used done the same thing.
But you answered my original question. Thanks.

Author Closing Comment

ID: 31511446
I think this question was a little harder than the points I allocated.  But I really appreciate your help and I'll start a new question soon and see if someone else or you can answer the question of cpu and virtual machine/hypervisor architecture.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating a Cordova application which allow user to save to/load from his Dropbox account the application database.
How much do you know about the future of data centers? If you're like 50% of organizations, then it's probably not enough. Read on to get up to speed on this emerging field.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question