Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.bugs.4bsd,net.unix-wizards Subject: Re: 4.2 does not properly size the virtual memory paging point Message-ID: <2208@umcp-cs.UUCP> Date: Thu, 3-Jan-85 15:43:05 EST Article-I.D.: umcp-cs.2208 Posted: Thu Jan 3 15:43:05 1985 Date-Received: Sat, 5-Jan-85 02:09:07 EST References: <2598@sdcc3.UUCP> Organization: U of Maryland, Computer Science Dept., College Park, MD Lines: 32 Xref: watmath net.bugs.4bsd:1308 net.unix-wizards:11343 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@umcp-cs ARPA: chris@maryland