CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Potential minor performance tweak for Linux

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 6, 2007, 12:57
Default I thought I might mention this
  #1
connclark
Guest
 
Posts: n/a
I thought I might mention this here. The Linux kernel since 2.6.12 has implemented as security enhancement called Address Space Layout Randomization (see http://en.wikipedia.org/wiki/Address..._randomization for a description). This basically randomizes the address locations that it loads code, data, and stack memory. This has the unwanted side effect of increasing the number of page directories for memory management and thus reducing processor TLB hits (Refer to the second half of section 6.2.4 here http://lwn.net/Articles/254982/ ).

Now for the performance tweak. You can disable ASLR by adding the kernel boot parameter norandmaps . This does make your system theoretically less secure however if you have your system on a relatively safe network you may judge it to be worth doing. I haven't benchmarked any OpenFOAM runs with this yet. I did benchmark 5 kernel compiles with and with out it and had a consistent 0.25% speed increase. Considering the amount of memory that OpenFOAM uses with large cases I would expect that this speed increase would be higher.

Try it and see
  Reply With Quote

Old   November 6, 2007, 18:54
Default Update: I did a benchmark done
  #2
connclark
Guest
 
Posts: n/a
Update: I did a benchmark done with the tutorial channelOodles case.

with ASLR it took 110 minutes and 38 seconds.

with ASLR disabled it took 109 minutes and 55 seconds.
  Reply With Quote

Reply


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
Cygwin vs Native Linux performance vtk_fan OpenFOAM Running, Solving & CFD 0 February 4, 2008 12:22
Minor bug in CrankNicholsonDdtScheme henry OpenFOAM Bugs 5 May 22, 2007 11:52
Linux Cluster Performance with a bi-processor PC M. FLUENT 1 April 22, 2005 09:25
Performance of fluent on win200 and linux Seb FLUENT 7 February 5, 2004 15:08


All times are GMT -4. The time now is 21:37.