cvs commit: src/sys/dev/usb usb_mem.c
Ian Dowse
iedowse at FreeBSD.org
Mon Jan 10 17:19:43 PST 2005
iedowse 2005-01-11 01:19:43 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_4)
sys/dev/usb usb_mem.c
Log:
MFC: 1.6; 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.5.4.2 +2 -1 src/sys/dev/usb/usb_mem.c
More information about the cvs-src
mailing list