From owner-freebsd-current Wed Mar 15 00:22:05 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id AAA18996 for current-outgoing; Wed, 15 Mar 1995 00:22:05 -0800 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id AAA18978 for ; Wed, 15 Mar 1995 00:21:40 -0800 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA23650; Wed, 15 Mar 1995 09:21:04 +0100 Received: by sax.sax.de (8.6.9/8.6.9-s1) with UUCP id JAA10750; Wed, 15 Mar 1995 09:21:03 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.11/8.6.9) id IAA02608; Wed, 15 Mar 1995 08:02:03 +0100 From: J Wunsch Message-Id: <199503150702.IAA02608@uriah.heep.sax.de> Subject: Re: "Text file busy" with program not running anymore? To: obrien@antares.aero.org (Mike O'Brien) Date: Wed, 15 Mar 1995 08:02:02 +0100 (MET) Cc: freebsd-current@FreeBSD.org (FreeBSD-current users) In-Reply-To: <95Mar14.174156pst.111108-1@aero.org> from "Mike O'Brien" at Mar 14, 95 05:41:20 pm Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 1389 Sender: current-owner@FreeBSD.org Precedence: bulk As Mike O'Brien wrote: > > David Greenman sez: > > Actually, now that I think about > > it, the thing to do is to shut off the VTEXT flag when the object reference > > count goes to 0...I thought we already did that...but we don't. This should > > completely solve the problem. I'll add it to my whiteboard. > > I realize I'm coming late to the table with this (I've been on vacation) but > I should point out that this persistant caching was a deliberate choice on > the part of the Berkeley design team. The notion was that it would > greatly speed up the execution of common, short-lived binaries if their > texts were gradually cached by the system. I don't think it's the point to not cache them anymore, it's only the point to cease marking them as ``text file busy'' when there's actually no longer an active reference for it. No other system that i know of does it that way. (Well, recent SysV's seem to even don't have VTEXT any longer, at least it's very easy to get a core dump there when developing new stuff and being not aware that someone is still running the program.) It's my understanding that the pages associated with the previously running image are being reclaimed immediately when someone starts the program again. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)