CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Too Slow CFX Simulation on powerful cpu

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 7, 2015, 01:41
Default Too Slow CFX Simulation on powerful cpu
  #1
Member
 
Hamidreza Bijanyar
Join Date: Jun 2015
Posts: 40
Rep Power: 10
bejanyar is on a distinguished road
Hello,
I had a 4 core Core i5 cpu and 8 gigs of RAM.
My simulation was well but not fast enough.
Now i got a 16 core Xenon cpu with 12 gigs of ram.
My simulation time in first case was about 2 hours.
In second case i expected better performance but my simulation time goes to 5 hours !!!!!!!
In first case i used parallel run with number 4 and in second with number 16.
What is the problem ????
bejanyar is offline   Reply With Quote

Old   September 7, 2015, 02:22
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
It could be your computer, OS or simulation. Here's some comments:

Computer/OS:
* Make sure the BIOS is current and supports the CPU
* your key drivers (motherboard, harddrive, display etc) are current
* there is no other software running which is killing things (virus checkers are a key culprit here)
* and that your new system actually is faster than the old one (check spec.org)

Simulation:
* Some simulations do not run well parallel. Examples include: small meshes, monte carlo radiation (I think this problem still exists, correct me if I am wrong), writing lots of results files or other things which thrash the hard drive.
ghorrocks is offline   Reply With Quote

Old   September 7, 2015, 05:41
Default
  #3
Member
 
Hamidreza Bijanyar
Join Date: Jun 2015
Posts: 40
Rep Power: 10
bejanyar is on a distinguished road
I checked items you mentioned.
About the computer and OS there isn't any problem.
But i found the computer's hard drive isn't fast enough !!
I running a 16 core parallel simulation. And it my be too much for hard drive!
If i use serial simulation , all my 16 core will be used ?? or not ??
Any other thing i think about is the solver setting.
I use RSM for queue simulation jobs.
May something in RSM have problem ?? Like cluster type ?? or some other .. ??
I put cluster type on "none" .
Thank you for your answers .
bejanyar is offline   Reply With Quote

Old   September 7, 2015, 07:07
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
My previous list was just a start. There are many more things to check.

Hard drive speed should not make a difference to CFD speed unless:
* Your simulation is generating an immense amount of results files (this is very unusual, but does happen)
* Your simulation is too big for the available memory so it is going to swap memory. This is very bad for a CFD run and will make it run very slowly. If this is the case you need to make a smaller simulation, get more memory or run distributed parallel to spread the memory around a few machines so they all run in-core.

If you set up a bad MPI interface that can also cripple performance. Try the other MPI modes.
ghorrocks is offline   Reply With Quote

Old   September 7, 2015, 14:35
Default
  #5
Member
 
Hamidreza Bijanyar
Join Date: Jun 2015
Posts: 40
Rep Power: 10
bejanyar is on a distinguished road
I checked them all again.
My ram is 12 gig and in worst case only 7 gigs of it is in use.

You told about MPI setting. How can do it correct ???
I did nothing. Only choose parallel and set number 16. Nothing else. Any other configuration should i do ??
bejanyar is offline   Reply With Quote

Old   September 7, 2015, 18:43
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
In the directory <CFX_ROOT>/examples there is a file called Benchmark.def. This is a good benchmark CFX simulation to diagnose how fast your machine is and sort out problems. It only takes a minute or two to run so it is pretty quick.

On the old machine, run this def file in serial, local parallel with 2 and 4 processes.

Then repeat on the new machine in serial, local parallel with 2, 4, 8 and 16 processes.

The benchmark is too small to run well at 16 processes but the others will be instructive.
ghorrocks is offline   Reply With Quote

Old   September 8, 2015, 09:18
Default
  #7
Member
 
Hamidreza Bijanyar
Join Date: Jun 2015
Posts: 40
Rep Power: 10
bejanyar is on a distinguished road
I used benchmark tool and found that in parallel run with 8 core it has better performance.
So i run my simulation on 8 core and there was no problem and my computer run as fast as i want.

I dont understant why , but OK !!!
Thank you for you help ghorrocks.
bejanyar is offline   Reply With Quote

Old   September 8, 2015, 09:56
Default
  #8
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
Could it be that the last 8 cores comes from using hyper-threading? CFX shouldnt be used with hyper-threading and you will not see any significant speedup with those 'virtual' cores.
Lance is offline   Reply With Quote

Old   September 8, 2015, 19:00
Default
  #9
Senior Member
 
Join Date: Jun 2009
Posts: 1,788
Rep Power: 31
Opaque will become famous soon enough
As suggested before, it will be good to run from 8 -> 16 cores (assuming the CPU has 16 real cores, not the hyperthreading fake stuff) in steps of 2, i.e. 8, 10, 12, 14, 16.

You then plot the scalability and you will see that if there is any degradation in performance. In general, those high core count CPU's do not scale well for applications that are memory bound because the memory bus cannot cope with the huge amount of data typical of CFD applications.

If you have available (at least of a test) another machine you can try running distributed parallel the same test above, i.e. from 8->16 but splitting the load. For example, 8 partitions with 4 partitions/machine, 10 (5 partitions/machine), 12 (6 partition/machine), .... You may see better parallel performance that way.
Opaque is offline   Reply With Quote

Old   September 9, 2015, 01:22
Default
  #10
Member
 
Hamidreza Bijanyar
Join Date: Jun 2015
Posts: 40
Rep Power: 10
bejanyar is on a distinguished road
I checked it.
It has best performance on 8 core parallel run.
Thanks for all answers.
bejanyar is offline   Reply With Quote

Old   September 9, 2015, 03:23
Default
  #11
Senior Member
 
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12
-Maxim- is on a distinguished road
Quote:
Originally Posted by Lance View Post
Could it be that the last 8 cores comes from using hyper-threading? CFX shouldnt be used with hyper-threading and you will not see any significant speedup with those 'virtual' cores.
that would have been my guess as well. You should disable that Hyper-Threading mechanism in BIOS. The physical cores are going to be used 100% - there's no 'use' for HT. It's just using up HPC licences
-Maxim- is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
FSI simulation in ansys cfx Arash67.m CFX 1 September 29, 2017 10:52
CFX vs FLUENT for particle tracking simulation iman ANSYS 2 August 31, 2012 21:34
Verifying results for a wind turbine blade simulation in ANSYS CFX Joystix CFX 3 April 27, 2012 18:52
Boundary condition setting regarding turbine simulation using CFX Lacerlacer CFX 11 March 12, 2012 10:32
CFX steady simulation gharek CFX 1 April 7, 2010 19:41


All times are GMT -4. The time now is 20:51.