Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Performance of Linux vs. Windows for Math Intensive Program

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Shadders



Joined: Mon Jul 03, 2006 12:36 pm
Posts: 18

PostPosted: Mon Jul 03, 2006 12:47 pm    Post subject: Performance of Linux vs. Windows for Math Intensive Program Reply with quote

Not sure if anyone has come across this area before. I wish to program in C++/C to run math intensive calculations. As such, i have previously programmed with Windows Visual Studio, but i am unsure of the overheads that the operating system will place upon the program, i.e. how optimised the code will be.

Does anyone have any idea if a Linux implementation would run faster than a Windows implementation (Windows 2000/XP), if both were programmed with a graphical front end for the program ?, or both were programmed with a command line interface ?. Has there been any features or reviews in this area - first time i bought the magazine this month, so new to Linux area etc.

If anyone knows of a specific version of Linux that has optimised kernel ?? for scientific usage, then i would be most grateful for any guidance. Thanks.

Regards,

Richard...
Back to top
View user's profile Send private message
nordle
LXF regular


Joined: Fri Apr 08, 2005 10:56 pm
Posts: 1500

PostPosted: Tue Jul 04, 2006 12:24 am    Post subject: RE: Performance of Linux vs. Windows for Math Intensive Prog Reply with quote

The linux kernel has many version releases and within that there are many variations based on custom patches. Unforuntately I don't know anything about what youre asking really, only that there are probaby several patches available, or even a scienctific biased dsitro, might be worth checking distrowatch

Because of the nature of the linux kernel, modular and open source, people can patch it and use it almost anywhere for anything.

No help, sorry, but maybe someone else knows more specifically Smile


EDIT:
You can search on distrowatch for linux distro types ie scientific, may turn up a result as well as the "High Performance" section within search. Turned up this amongst others.
Back to top
View user's profile Send private message
GMorgan
LXF regular


Joined: Thu Jan 12, 2006 6:58 pm
Posts: 684
Location: South Wales, UK

PostPosted: Tue Jul 04, 2006 1:14 am    Post subject: RE: Performance of Linux vs. Windows for Math Intensive Prog Reply with quote

The advantage Linux has is you can strip down the OS to a bare minimum if your only interested in modelling (I assume thats the intensive maths) then it is posible to setup a distro with a bare minimum of memory wasting features.

If there is no pre-packaged scientific distro then it is posible to create one from the bottom up though that would take a bit of learning. Gentoo is probably the easiest of the customise to the finest detail distributions (thanks to portage) though theres no reason you couldn't achieve your aims with Debian (which is easier but not quite as customisable). Slackware is the most customisable but is also by far the most work.

So in the end I'd say that yes Linux should be superior for this than Windows but it all depends on taking the time to set it up (assuming there isn't something prebuilt).

Distrowatch is certainly a good place to look for this.

In terms of kernel optimisation this is the kernel website and there may be something that suits your needs there.
Back to top
View user's profile Send private message
jjmac
LXF regular


Joined: Fri Apr 08, 2005 2:32 am
Posts: 1996
Location: Sydney, Australia

PostPosted: Tue Jul 04, 2006 7:07 am    Post subject: RE: Performance of Linux vs. Windows for Math Intensive Prog Reply with quote

By a strange coincidence, this question looks very similar to a post on the 'ck' mailing list for June 2006. There were 3 related posts ...

http://bhhdoa.org.au/pipermail/ck/2006-June/index.html
http://bhhdoa.org.au/pipermail/ck/2006-June/006111.html
http://bhhdoa.org.au/pipermail/ck/2006-June/006116.html
http://bhhdoa.org.au/pipermail/ck/2006-June/006121.html

The answers provided were within the context of configure option for the "ck" patch rather than "which distro". But the drift seems to be that the solution more depends on how the kernel is configured rather than a particular distro choice.

>>
Does anyone have any idea if a Linux implementation would run faster than a Windows implementation (Windows 2000/XP),
>>

Generally, a distro that dosen't try to override config changes and auto start up services all the time would be better. Or rather, more directly configurable. You would likely want to configure out a lot of the "pre-emptive" options from the kernel, or strike a balance in terms of desktop usability. A lot would more depend on your processor and ram rather than distro choice.

Any Linux distro would be very suitable though. And probably more tunable than a Windows choice as well Smile


jm
_________________
http://counter.li.org
#313537

The FVWM wm -=- www.fvwm.org -=-

Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
Back to top
View user's profile Send private message
Shadders



Joined: Mon Jul 03, 2006 12:36 pm
Posts: 18

PostPosted: Tue Jul 04, 2006 11:59 am    Post subject: RE: Performance of Linux vs. Windows for Math Intensive Prog Reply with quote

Many thanks for all the replies - this has helped a great deal.

Regards,

Richard....
Back to top
View user's profile Send private message
TonyLB
LXF regular


Joined: Tue Apr 12, 2005 8:08 pm
Posts: 112
Location: Wirral, UK

PostPosted: Fri Jul 07, 2006 4:31 pm    Post subject: RE: Performance of Linux vs. Windows for Math Intensive Prog Reply with quote

Also, have a look at http://www.optimanumerics.com/

Tony
_________________
In the beginning was nothing, which exploded! (Lords and Ladies, Terry Pratchett)
Back to top
View user's profile Send private message
bischof



Joined: Mon Jul 10, 2006 8:46 am
Posts: 1

PostPosted: Mon Jul 10, 2006 8:50 am    Post subject: Reply with quote

Look for maths libraries that can do the maths fast (eg: OptimaNumerics, as TonyLB has pointed out). They have the greatest influence in getting good performance. Kernels usually don't affect that much.
Back to top
View user's profile Send private message
jjmac
LXF regular


Joined: Fri Apr 08, 2005 2:32 am
Posts: 1996
Location: Sydney, Australia

PostPosted: Tue Jul 11, 2006 12:54 am    Post subject: Reply with quote

True, specialised purpose libraries of course, kernel tuning will effect the desktop usability of the system though. That is, how 'nicely' a very computational process will interact with other desktop processes. If that is desired as well.


jm
_________________
http://counter.li.org
#313537

The FVWM wm -=- www.fvwm.org -=-

Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast