Mathematics performance and hardware

Carlis

Senior member
May 19, 2006
237
0
76
Mostly out of curiosity;
What are the critical hardware resources for good performance under math programs like mathematica and matlab... Is it ram or processor speed? Does such processes make use of many cores?
 

trOver

Golden Member
Aug 18, 2006
1,417
0
0
sorry, but those programs arnt the most popular for benchmarking, so theres not much on them. I would say that most mathematics is going to be cpu work, because ram is just used for accessing the hd and a temporary storage space for the cache of the cpu. Because there is not much graphic work involved, i would say that cpu speed would be the best things in making your decision for running those programs
 

MagnusTheBrewer

IN MEMORIAM
Jun 19, 2004
24,122
1,594
126
Depending on the level of accuracy required, I could see a case being made for registered ram but, unless you moonlight for NASA, any system capable of running the software will give you simular performance. So, break out that 286 processor and have some fun!
 

Matthias99

Diamond Member
Oct 7, 2003
8,808
0
0
Originally posted by: trOver
sorry, but those programs arnt the most popular for benchmarking, so theres not much on them. I would say that most mathematics is going to be cpu work, because ram is just used for accessing the hd and a temporary storage space for the cache of the cpu. Because there is not much graphic work involved, i would say that cpu speed would be the best things in making your decision for running those programs

"ram is just used for accessing the hd"? I take it you don't do a lot of programming.

Number-crunching performance depends wildly on the sort of computations you are doing. Some algorithms require massive amounts of (fast) integer math -- frequently the limitation here will be the RAM, because the datasets are generally far too big to fit in the CPU's L1/L2 cache and so it spends a lot of cycles waiting to fetch data or write results. Others require a lot of floating-point operations... depending on the exact CPU, and what operations you are doing, this could end up being limited by the speed of the FPU more than anything else. Some operations (usually ones that do relatively simple things to large amounts of data) can benefit from deep CPU pipelining -- but algorithms that constantly have to branch and make decisions based on their results tend to get hurt by overly deep pipelines, since they will frequently encounter pipeline stalls.

Modern x86 CPUs also offer specialized instruction sets (MMX, SSE/SSE2/SSE3) for doing SIMD (Single Instruction Multiple Data) or 'vector' operations on large amounts of data in parallel. If you have to do the same exact integer math to a vast quantity of data, using these instructions can increase performance significantly. Programs like Matlab would usually offer some method of accessing this functionality -- consult your documentation or an expert user.

I'm pretty sure that neither Mathematica nor Matlab is by default multithreaded (unless this is a recent development -- Matlab definitely wasn't a few years ago). There may be packages you can access that would allow it to use multiple cores for some operations -- or you could run multiple instances of the program.
 

Aluvus

Platinum Member
Apr 27, 2006
2,913
1
0
Originally posted by: MagnusTheBrewer
unless you moonlight for NASA, any system capable of running the software will give you simular performance. So, break out that 286 processor and have some fun!

Erm, uh, no. I don't have a great deal of experience with Mathematica, but I know Matlab likes to have a pretty powerful system even for fairly simple stuff.

Matthias99 is right though, that the answer to the OP's question will depend largely on the nature of the calculations being done. My general experience with Matlab has been that more RAM is valuable (particularly when dealing with large data sets, as one would expect), but once you have a reasonable amount of RAM processor speed becomes the major concern. Again, this is just my experience, based on the sort of (mostly not all that intensive) use I'm familiar with.

Matlab is single-threaded, though at various points it has been able to connect to libraries that make use of multithreading. Mathematica can apparently multithread some operations as of version 5.
 

MattM76

Member
Dec 8, 2005
54
0
0
A little different- but I know when I doing phylogenetic calculations using PAUP/Arlequin my CPU pings up to 50% on my e6600. Seems to indicate processor importance.

Matt
STD Blog
 

StormRider

Diamond Member
Mar 12, 2000
8,324
2
0
I think it depends on the type of mathematical processing you are doing. Numerical computation (like in MatLab) probably depends more on the FPU while symbolic computation (Mathematica) probably depends on integer performance. Mathematica can do both symbolic and numeric processing....
 

Carlis

Senior member
May 19, 2006
237
0
76
Yes matlab is painfully slow sometimes, I have been told its written in java. It is the default algebra program on my university. Many rather simple calculations can take 15-30 min(sparc´s & 1.6ghz amd) and soon I expect dealing with differential equations that will be far more messy.
From what I have heard mathematica is significantly faster and contain better graphic abilities. Maybe thats the way to go.

I just got my self a C2D 2.16 ghz 1 gig RAM laptop. I havent run much math on it yet but hopefylly that will fix it.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |