Re: mbuf tuning

From: Mike Silbersack (silby_at_silby.com)
Date: 01/20/04

  • Next message: David Gilbert: "Re: Old SUN NFS performance papers."
    Date: Tue, 20 Jan 2004 01:56:09 -0600 (CST)
    To: CHOI Junho <cjh@kr.FreeBSD.org>
    
    

    On Mon, 19 Jan 2004, CHOI Junho wrote:

    > I am using custom version of thttpd. It allocates mmap() first(builtin
    > method of thttpd), and it try to use sendfile() if mmap() fails(out of
    > mmap memory). It really works good in normal status but the problem is
    > that sendfile buffer is also easy to flood. I need more sendfile
    > buffers but I don't know how to increase sendfile buffers either(I
    > think it's hidden sysctl but it was more difficult to tune than
    > nmbclusters). With higher traffic, thttpd sometimes stuck at "sfbufa"
    > status when I run top(I guess it's "sendfile buffer allocation"
    > status).
    >
    > 5.2 is fair good quality in my desktop but I have no experience in
    > production environment. I'll consider it once 5.x enters -STABLE tree,
    > but not now.
    >
    > Apache2 is one of my targets. How much better than apache-1.3.x in
    > static file service?

    thttpd using sendfile will certainly run circles around apache2, apache2
    is still pre-fork. Under 4.x, you're going to have to tune the sfbufs by
    trial and error, but doing so will be worth it.

    Mike "Silby" Silbersack
    _______________________________________________
    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: David Gilbert: "Re: Old SUN NFS performance papers."

    Relevant Pages

    • Re: mbuf tuning
      ... > mmap memory). ... > that sendfile buffer is also easy to flood. ... thttpd using sendfile will certainly run circles around apache2, ...
      (freebsd-net)
    • Re: mbuf tuning
      ... >> and I have talked about some ideas on how to make mbuf usage more dynamic, ... >> One way to reduce mbuf cluster usage is to use sendfile where possible. ... > that sendfile buffer is also easy to flood. ...
      (freebsd-net)
    • Re: mbuf tuning
      ... >> and I have talked about some ideas on how to make mbuf usage more dynamic, ... >> One way to reduce mbuf cluster usage is to use sendfile where possible. ... > that sendfile buffer is also easy to flood. ...
      (freebsd-performance)
    • Re: mbuf tuning
      ... Subject: mbuf tuning ... > and I have talked about some ideas on how to make mbuf usage more dynamic, ... > One way to reduce mbuf cluster usage is to use sendfile where possible. ... status when I run top(I guess it's "sendfile buffer allocation" ...
      (freebsd-net)
    • Re: mbuf tuning
      ... Subject: mbuf tuning ... > and I have talked about some ideas on how to make mbuf usage more dynamic, ... > One way to reduce mbuf cluster usage is to use sendfile where possible. ... status when I run top(I guess it's "sendfile buffer allocation" ...
      (freebsd-performance)