Bug 109169 - msc.nastran fails to allocate >800MB
msc.nastran fails to allocate >800MB
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: kernel (Show other bugs)
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Arjan van de Ven
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2003-11-05 07:42 EST by Ryan Sweet
Modified: 2007-11-30 17:06 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-11-25 11:08:20 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
msc.nastran 2001 logfile showing memory allocation error (2.96 KB, text/plain)
2003-11-05 07:45 EST, Ryan Sweet
no flags Details
/proc/<pid>/maps from a nastran job with mem=800MB (2.90 KB, text/plain)
2003-11-05 07:46 EST, Ryan Sweet
no flags Details

  None (edit)
Description Ryan Sweet 2003-11-05 07:42:30 EST
Description of problem:

There is a problem with MSC.NASTRAN allocating>800MB of RAM on ia32
systems whihc is described here:

Presumably, this problem should not occur when running the 32bit
binary under an opteron with >2GB of RAM, however I am experiencing
the issue here on an upgraded taroon system.

I installed the latest kernel errata (2.4.21-4.0.1.ELsmp) as it
appeared to be directly related, however the problem has not changed
after the update.

On the taroon list, Arjan van de Ven asked for the /proc/<pid>/maps
file of the process before it fails, however even from a script I
cannot get the pid fast enough.  Thus I am attaching the maps file
from a run where mem is limited to 800MB.

Version-Release number of selected component (if applicable):

How reproducible:
using msc.nastran 2001;
nastran scr=yes mem=896MB

Steps to Reproduce:
1.run nastran with a mem request (or estimate result) >800MB
2. error appears in nastran's .log file
Actual results:
see attached files

Expected results:
allocation succeeds and the job runs

Additional info:
Comment 1 Ryan Sweet 2003-11-05 07:45:09 EST
Created attachment 95727 [details]
msc.nastran 2001 logfile showing memory allocation error 

also tried with stack size =unlimited but that doesn't seem to matter...
Comment 2 Ryan Sweet 2003-11-05 07:46:56 EST
Created attachment 95728 [details]
/proc/<pid>/maps from a nastran job with mem=800MB

since I can't get the maps file from a failing instance (tried scripting it but
can't get the pid fast enough) here is the maps file from a successful
instance, limited to 800MB by using the command line 
nastran mem=800MB
Comment 3 Arjan van de Ven 2003-11-05 07:51:03 EST
ok this shows the kernel is just fine, but that msc is broken.
It doesn't use the glibc memory allocator but a broken own allocator,
which doesn't know how to deal with linux well. There's nothing we can
really fix here... MSC needs to fix their allocator to work properly
with linux (eg fall back to mmap of /dev/zero if brk space runs out)
Comment 4 Ryan Sweet 2003-11-05 07:58:08 EST
Is there any point in my looking at the 'tumb' patches described in
the MSC FAQ:

Comment 5 Arjan van de Ven 2003-11-05 08:02:17 EST
no; that has no relevance on amd64 really....

Note You need to log in before you can comment on or make changes to this bug.