Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Aug 2002 22:36:22 -0700 (PDT)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/sys mbuf.h src/sys/kern uipc_mbuf.c
Message-ID:  <200208040536.g745aMb8037891@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
luigi       2002/08/03 22:36:22 PDT

  Modified files:        (Branch: RELENG_4)
    sys/sys              mbuf.h 
    sys/kern             uipc_mbuf.c 
  Log:
  MFC: add m_getcl() as a preferred way to get an mbuf with an
  attached cluster.
  
  Now that we have this interface both in -current and -stable, each
  network device driver can replace the call to MGETHDR/MCLGET with
  calls to m_getcl(), saving (on -stable) about 400 bytes and the
  associated cache pollution.
  
  Also, slightly modify m_freem() so that it keeps a small free list
  (controlled by kern.ipc.mcl_pool_max) of such buffers for use in m_getcl().
  Even a small size such as 10 elements gives about 10% improvement
  in the peak forwarding performance in bridges and routers.
  
  Revision   Changes    Path
  1.51.2.16  +65 -2     src/sys/kern/uipc_mbuf.c
  1.44.2.15  +1 -0      src/sys/sys/mbuf.h

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208040536.g745aMb8037891>