> 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: urlichs@noris.de 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="http://info.noris.de/~smurf/finger">here</A>. 42