cvs commit: src/sys/dev/usb usb_mem.c

Ian Dowse iedowse at FreeBSD.org
Mon Aug 2 06:59:03 PDT 2004


iedowse     2004-08-02 13:59:02 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/usb          usb_mem.c 
  Log:
  When searching for a suitable block of memory on the free list,
  skip blocks that are too big by a factor of two or greater. This
  avoids some cases of extremely inefficient memory use that can occur
  when large (e.g. 64k) blocks on the free list get used when allocating
  a 4k chunk of 64-byte fragments. Because fragments have their own
  free list, the 60k difference got lost forever every time.
  
  Revision  Changes    Path
  1.6       +2 -1      src/sys/dev/usb/usb_mem.c


More information about the cvs-src mailing list