From owner-freebsd-current Tue May 28 23:15:46 2002 Delivered-To: freebsd-current@freebsd.org Received: from evilpete.dyndns.org (12-232-26-46.client.attbi.com [12.232.26.46]) by hub.freebsd.org (Postfix) with ESMTP id 3E0FB37B401 for ; Tue, 28 May 2002 23:15:41 -0700 (PDT) Received: from overcee.wemm.org ([10.0.0.3]) by evilpete.dyndns.org (8.11.6/8.11.6) with ESMTP id g4T6Fe162499 for ; Tue, 28 May 2002 23:15:40 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id 88CD6380A; Tue, 28 May 2002 23:15:40 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Terry Lambert Cc: Richard Wenninger , current@FreeBSD.ORG Subject: Re: UMA lock In-Reply-To: <3CF468F0.EDECFE43@mindspring.com> Date: Tue, 28 May 2002 23:15:40 -0700 From: Peter Wemm Message-Id: <20020529061540.88CD6380A@overcee.wemm.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert wrote: > Peter Wemm wrote: > > The bug is that things are calling things like malloc with M_WAITOK when > > waiting is explicitly not allowed. There are other functions that can > > tsleep as well that we have not added checks for yet, so this is likely > > just the tip of the iceberg. :-( > > Why is this a problem? M_WAITOK does not mean that it will wait > indefinitely, even though you'd think it would mean that, given > the name... > > I think _sleeping_ is a problem, but allocation with M_WAITOK > shouldn't be, given it's strange definition of "waiting". This > is one of those hacks that John Baldwin was talking about earlier... As you said, _sleeping_ is the problem. M_WAITOK means "you may sleep if you like". ie: it is a time bomb waiting for the right low memory condition which will then explode with a 100% authentic crash or lock up. Pretend it said M_SLEEPOK instead of M_WAITOK. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message