* Size of Shared Memory?
@ 1995-03-03 13:14 John Boccio
1995-03-03 14:24 ` John P. Speno
1995-03-10 15:05 ` Torbj|rn Lindgren
0 siblings, 2 replies; 4+ messages in thread
From: John Boccio @ 1995-03-03 13:14 UTC (permalink / raw)
Hi,
I am running the AVS visualization program. In general it works fine with
all of the default kernal settings. However when I am reading in a very
large data file (Digital Elevation Map). I get thrown out with the error
message that
"it cannot load the file into shared memory"
The file is about 10 MB in size. The program works with smaller files.
Can I change the "size of shared memory"?
If so, what are the kernal parameters that control it and where do I enter them
in the configuration file?
Is there something else I should do?
This is on a DEC 3000/600 with 192 MB of memory and the b-partitions on
two rz-28 disks set up as swap space. So I do not think it is a direcxt memory
or swap space problem(but I may be wrong).
Any suggestions will be greatly appreciated.
Thanks,
John Boccio
boccio@cc.swarthmore.edu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Size of Shared Memory?
1995-03-03 13:14 Size of Shared Memory? John Boccio
@ 1995-03-03 14:24 ` John P. Speno
1995-03-15 16:42 ` Eric Osborne
1995-03-10 15:05 ` Torbj|rn Lindgren
1 sibling, 1 reply; 4+ messages in thread
From: John P. Speno @ 1995-03-03 14:24 UTC (permalink / raw)
>Hi,
Hello Stranger.
>Can I change the "size of shared memory"?
>If so, what are the kernal parameters that control it and where do I enter them
>in the configuration file?
There are four kernel options you can set in your system configuration file.
They are:
option Usage [Default Value]
shmmin Min. shared mem. segment size [1]
shmmax Max. shared mem. segment size [4194304]
shmmni Num. of shared mem identifiers [100]
shmseg Max. num. of attached shared mem. segments/process [32]
In the config file, you could increase shmmax like so:
shmmax 8388608
And this would give you an 8 meg max segment. Pax.
--
John P. Speno, speno@cc.swarthmore.edu, Swarthmore College Computing Center
"There is no wisdom greater than kindness."
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Size of Shared Memory?
1995-03-03 14:24 ` John P. Speno
@ 1995-03-15 16:42 ` Eric Osborne
0 siblings, 0 replies; 4+ messages in thread
From: Eric Osborne @ 1995-03-15 16:42 UTC (permalink / raw)
>Can I change the "size of shared memory"?
>If so, what are the kernal parameters that control it and where do I enter them
>in the configuration file?
If you're using the latest (3.0 or 3.2) versions of OSF/1, try checking out
sysconfig and sysconfigdb. You can modify many kernel parameters, including
the shared memory segment sizes, without having to rebuild the kernel.
sysconfig -q ipc should show you the current settings. You can redirect those
into a file, edit it to taste, and then use sysconfigdb to put them into the
database. The change will take effect on reboot. It appears that ultimately,
it will be possible to modify many parameters on the fly using this
mechanism.
By the way, the current size of a single shared memory segment is restricted
to about 2GB. The kernel object that keeps track of the shared memory segment
size maximum is a signed integer. So, if you set the shared memory segment
maximum size to >2GB, weird stuff happens.
Hope that helps.
Eric Osborne
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Size of Shared Memory?
1995-03-03 13:14 Size of Shared Memory? John Boccio
1995-03-03 14:24 ` John P. Speno
@ 1995-03-10 15:05 ` Torbj|rn Lindgren
1 sibling, 0 replies; 4+ messages in thread
From: Torbj|rn Lindgren @ 1995-03-10 15:05 UTC (permalink / raw)
In article <boccio-0303950814320001@photon.swarthmore.edu>,
John Boccio <boccio@cc.swarthmore.edu> wrote:
>"it cannot load the file into shared memory"
>The file is about 10 MB in size. The program works with smaller files.
The default maximum size of shared memory is 4 MB (in OSF/1 2.x).
>Can I change the "size of shared memory"?
>If so, what are the kernal parameters that control it and where do I enter them
>in the configuration file?
In OSF/1 2.x you use the 'shmmax xxxx' parameter in the kernel
configuration file, and then rebuild the kernel. I put it immediately
before the 'config vmunix' line, but it shouldn't sensitive for
position.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1995-03-15 16:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-03-03 13:14 Size of Shared Memory? John Boccio
1995-03-03 14:24 ` John P. Speno
1995-03-15 16:42 ` Eric Osborne
1995-03-10 15:05 ` Torbj|rn Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox