lkml.org 
[lkml]   [1997]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Ick: Setting shared memory segment size (fwd)
Date
In linux.dev.kernel, article <9701011224.AA07157@halfpint.rtp.avanticorp.com>,
Jim Nance <jlnance@avanticorp.com> 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
reboot.

> 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

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.029 / U:1.956 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site