From owner-freebsd-hackers Thu Aug 12 22:41: 5 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.rdc1.sfba.home.com (ha1.rdc1.sfba.home.com [24.0.0.66]) by hub.freebsd.org (Postfix) with ESMTP id 53C9E14D79 for ; Thu, 12 Aug 1999 22:41:00 -0700 (PDT) (envelope-from adsharma@c62443-a.frmt1.sfba.home.com) Received: from c62443-a.frmt1.sfba.home.com ([24.0.69.165]) by mail.rdc1.sfba.home.com (InterMail v4.01.01.00 201-229-111) with ESMTP id <19990813054113.OYZB8807.mail.rdc1.sfba.home.com@c62443-a.frmt1.sfba.home.com>; Thu, 12 Aug 1999 22:41:13 -0700 Received: (from adsharma@localhost) by c62443-a.frmt1.sfba.home.com (8.9.3/8.9.3) id AAA17214; Fri, 13 Aug 1999 00:41:07 -0700 Date: Fri, 13 Aug 1999 00:41:07 -0700 From: Arun Sharma To: Mark Newton Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: mmap bug Message-ID: <19990813004107.A17205@home.com> References: <19990812235208.A17058@home.com> <199908130534.PAA25953@gizmo.internode.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <199908130534.PAA25953@gizmo.internode.com.au>; from Mark Newton on Fri, Aug 13, 1999 at 03:04:43PM +0930 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Aug 13, 1999 at 03:04:43PM +0930, Mark Newton wrote: > Arun Sharma wrote: > > > The second alternative - to mark system daemons as special > > sounds much more attractive. > > Ok, now define the difference between "system daemons" and any other > daemon (or, for that matter, any other process). That's easy. $ ps aux | head USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 23924 5.0 30.2 41312 38716 ?? S Sat05PM 191:41.92 /usr/X11R6/bin/ root 0 0.0 0.0 0 0 ?? DLs 31Jul99 0:02.30 (swapper) root 1 0.0 0.2 504 200 ?? ILs 31Jul99 0:00.05 /sbin/init -- root 2 0.0 0.0 0 0 ?? DL 31Jul99 0:03.18 (pagedaemon) root 3 0.0 0.0 0 0 ?? DL 31Jul99 0:00.00 (vmdaemon) root 4 0.0 0.0 0 0 ?? DL 31Jul99 0:03.55 (bufdaemon) root 5 0.0 0.0 0 0 ?? DL 31Jul99 12:06.17 (syncer) The daemons which are involved in freeing up pages during low memory conditions qualify as system daemons. Making sure that these daemons don't block avoids the deadlock. -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message