Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Comsol slower in Linux?

Please login with a confirmed email address before reporting spam

hello!

my specs:
intel i7-3610QM up to 3.2 GHz
32gb 1600MHz Ram
2*128Gb crucial M4 ssd
500gb HDD

My simulations in comsol need a lot of RAM and SWAP so i decided to install Linux Mint (faster version of ubuntu) on my laptop using one 128Gb SSD only for SWAP.

Calculating a magnetic field simulation with 4.4 mio elements:
Windows 7: 29 min
Mint: 34 min

Now theres the question why linux is slower than windows 7. normally it should be faster...

is there a way to report in comsol how long each step of the solution was?
e.g.: compiling equation 2 min
linear solver 20 min
and so on.

Or are here some people with the same result?

3 Replies Last Post 11.07.2012, 06:21 GMT-4

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 10.07.2012, 10:08 GMT-4
I had similar cases.

For the same 3D transient heat transfer model, WINDOWS 7 took less time to finish the calculation than LINUX (SUSE).

I am planning to buy a new computer with WINDOWS 7 (64-bit).
I had similar cases. For the same 3D transient heat transfer model, WINDOWS 7 took less time to finish the calculation than LINUX (SUSE). I am planning to buy a new computer with WINDOWS 7 (64-bit).

Jim Freels mechanical side of nuclear engineering, multiphysics analysis, COMSOL specialist

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 10.07.2012, 18:22 GMT-4
My experience with COMSOL on linux is quite the opposite. Perhaps it is your setup.

If you have a problem large enough to use 32 GB of RAM and then requires additional swap space, this could be the primary slowdown. While in RAM, whether it be linux or windows, COMSOL should run about the same speed as long as it is running 64-bit.

If your problem is so large that it requires swap space to run, and you are using a SSD for the swap space, perhaps the driver for windows has been optimized for the hardware, and the driver for linux is using a default driver which is not optimized and much slower. You might want to take time to investigate what driver the SSD is using.

My recommendation is to try not to ever use swap space. if your problem requires a hard drive to use swap space, then get a bigger computer, or use a cluster to take advantage of distributed parallel processing to remove the swap space. Swap space is too slow whether it is windows or linux.
My experience with COMSOL on linux is quite the opposite. Perhaps it is your setup. If you have a problem large enough to use 32 GB of RAM and then requires additional swap space, this could be the primary slowdown. While in RAM, whether it be linux or windows, COMSOL should run about the same speed as long as it is running 64-bit. If your problem is so large that it requires swap space to run, and you are using a SSD for the swap space, perhaps the driver for windows has been optimized for the hardware, and the driver for linux is using a default driver which is not optimized and much slower. You might want to take time to investigate what driver the SSD is using. My recommendation is to try not to ever use swap space. if your problem requires a hard drive to use swap space, then get a bigger computer, or use a cluster to take advantage of distributed parallel processing to remove the swap space. Swap space is too slow whether it is windows or linux.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 11.07.2012, 06:21 GMT-4
thx!

the problem is that i'm working on my private pc because my institute doesn't have the money for a better pc. (we bought last week a new cluster with 256gb ram and 4 16core opteron but when we get it i'm already finished with my work)

i also can't reduce my mesh... (it's a 12 meter long systhem of 13 superconductor and a needed homogenety of 10^-4)

yesterday i tried a model which fits into ram (w7: 15min, linux: 19 min)

so the swap is also not the problem.
anyhow it's not such a big deal if i use the swap. (i need those results and if they need several days i've to deal with that)

i changed also some settings in linux for the ssd. (switched daemon, reduced swapiness and so on)
also the speedstepping/turbomode of the i7 works well under linux (my i7 gets automatically oc'ed to 3,2 ghz)

all in all:
cpu works well in linux (maybe another governor is needed?)
ssd is not the problem (only using the ram is still slower in linux)

could it be that the tempfile of comsol is the problem?
thx! the problem is that i'm working on my private pc because my institute doesn't have the money for a better pc. (we bought last week a new cluster with 256gb ram and 4 16core opteron but when we get it i'm already finished with my work) i also can't reduce my mesh... (it's a 12 meter long systhem of 13 superconductor and a needed homogenety of 10^-4) yesterday i tried a model which fits into ram (w7: 15min, linux: 19 min) so the swap is also not the problem. anyhow it's not such a big deal if i use the swap. (i need those results and if they need several days i've to deal with that) i changed also some settings in linux for the ssd. (switched daemon, reduced swapiness and so on) also the speedstepping/turbomode of the i7 works well under linux (my i7 gets automatically oc'ed to 3,2 ghz) all in all: cpu works well in linux (maybe another governor is needed?) ssd is not the problem (only using the ram is still slower in linux) could it be that the tempfile of comsol is the problem?

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.