From owner-freebsd-current Sun Aug 22 1: 2:13 1999 Delivered-To: freebsd-current@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id 3ABB514F99 for ; Sun, 22 Aug 1999 01:02:10 -0700 (PDT) (envelope-from julian@whistle.com) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.9.1a/8.9.1) with SMTP id AAA63126; Sun, 22 Aug 1999 00:59:06 -0700 (PDT) Date: Sun, 22 Aug 1999 01:00:37 -0700 (PDT) From: Julian Elischer To: Poul-Henning Kamp Cc: Bruce Evans , jb@cimlogic.com.au, atrens@nortelnetworks.com, current@FreeBSD.ORG, luigi@labinfo.iet.unipi.it Subject: Re: problem with vnconfig -s labels ... In-Reply-To: <11263.935217470@critter.freebsd.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 21 Aug 1999, Poul-Henning Kamp wrote: > In message <199908210630.QAA05678@godzilla.zeta.org.au>, Bruce Evans writes: > >>Hmmm, I know this is your code, but are you sure? 8-). My understanding of > >>dkmodslice() and friends is that they manipulate dev_t entries, but don't > >>actually initialise them. Since the subr_diskslice code takes a dev_t > > > >dkmodslice() once just manipulated bits in dev_t scalars. Now that dev_t > >is a pointer, dkmodslice() has to create something for the pointer to > >point to. That something needs to be fully initialised and not created > >more than once. The initialisation is apparently incomplete. Multiple > >creation is avoided by searching the list of previously created entries. > > > >Now I understand why my memory is filling up with unused dev_t > >entries :-). subr_diskslice churns through a not insignificant part > >of the per-drive minor number space (32 slices * 8 partitions * {raw, > >buffered}), using dkmodslice to create new dev_t's. > > yes, this is the remaining sticky issue, and the only cure I know for > this and for the DEVFS issue is to relayer the slice/label processing > out of the device driver entirely. This is now almost possible to do. Ehem... it was all working before it was ripped out... that's EXACTLY what SLICE was. > > -- > Poul-Henning Kamp FreeBSD coreteam member > phk@FreeBSD.ORG "Real hackers run -current on their laptop." > FreeBSD -- It will take a long time before progress goes too far! > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message