Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!spool.mu.edu!bloom-beacon.mit.edu!gatech!newsfeed.pitt.edu!uunet!heifetz.msen.com!zib-berlin.de!irz401!uriah.sax.de!not-for-mail From: j@uriah.sax.de (J Wunsch) Newsgroups: comp.os.386bsd.development Subject: Re: three questions about *BSD Date: 6 Jan 1995 16:48:31 +0100 Organization: Private U**x site, Dresden. Lines: 105 Message-ID: <3ejoof$ho0@bonnie.tcd-dresden.de> References: <T4TVBQWQ@math.fu-berlin.de> <D> <D1MsrL.LxL@ncrcae.columbiasc.ncr.com> <3ej516$gbe@bonnie.tcd-dresden.de> NNTP-Posting-Host: 192.109.108.139 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit I wrote: >After getting some initial hints from David Greenman (thanks!), i've >done this for our network server, a 64 MB machine. ... >If someone needs the hints, i can mail them. Ok, two requests already a few hours after posting this offer, i decided to post the answer, too. :-) Here's David's comment (i hope he doesn't mind me posting this): ~From: David Greenman <davidg@Root.COM> ~Date: Wed, 09 Nov 1994 19:41:04 -0800 This is actually rather difficult to do. There are a number of things you have to do (these things are found in various include files): 1) Increase NKPT to 48. 2) Increase VM_KMEM_SIZE from (currently) 16MB to 128MB 3) Increase "bufpages" calculation to be 75% of all memory instead of just 20% of memory. I might have forgotten some things or overlooked something - I've never actually done this. Note that the above *won't work* for 2.0. 2.0 is limited to about 6.5MB no matter what. This will hopefully change in 2.1. ...and here's my actual patch, for a 64-MB P90 machine. *** include/pmap.h.orig Tue Jun 7 19:48:46 1994 --- include/pmap.h Mon Dec 12 18:28:34 1994 *************** *** 133,139 **** * given to the user (NUPDE) */ #ifndef NKPT ! #define NKPT 15 /* actual number of kernel pte's */ #endif #ifndef NKPDE #define NKPDE 63 /* addressable number of kpte's */ --- 133,139 ---- * given to the user (NUPDE) */ #ifndef NKPT ! #define NKPT 48 /* actual number of kernel pte's */ #endif #ifndef NKPDE #define NKPDE 63 /* addressable number of kpte's */ *** include/vmparam.h.orig Mon Mar 21 10:35:24 1994 --- include/vmparam.h Mon Dec 12 18:28:09 1994 *************** *** 235,241 **** /* virtual sizes (bytes) for various kernel submaps */ #define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES) ! #define VM_KMEM_SIZE (16 * 1024 * 1024) #define VM_PHYS_SIZE (USRIOSIZE*CLBYTES) /* pcb base */ --- 235,241 ---- /* virtual sizes (bytes) for various kernel submaps */ #define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES) ! #define VM_KMEM_SIZE (128 * 1024 * 1024) #define VM_PHYS_SIZE (USRIOSIZE*CLBYTES) /* pcb base */ *** i386/machdep.c.orig Fri Jun 17 15:32:07 1994 --- i386/machdep.c Mon Dec 12 18:29:57 1994 *************** *** 218,229 **** #endif /* * Determine how many buffers to allocate. ! * Use 20% of memory of memory beyond the first 2MB * Insure a minimum of 16 fs buffers. * We allocate 1/2 as many swap buffer headers as file i/o buffers. */ if (bufpages == 0) ! bufpages = ((physmem << PGSHIFT) - 2048*1024) / NBPG / 5; if (bufpages < 64) bufpages = 64; --- 218,229 ---- #endif /* * Determine how many buffers to allocate. ! * Use 60% of memory of memory beyond the first 2MB * Insure a minimum of 16 fs buffers. * We allocate 1/2 as many swap buffer headers as file i/o buffers. */ if (bufpages == 0) ! bufpages = ((physmem << PGSHIFT) - 2048*1024) / NBPG * 3 / 5; if (bufpages < 64) bufpages = 64; -- cheers, J"org work: --- no longer --- private: joerg_wunsch@uriah.sax.de Never trust an operating system you don't have sources for. ;-)