whay can't processes shrink as well as grow?
Chris Torek
chris at mimsy.umd.edu
Thu Oct 11 13:49:55 AEST 1990
In article <PCG.90Oct10212600 at odin.cs.aber.ac.uk> pcg at cs.aber.ac.uk
(Piercarlo Grandi) writes:
>Now there is a catch: even if your storage reclaimer detectes that a
>block of memory just under the break has become free, and lowers the
>break as a result, in many UNIX kernels this regrettably will not
>release any pages to the kernel mmeory pool ....
(from /sys/kern/vm_drum.c in the 4.{1,2,3,3-tahoe,3-reno} system:)
/*
* Expand or contract the virtual swap segment mapped
* by the argument diskmap so as to just allow the given size.
*
* FOR NOW CANT RELEASE UNLESS SHRINKING TO ZERO, SINCE PAGEOUTS MAY
* BE IN PROGRESS... TYPICALLY NEVER SHRINK ANYWAYS, SO DOESNT MATTER MUCH
*/
vsexpand(vssize, dmp, canshrink)
register segsz_t vssize;
register struct dmap *dmp;
{
...
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 405 2750)
Domain: chris at cs.umd.edu Path: uunet!mimsy!chris
More information about the Comp.unix.internals
mailing list