From owner-cvs-src@FreeBSD.ORG Wed Aug 25 09:31:30 2004 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 857AC16A4CE; Wed, 25 Aug 2004 09:31:30 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64B0F43D55; Wed, 25 Aug 2004 09:31:30 +0000 (GMT) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i7P9VU05060515; Wed, 25 Aug 2004 09:31:30 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from pjd@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i7P9VUls060514; Wed, 25 Aug 2004 09:31:30 GMT (envelope-from pjd) Message-Id: <200408250931.i7P9VUls060514@repoman.freebsd.org> From: Pawel Jakub Dawidek Date: Wed, 25 Aug 2004 09:31:30 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netinet ip_dummynet.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: Wed, 25 Aug 2004 09:31:30 -0000 pjd 2004-08-25 09:31:30 UTC FreeBSD src repository Modified files: sys/netinet ip_dummynet.c Log: Allocate memory when dumping pipes with M_WAITOK flag. On a system with huge number of pipes, M_NOWAIT failes almost always, because of memory fragmentation. My fix is different than the patch proposed by Pawel Malachowski, because in FreeBSD 5.x we cannot sleep while holding dummynet mutex (in 4.x there is no such lock). My fix is also ugly, but there is no easy way to prepare nice and clean fix. PR: kern/46557 Submitted by: Eugene Grosbein Reviewed by: mlaier Revision Changes Path 1.84 +33 -9 src/sys/netinet/ip_dummynet.c