From owner-cvs-all Wed Jun 30 23:47:10 1999 Delivered-To: cvs-all@freebsd.org Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (Postfix) with ESMTP id 28C7414C83; Wed, 30 Jun 1999 23:47:02 -0700 (PDT) (envelope-from green@unixhelp.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.9.2/8.8.7) with ESMTP id CAA68575; Thu, 1 Jul 1999 02:46:26 -0400 (EDT) Date: Thu, 1 Jul 1999 02:46:26 -0400 (EDT) From: "Brian F. Feldman" X-Sender: green@janus.syracuse.net To: Poul-Henning Kamp Cc: Julian Elischer , Garrett Wollman , Peter Wemm , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern init_main.c kern_fork.c kern_linker.c vfs_aio.c src/sys/sys proc.h In-Reply-To: <43774.930765873@critter.freebsd.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Wed, 30 Jun 1999, Poul-Henning Kamp wrote: > In message , "Bria > n F. Feldman" writes: > > >I thought about this a LOT, and it's not a great idea to hold a pointer to > >the proc... > > It's not really that different from doing it to a vnode... > > Mind you, I've been trying to find a way NOT to do it for vnodes > because I would like to be able to free them again. And I'm a > little bit concerned if the zone allocator never frees pages again > because that means that one mistake with a fork(2) and a lot of > RAM (not VM, actual RAM) is tied up until next reboot. That's a very good concern. I don't especially love that happening. > So if we have decided to make struct proc a stable storage kind of > thing, then holding pointers is perfectly ok (with the addition of > a serial number, p_pid wont do). It is the move to stable storage > that has me concerned. Yeah, a u_int64_t p_gencnt is my thought; but the proc-holding issue.. if it's NOT type-stable storage, then pfind() is the only way; isn't pfind() very fast though? It's just a hash and following a link of procs... > > -- > 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! > Brian Fundakowski Feldman _ __ ___ ____ ___ ___ ___ green@FreeBSD.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ \._ \ |) | http://www.FreeBSD.org/ _ |___/___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message