Max Number of Shared Memory per Process

Max Number of Shared Memory per Process

Post by Francis ANDR » Thu, 22 Apr 1999 04:00:00



Hello there

I am wondering what could be the maximum number of shared memory that
could be attached to a single process (I would need at least 2048
attached to a single process!!!)Any idea???

Francis ANDRE

 
 
 

Max Number of Shared Memory per Process

Post by Mattias Lundstro » Thu, 22 Apr 1999 04:00:00



> Hello there

> I am wondering what could be the maximum number of shared memory that
> could be attached to a single process (I would need at least 2048
> attached to a single process!!!)Any idea???

> Francis ANDRE

Hi,
From info doc 6328 sunsolve;

snip snip snip
.
.
.

Name    Default         Max             Description
------  --------------- ---------------
-------------------------------------

shmmax  1048576 (1Meg)  4294967295      Limits the maximum size of a
shared
                        (4GB)           memory segment, which is the
largest
                        2.5.1 or        value which can be requested of
                        higher          shmget(2).  Setting this value
high
                                        does not hurt anything, as the
                        2147483647      resource it controls is not
                        (2GB)           preallocated;  it is allocated
on
                        2.5 or lower    demand.

regards,
Mattias

 
 
 

Max Number of Shared Memory per Process

Post by Richard Ellin » Mon, 26 Apr 1999 04:00:00



> I am wondering what could be the maximum number of shared memory that
> could be attached to a single process (I would need at least 2048
> attached to a single process!!!)Any idea???

It depends on the OS.  Solaris 2.6 allows about 3.75GB per
process.  Solaris 7, having 64 bit address space, allows much more,
in fact more than you can find in a current system.

There is a system defined limit.  This is the maximum request size
for shared memory which is not rejected out of hand.  This is the
SHMMAX variable which can be examined from the sysdef command.
The maximum amount of shared memory for a process is:
        SHMMAX * SHMSEG

These can be adjusted at the system level and there are many
examples on how to do this.

The hard upper limit is the total amount of virtual memory available
in the system.
 -- richard

 
 
 

1. (Shared Memory Limits) Raise max number of segments per process

I would like to know how to raise the  max number of
segments(IPC V shared memory) per process ?
I found on /proc/sys/kernel the shmall and shmmax.

I adjust successfully the Maximum size in bytes for a shared memory
segment
echo 1073741824 > /proc/sys/kernel/shmmax

But how to set on the flight the max number of shm segment.
I have only 128 segments max on my Linux machine while I need
1000 segments !
SHMMNI     System wide maximum number of shared memory segments

Thanks for your help

  freygagne.vcf
< 1K Download

2. >& not working in csh

3. How to see memory used per user; memory used per process

4. Netscape mail and linux mail or mailx on linux

5. max file descriptor number per process in solaris2.7

6. ANNOUNCE: xmcd v2.0 CD-audio player

7. Setting max number of open files per process?

8. vote for Linus Torvalds!

9. How to limit the max number of process per user ?

10. Setting max number of per user processes.

11. max number of threads per JVM process in AIX

12. Max memory per process

13. Max memory per process in 64 bit mode