Subject: Re: Swapping problems (was: Re: 1.2 features, again)
To: None <>
From: Michael L. VanLoon -- <>
List: current-users
Date: 09/12/1996 20:42:26
Some time ago, you wrote:

>: Well... if you know what you're doing, you can always hard-code the
>: buffer cache in your kernel by 
>: options "NBUF=8192"
>: to use 8192 buffer pages, which will... errr... use up 32 MB on the i386
>: (isn't the pagesize 4096 bytes on them? check first.)
>: Note that you'll also lose up to 32 MB of data in case of a system crash.

>Btw, the nswbuf variable (which controls the number of swap buffers?) is
>normally initialized to 75% of nbuf, so if you manimulate NBUF, you should
>know this, or set NSWBUF independently.

NSWBUF does what?  It determines how much of the buffer cache is
allowed to be used to buffer access to swap?  I'm not exactly clear on
what it does.

If I'm setting up a news server, and set NBUF to approximately 25% of
RAM (say 16MB of 64MB), what would you recommend for NSWBUF?

  Michael L. VanLoon                 
        --<  Free your mind and your machine -- NetBSD free un*x  >--
    NetBSD working ports: 386+PC, Mac 68k, Amiga, Atari 68k, HP300, Sun3,
        Sun4/4c/4m, DEC MIPS, DEC Alpha, PC532, VAX, MVME68k, arm32...
    NetBSD ports in progress: PICA, others...