From owner-cvs-src@FreeBSD.ORG Tue Jan 11 01:19:43 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A539216A4CE; Tue, 11 Jan 2005 01:19:43 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 792EB43D39; Tue, 11 Jan 2005 01:19:43 +0000 (GMT) (envelope-from iedowse@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j0B1Jh4L026221; Tue, 11 Jan 2005 01:19:43 GMT (envelope-from iedowse@repoman.freebsd.org) Received: (from iedowse@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j0B1Jh64026220; Tue, 11 Jan 2005 01:19:43 GMT (envelope-from iedowse) Message-Id: <200501110119.j0B1Jh64026220@repoman.freebsd.org> From: Ian Dowse Date: Tue, 11 Jan 2005 01:19:43 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_4 Subject: cvs commit: src/sys/dev/usb usb_mem.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 01:19:43 -0000 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