CFD Online Logo CFD Online URL
Home > Forums > General Forums > Main CFD Forum

memory problems with a code on unix

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

LinkBack Thread Tools Display Modes
Old   November 4, 2002, 18:25
Default memory problems with a code on unix
Posts: n/a

I want to run a fortran code on an unix station but the execution generate errors due to insufficient memory. I precise that during the run the code need to write many intermediate files.

I think I need to extend the swapping memory. What are the unix commande which can solve my problem?

  Reply With Quote

Old   November 5, 2002, 04:31
Default Re: memory problems with a code on unix
Posts: n/a
I would firstly check that you have access to all of the standard memory. Depending on how the machine is set up you might have an allocation of only part of the total memory for any one job. For example, on one multi-processor machine I use there is 1GB of RAM, but the default setting is only 250MB for any job, unless you tell it otherwise.

Try issuing the command


and you should see a list of limits that can be set. In particular stacksize and memoryuse should be equal to the total memory available. To do this type

limit stacksize unlimited limit memoryuse unlimited

If you really need to use virtual memory then I think this can also be set with the command

limit vmemoryuse unlimited

but beware of using so much virtual memory that you can no longer write to disk.
  Reply With Quote

Old   November 5, 2002, 04:48
Default Re: memory problems with a code on unix - cont.
Posts: n/a
Sorry - message hasn't appeared quite as planned.

The commands

limit stacksize unlimited


limit memoryuse unlimited

should by typed separately.
  Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
From 2D compressible code to 3D code David Liu Main CFD Forum 22 June 26, 2012 17:59
Memory Problems David Baker Siemens 5 March 1, 2007 22:04
Problems with dynamic memory allocation Syed Siemens 0 July 23, 2006 12:02
Moving Mesh Problem in Unix Platform Arnab Siemens 3 August 16, 2004 08:59
Lets start the public domain CFD-Project! Heinz Wilkening Main CFD Forum 3 March 11, 1999 23:55

All times are GMT -4. The time now is 22:59.