lkml.org 
[lkml]   [1997]   [Jan]   [7]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
From(Matthias Urlichs)
SubjectRe: Ick: Setting shared memory segment size (fwd)
Date5 Jan 1997 16:17:36 +0100
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 12:38    [from the cache]
©2003-2008