DragonFly BSD
DragonFly commits List (threaded) for 2004-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/kern kern_msfbuf.c kern_xio.c src/sys/sys msfbuf.h src/sys/conf files

From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 5 Jun 2004 12:57:40 -0700 (PDT)

dillon      2004/06/05 12:57:40 PDT

DragonFly src repository

  Modified files:
    sys/kern             kern_xio.c 
    sys/conf             files 
  Added files:
    sys/kern             kern_msfbuf.c 
    sys/sys              msfbuf.h 
  Add the MSFBUF API.  MSFBUFs are like SFBUFs but they manage ephermal
  multi-page mappings instead of single-page mappings.  MSFBUFs have the
  same caching and page invalidation optimizations that SFBUFs have and are
  considered to be SMP-friendly.
  Whereas XIO manages pure page lists, MSFBUFs manage KVA mappings of pure
  page lists.
  This initial commit just gets the basic API operational.  The roadmap for
  future work includes things like better interactions with third-party XIOs,
  mapping user buffers into the kernel (extending the xio_init_ubuf() API into
  the MSFBUF API), and allowing higher level subsystems to pass previously
  released MSFBUFs as a hint to speed-up regeneration.  We also need to come
  up with a way to overload additional sets of MSFBUFs representing smaller
  chunks of memory on top of the same KVA space in order to efficiently use
  our KVA reservation when dealing with subsystems like the buffer cache.
  MSFBUFs will eventually replace the KVA management in the BUF/BIO, PIPE,
  and other subsystems which create fake linear mappings with pbufs.  The
  general idea for BUF/BIO will be to use XIO and MSFBUFs to avoid KVA
  mapping file data through the nominal I/O path.  XIO will be the primary I/O
  buffer mechanism while MSFBUFs will be used when things like UFS decide they
  need a temporary mapping.
  This is a collaborative work between Hiten Pandya <hmp@xxxxxxxxxxxxxxxxxxxxx>
  and Matthew Dillon <dillon@xxxxxxxxxxxxx>.
  Revision  Changes    Path
  1.6       +14 -0     src/sys/kern/kern_xio.c
  1.63      +1 -0      src/sys/conf/files


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]