From owner-freebsd-current Sun May 24 13:04:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA04021 for freebsd-current-outgoing; Sun, 24 May 1998 13:04:13 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA03919; Sun, 24 May 1998 13:03:55 -0700 (PDT) (envelope-from toor@dyson.iquest.net) Received: (from root@localhost) by dyson.iquest.net (8.8.8/8.8.8) id PAA02028; Sun, 24 May 1998 15:03:12 -0500 (EST) (envelope-from toor) Message-Id: <199805242003.PAA02028@dyson.iquest.net> Subject: Re: cvs commit: src/sys/nfs nfs.h nfs_node.c nfs_nqlease.c nfs_subs.c nfs_vfsops.c In-Reply-To: <199805241805.WAA00993@xyzzy.machaon.ru> from Dmitry Khrustalev at "May 24, 98 10:05:50 pm" To: dima@xyzzy.machaon.ru (Dmitry Khrustalev) Date: Sun, 24 May 1998 15:03:12 -0500 (EST) Cc: peter@FreeBSD.ORG, current@FreeBSD.ORG, dima@bog.msu.su From: "John S. Dyson" Reply-To: dyson@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dmitry Khrustalev said: > I'm not sure this is a good idea. Memory allocated from zone is never returned > to the system. There could be periods of high NFS activity and periods of no > NFS activity at all when this allocation of wired kernel memory would be > wasted. > The malloc pool only grows (in the case of sub-page size allocations) also. The difference is that the zone pool is managed per data item type, while the malloc pool is managed per size. There IS a tradeoff, but I have found that the lossage of using zone vs. malloc is small in most cases. One advantage of zone is that the allocation is very very fast, even with stats gathering. Additionally, there is less internal fragmentation. -- John | Never try to teach a pig to sing, dyson@freebsd.org | it just makes you look stupid, jdyson@nc.com | and it irritates the pig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message