Re: Ick: Setting shared memory segment size (fwd)

Matthias Urlichs (
5 Jan 1997 16:17:36 +0100

In, article <>,
Jim Nance <> writes:
> >
> > You still need to reboot the machine for this to take effect. But I
> > agree it should be a /proc tunable if possible.
If itïs settable with /proc/whatever then there shouldnït be a need to

> Just out of curisoity (no I cant spell), what forces there to be a limit
> on max shared mem sizes in the first place. I *THINK* that 2 processes
> can mmap() a file with MAP_SHARED and get any size of shared memory region
> that they want. If this is true, what is different about the shm*
> functions?
One reason is that if you mmap a file, the file is the place the system
swaps the memory to when it needs the room. With shm*, the memory gets
swapped out to swap, which the system can run out of rather easily.

In war, truth is the first casualty.
               --U Thant
Matthias Urlichs         \  noris network GmbH  /  Xlink-POP Nürnberg 
Schleiermacherstraße 12   \   Linux+Internet   /   EMail:
90491 Nürnberg (Germany)   \    Consulting+Programming+Networking+etc'ing
   PGP: 1024/4F578875   1B 89 E2 1C 43 EA 80 44  15 D2 29 CF C6 C7 E0 DE
       Click <A HREF="">here</A>.    42