From owner-freebsd-current@FreeBSD.ORG Sun Apr 20 19:27:27 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB3DA37B401 for ; Sun, 20 Apr 2003 19:27:27 -0700 (PDT) Received: from wabakimi.chat.carleton.ca (wabakimi.chat.carleton.ca [134.117.1.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id D645243FBF for ; Sun, 20 Apr 2003 19:27:26 -0700 (PDT) (envelope-from creyenga@connectmail.carleton.ca) Received: from fireball ([134.117.93.187])h3L2RPW8010834 for ; Sun, 20 Apr 2003 22:27:25 -0400 (EDT) Message-ID: <000501c307ad$86897d80$0200000a@fireball> From: "Craig Reyenga" To: Date: Sun, 20 Apr 2003 22:27:05 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Subject: Hang after running out of memory X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2003 02:27:28 -0000 I have been following the thread here on current@ about problems occuring when running out of memory, so I wrote a C++ program that simply mallocs about 144M of memory. My system has 256MB+491MB(swap). I can run the system out of memory just fine by running multiple copies of the program, and the kernel does kill one if I run too many, however shortly after, when I go to killall the programs the system hangs, (although pings, etc manage to survive for a few mintues longer) and I have no choice but to press the reset button. While it is hung, I _can_ press ^T and it shows the load, which increases by 1 about every 45 seconds: load: 11.58 cmd: killall 20125 [running] 0.00u 0.00s 11% 292k load: 12.27 cmd: killall 20125 [running] 0.00u 0.00s 12% 292k Also, the console is just as unusable as any other terminal. I'm not sure what is going on, but this is reproducible, and I can post more info upon request. -Craig