Jim Helman (jimh++at++surreal)
Fri, 05 May 95 13:33:18 -0700
The default arenasize in Performer 1.2 is 256MB, so I assume the
program is calling pfSharedArenaSize() to request the larger arena.
Assuming you're on 5.X, you won't need to worry about virtual swap,
so it should work as is, subject to the availability of contiguous
space in the process address space and subject to any limitations in
your shell's rlimit. The former shouldn't be a problem unless you
are doing mmaps or something before pfInit(). The latter can be fixed
with a few suitable calls to setrlimit or in the shell:
Example:
[check existing limits]
b52# limit -h
cputime unlimited
filesize unlimited
datasize 524288 kbytes
stacksize 524288 kbytes
coredumpsize unlimited
memoryuse 524288 kbytes
descriptors 2500
vmemoryuse 524288 kbytes
b52# limit
cputime unlimited
filesize unlimited
datasize 524288 kbytes
stacksize 65536 kbytes
coredumpsize unlimited
memoryuse 508996 kbytes
descriptors 200
vmemoryuse 524288 kbytes
b52# ./shmemhog 1500
requesting: 1572864000 bytes (1500MB)
Performer Fatal (12):pfInitArenas() Could not create shared arena of 768000 KB
[increase limits to approx 3GB, do NOT increase to 4GB or above since
a kernel bug some versions of 5.X will interpret the number as
NEGATIVE and prevent any process from running. You will get a
"Killed" message even trying to run "ls"]
b52# limit -h vmemoryuse 3000000
b52# limit -h memoryuse 3000000
b52# limit -h
cputime unlimited
filesize unlimited
datasize 524288 kbytes
stacksize 524288 kbytes
coredumpsize unlimited
memoryuse 3000000 kbytes
descriptors 2500
vmemoryuse 3000000 kbytes
[check new limits]
b52# limit vmemoryuse 3000000
b52# limit memoryuse 3000000
b52# limit
cputime unlimited
filesize unlimited
datasize 524288 kbytes
stacksize 65536 kbytes
coredumpsize unlimited
memoryuse 3000000 kbytes
descriptors 200
vmemoryuse 3000000 kbytes
[run performer app with big arenasize]
b52# ./shmemhog 1500
requesting: 1572864000 bytes (1500MB)
Performer Debug (9):pfInitArenas() Allocated 1536000KB
rgds,
-jim helman
jimh++at++surreal.asd.sgi.com
415/390-1151
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:28 PDT