4.2 does not properly size the virtual memory paging point

Chris Torek chris at umcp-cs.UUCP
Fri Jan 4 06:43:05 AEST 1985


Looks like you missed a set of braces (else your indentation is wrong):

diff -c -r1.1 vm_sched.c
 .
 .
 .
--- 55,63 -----
  	 *			tolerable.
  	 */
  	if (lotsfree == 0)
! 		lotsfree = LOTSFREE / NBPG;
! 		if (lotsfree > LOOPPAGES / LOTSFREEFRACT)
! 			lotsfree = LOOPPAGES / LOTSFREEFRACT;
  	if (desfree == 0) {
  		desfree = DESFREE / NBPG;
  		if (desfree > LOOPPAGES / DESFREEFRACT)

should probably be

	if (lotsfree == 0) {
		lotsfree = LOTSFREE / NBPG
		if (lotsfree > LOOPPAGES / LOTSFREEFRACT)
			lotsfree = LOOPPAGES / LOTSFREEFRACT;
	}

This way the fraction is ignored if you set lotsfree with adb.
-- 
(This line accidently left nonblank.)

In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (301) 454-7690
UUCP:	{seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at maryland



More information about the Comp.bugs.4bsd.ucb-fixes mailing list