Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-07-2009, 02:45 AM   #1
Registered: Oct 2008
Distribution: Arch Linux
Posts: 37

Rep: Reputation: 17
program running time comparison under Linux Desktop, Linux Server and Windows Xp

Hi guys!

A few days ago, I tried to run the same program under three different OS, one is Ubuntu 8.10 Desktop, one is Ubuntu 8.10 Server, and the other is Windows XP, and I got interesting result regarding the running time of the program, it took 1 hour to run under Windows, and took almost 2 hours to run under Ubuntu Desktop, and what is more ridiculous I think is that it took nearly 6 hours to run under Ubuntu Server and the machine running Ubuntu Server is actually much much better that the previous two, so what's wrong? I always think Linux should be more effective than Windows, and Linux server version should be more effective than Desktop version, am I wrong?

The program I ran is written in C++ and use only the standard C++ libraries.

the machines running Windows and Ubuntu Desktop are just ordinary PCs:
1. cpu: Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz
2. mem: 2G

the machine running Ubuntu Server is DELL PE 6800:
1. cpu: Intel(R) Xeon(TM) CPU 3.00GHz (16 cores)
2. mem: 32G

Any ideas? Thanks in advance!
Old 05-07-2009, 09:26 AM   #2
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
I think that difference between a desktop and a server version of linux is more in the stability / reliability than in the performance. More over performance depend on what you're looking at, I mean for example that system tick in a kernel desktop configuration is 1ms, but in a server it would be 10ms: so the desktop user will see a "smoother" system, but at the price of less raw power since you will sheduling 10 more times...
For the hardware, if your program doesn't use many memory space, you won't notice any difference between 2GB and 32GB.
The number of core make a difference if your application is multi-threaded, if not you'll use only one core...
A last word regarding of the compiler (and its option) you're using? With gcc try with optimization and architecture flag to get better performance.

Last edited by jf.argentino; 05-07-2009 at 09:28 AM. Reason: GCC
Old 05-07-2009, 10:27 AM   #3
Registered: Oct 2008
Distribution: Arch Linux
Posts: 37

Original Poster
Rep: Reputation: 17
Hmm, I think you're right, so I think I need to figure out what factors affect the performance of the kernel, do you have any suggestions? thanks!


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
Comparison between Linux server and Windows server john83reuben Linux - Server 5 11-08-2007 04:22 PM
time on our RH linux FTP server is four hours ahead, but desktop time is correct?? dgr Linux - Newbie 10 10-09-2007 05:42 AM
Network Administration comparison of Windows 2003 Server and Linux depam Linux - Networking 4 11-18-2006 01:10 AM
windows to linux program comparison list ampex189 Linux - Newbie 3 08-19-2003 02:05 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:20 AM.

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