Re: Best disk caching method (and PGSQL performance)

From: Sean Chittenden (sean_at_chittenden.org)
Date: 09/05/03

  • Next message: Terry Lambert: "Re: 20TB Storage System (fsck????)"
    Date: Thu, 4 Sep 2003 15:41:56 -0700
    To: "Jim C. Nasby" <jim@nasby.net>
    
    

    > If that's indeed the case, then it seems like the only way to get a
    > decent amount of data caching is by increasing the buffer size
    > (which apparently means increasing kern.nbuf, which also means
    > increasing KVA_PAGES (though I'm not at all sure about this).

    You can increase kern.nbuf and even have kern.nbuf available as a
    sysctl if you apply the following patch:

    http://people.freebsd.org/~seanc/patches/patch-HEAD-kern.nbuf

    One piece of advice I have received is, "I use an nbuf of something
    like twice the default one, and a BKVASIZE of 4 times the default.
    vfs.maxbufspace ends up at 445MB on the machine with 1GB, so it is
    maxed out now."

    As the sagely Mr. Bruce Evans has pointed out to me, buffer kva = nbuf
    * BKVASIZE, so it's not impossible to figure out what the nbuf level
    is for a machine, it is nice to not have to poke inside of header
    files to find the BKVASIZE.

    > Also, has anyone played with the other fsync options?

    FreeBSD only supports the default fsync option.

    -- 
    Sean Chittenden
    _______________________________________________
    freebsd-performance@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-performance
    To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org"
    

  • Next message: Terry Lambert: "Re: 20TB Storage System (fsck????)"

    Relevant Pages

    • Re: NBUF limits on all OpenServer versions
      ... the data (like whether the buffer in question is dirty, ... Multiply that by 450 000 (the limit for NBUF) ... that customized versions will run on 386 machines, so the kernel ... This layout may be so deeply ...
      (comp.unix.sco.misc)
    • Re: NBUF NHBUF and MAXBUF tuning
      ... Buffer allocation was reduced (NBUF reduced to 467116) ... NHBUF self-tune according to NBUF when NBUF is not set to zero? ... On OSR5 the buffer memory maximum is about 450MB, ... cache hash queues automatically at startup. ...
      (comp.unix.sco.misc)
    • Re: nbufkv hang?
      ... then you can prevent the fragmentation by increasing ... BKVASIZE to a value large than all block sizes in use. ... I also use some related fixes for broken scaling of nbuf. ...
      (freebsd-current)