From owner-freebsd-arch Mon Jan 22 0:27:29 2001 Delivered-To: freebsd-arch@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 89DCA37B698 for ; Mon, 22 Jan 2001 00:27:10 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id TAA19786; Mon, 22 Jan 2001 19:27:01 +1100 Date: Mon, 22 Jan 2001 19:26:55 +1100 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Dag-Erling Smorgrav Cc: arch@FreeBSD.ORG Subject: Re: Second zone allocator patch In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > http://people.freebsd.org/~des/software/vm_zone-20010122.diff > > This replaces the simplelock in vm_zone with a mutex, and adds a > subsystem mutex that must be held when manipulating zlist (which is > now an SLIST). The simplelock was a spinlock, so changing it to a lock that can sleep changes the semantics. This seems to be a bug in the ZONE_INTERRUPT case -- note how the ZONE_INTERRUPT case of _zget() avoids locking stuff while the !ZONE_INTERRUPT case uses it. > - add a mail reader (accessible through the sysctl interface). Hehe. sysctl_vm_zone() reminds me too much of Linux procfs where the kernel wastes a lot of time formatting strings. It doesn't even provide any features that aren't implemented in userland like it did originally, since dillon implemented vmstat -z (except vmstat -z leaves out some details). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message