4.2 does not properly size the virtual memory paging point

Keith Muller muller at sdcc3.UUCP
Sat Jan 5 09:02:26 AEST 1985


> Index:	sys/sys/vm_sched.c sys/vax/vmparam.h 4.2BSD
> 
> Description:
> 	At boot time 4.2 will size the paging point and swapping point
> 	according to the amount of free main memory is available. The
> 	algorithim used for sizing lotsfree (the paging point) does not
>		..... 

The submitted fix was missing a pair of {}. The correct fix is:

RCS file: RCS/vm_sched.c,v
retrieving revision 1.1
diff -c -r1.1 vm_sched.c
*** /tmp/,RCSt1001834	Tue Jan  1 14:56:27 1985
--- vm_sched.c	Tue Jan  1 14:53:22 1985
***************
*** 54,61
  	 *	minfree		is minimal amount of free memory which is
  	 *			tolerable.
  	 */
! 	if (lotsfree == 0)
! 		lotsfree = LOOPPAGES / LOTSFREEFRACT;
  	if (desfree == 0) {
  		desfree = DESFREE / NBPG;
  		if (desfree > LOOPPAGES / DESFREEFRACT)

--- 54,64 -----
  	 *	minfree		is minimal amount of free memory which is
  	 *			tolerable.
  	 */
! 	if (lotsfree == 0){
! 		lotsfree = LOTSFREE / NBPG;
! 		if (lotsfree > LOOPPAGES / LOTSFREEFRACT)
! 			lotsfree = LOOPPAGES / LOTSFREEFRACT;
! 	}
  	if (desfree == 0) {
  		desfree = DESFREE / NBPG;
  		if (desfree > LOOPPAGES / DESFREEFRACT)


Sorry for the error, i made a keystroke error while checking in the rcs file.

Keith Muller
University of California
Academic Computer Center



More information about the Comp.unix.wizards mailing list