From owner-freebsd-stable Thu Mar 11 7:29:59 1999 Delivered-To: freebsd-stable@freebsd.org Received: from mailhost.stack.nl (terra.stack.nl [131.155.140.128]) by hub.freebsd.org (Postfix) with ESMTP id 56A7E15058 for ; Thu, 11 Mar 1999 07:29:56 -0800 (PST) (envelope-from marcolz@stack.nl) Received: from toad.stack.nl (toad.stack.nl [131.155.140.135]) by mailhost.stack.nl (Postfix) with ESMTP id 5EAE3334F for ; Thu, 11 Mar 1999 16:29:33 +0100 (MET) Received: by toad.stack.nl (Postfix, from userid 333) id 116F39675; Thu, 11 Mar 1999 16:29:34 +0100 (CET) Date: Thu, 11 Mar 1999 16:29:34 +0100 From: Marc Olzheim To: freebsd-stable@freebsd.org Subject: 2.2.{6,7,8} freeze Message-ID: <19990311162934.A13991@stack.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i X-Operating-System: FreeBSD toad.stack.nl 2.2.8-STABLE FreeBSD 2.2.8-STABLE X-URL: http://www.stack.nl/~marcolz/ Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, This probably has been noted before, but I couldn't find anything about it, so... When running two processes,, each one trying to eat up as much memory as possible, the system deadlocks in the vm-routines. It seems as if the system needs some memory to kill the largest process in the table and it can't get it or something like that. Anyone knows if this has been fixed in 3.* ? The following prog does the job... ---------------------------------------------------------------------- #include #include #include int main(int argc, char *argv[]) { int n = 16 * 1024 * 1024; void *temp; int i; if (argc != 2) { fprintf(stderr, "Usage: %s \n", argv[0]); return(1); } for (i = atoi(argv[1]) - 1; i > 0; i--) fork(); while (n) { temp = calloc(n, 1); if (temp) n <<= 1; else n>>= 1; } sleep(1000); return(0); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message