From owner-freebsd-current Wed Apr 14 17:43:13 1999 Delivered-To: freebsd-current@freebsd.org Received: from lamb.sas.com (lamb.sas.com [192.35.83.8]) by hub.freebsd.org (Postfix) with ESMTP id B672B14DDC for ; Wed, 14 Apr 1999 17:43:07 -0700 (PDT) (envelope-from brdean@unx.sas.com) Received: from mozart (mozart.unx.sas.com [192.58.184.8]) by lamb.sas.com (8.9.1/8.9.1) with SMTP id UAA09200; Wed, 14 Apr 1999 20:40:40 -0400 (EDT) Received: from dean.pc.sas.com by mozart (5.65c/SAS/Domains/5-6-90) id AA20112; Wed, 14 Apr 1999 20:40:39 -0400 Received: (from brdean@localhost) by dean.pc.sas.com (8.9.3/8.9.1) id UAA30248; Wed, 14 Apr 1999 20:40:38 -0400 (EDT) (envelope-from brdean) From: Brian Dean Message-Id: <199904150040.UAA30248@dean.pc.sas.com> Subject: Re: swap-related problems In-Reply-To: <199904142340.TAA96857@misha.cisco.com> from Mikhail Teterin at "Apr 14, 1999 7:40: 7 pm" To: mi@aldan.algebra.com Date: Wed, 14 Apr 1999 20:40:38 -0400 (EDT) Cc: current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL43 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I do not see how they can guarantee the usability of the returned > memory with the current kernel. There apparently is no way of > knowing at malloc time if the memory can be used. Worse then that, > it may be possible to use it at malloc time, but unless your program > runs and touches every page, the memory may not be available later. Check the man page (and the source). It looks as if "export MALLOC_OPTIONS=Z" will cause malloc to touch every page and zero it out. This may be in part what you are wanting. Also, you can compile in malloc_options = "Z" to acheive the same affect without having to always export the environment variable. Of course, when you do this, your process will (might) still be killed immediately or at some point in the future, which I think is what you are trying to avoid :( -Brian -- Brian Dean brdean@unx.sas.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message