LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-01-2006, 02:36 PM   #1
fdarvas
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Rep: Reputation: 0
slow multithreading with fedora core 5


We have a quad dual core opteron system (i.e. 8 CPU cores in total) on which we run our multithreaded code. Previously we had Red Hat Enterprise Linux 3 running on it. I changed the system to FC5 recently and now the same multithreaded code runs much slower!
The performance dropped from 180s (on WS3) to 277s (on FC5) for exactly the same code (using all 8 cores). In single thread mode, there is no difference in performance. Any ideas?

Thanks,

Felix
 
Old 09-02-2006, 08:19 AM   #2
youngri
Member
 
Registered: Jun 2003
Location: Sydney Australia
Distribution: SUSE / PCLinuxOS / MEPIS
Posts: 65

Rep: Reputation: 15
Hi.

Interesting issue. I don't have an answer, but I have built a quad HT box (Windows based) which was used for testing a banks risk assessment software.

The use of the processors varied depending on the type of calculations (Floating point or integer based). Also the performance slowed down the more processors were added/used. What improved however was the load capacity the software could deal with.

So I would guess that your issues depend on how each operating system deals with the threading model, the algorithms and the load. The other thing with the banks code was that it could fit into the processor cache. Does yours have a lot of disk writes?

Just a thought...don't know if the above is of any real value to yourselves!

Richard
 
Old 09-02-2006, 12:22 PM   #3
fdarvas
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
slow multithreading

Quote:
Originally Posted by youngri
Hi.

Interesting issue. I don't have an answer, but I have built a quad HT box (Windows based) which was used for testing a banks risk assessment software.

The use of the processors varied depending on the type of calculations (Floating point or integer based). Also the performance slowed down the more processors were added/used. What improved however was the load capacity the software could deal with.

So I would guess that your issues depend on how each operating system deals with the threading model, the algorithms and the load. The other thing with the banks code was that it could fit into the processor cache. Does yours have a lot of disk writes?

Just a thought...don't know if the above is of any real value to yourselves!

Richard
The program does not fit into the cache, so yes we have a lot of regular memory access. The system has 32GByte of ram, so no disk access at all. What is weird though is, that we "only" changed from one older to linux version to the latest and see these performance losses. Could it possibly be related to the fact that we use a generic 64 bit kernel?
 
Old 09-02-2006, 06:55 PM   #4
youngri
Member
 
Registered: Jun 2003
Location: Sydney Australia
Distribution: SUSE / PCLinuxOS / MEPIS
Posts: 65

Rep: Reputation: 15
Quite probably. The SMP kernels are 'endowed' with NPTL (Multi Processor Threading).

Do a search on kernel-smp in yum or pirut.

The latest kernel from what I can see is kernel-smp-2.6.17-1.2174
 
Old 09-02-2006, 07:31 PM   #5
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Red Hat Enterprise Linux costs at least US$350.

Fedora Core is free.

If they both behaved the same then nobody would pay for the Enterprise Server version.

Fedora Core is intended to be a demo/workstation system. What you have achieved is to prove that you do get a better tuned system from Red Hat when you pay US$350 compared to using their free software.

Given that you have spent a huge amount of money on the hardware it makes sense to spend some money on one of the enterprise versions of Linux or go back to the version of RHEL that you had been using. I can't imagine what inspired you to make the change in the first place.

Last edited by stress_junkie; 09-02-2006 at 07:46 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow multithreading with 2.6.13 andy753421 Linux - Software 8 09-16-2005 04:29 PM
Fedora Core 3 Too Slow... 07mackenzie Linux - Distributions 16 05-05-2005 08:15 AM
X under Fedora Core 3 is slow legolin Linux - Software 5 04-22-2005 03:42 AM
Fedora Core 3 - Browser Really Slow wfischer Linux - Networking 3 12-22-2004 07:14 AM
Linux (fedora core 2) being slow NewbGhostShells Linux - Newbie 18 08-27-2004 12:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration