From owner-freebsd-arch Wed May 16 5:54:59 2001 Delivered-To: freebsd-arch@freebsd.org Received: from scaup.mail.pas.earthlink.net (scaup.mail.pas.earthlink.net [207.217.121.49]) by hub.freebsd.org (Postfix) with ESMTP id BCAA537B422; Wed, 16 May 2001 05:54:54 -0700 (PDT) (envelope-from dleimbac@earthlink.net) Received: from 1Cust72.tnt1.starkville.ms.da.uu.net (1Cust72.tnt1.starkville.ms.da.uu.net [63.30.107.72]) by scaup.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id FAA14005; Wed, 16 May 2001 05:54:53 -0700 (PDT) Message-Id: <200105161254.FAA14005@scaup.mail.pas.earthlink.net> Date: Wed, 16 May 2001 07:57:19 CDT From: dave To: questions@freebsd.org, arch@freebsd.org Subject: python fork call raised my load over 400! Reply-To: dleimbac@earthlink.net X-Mailer: Spruce 0.6.5 for X11 w/smtpio 0.7.9 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If you have a block of free time today check this out! I keyed this in interactively with Python ----SNIP-------- import os while 1: os.fork() -----SNIP------- This user run program brought my system to a load of 419 with the system using 94% of the resources and 500 user processes on my AMD Duron 800 box with 256MB RAM... I don't know that the processor/RAM is relevant but I could not fork anymore! I started manually killing the processes with ctrl-c and ctrl-d until I could log in as root and killall -9 python. It was not good. The system did NOT crash and all my resources came back after all the python processes were killed. I have a friend who tested the same 3 lines of python code right now on his linux box. He ended up rebooting but he may not have tried to manually kill the processes to get back. My ultimate question is ... should I be comparing FreeBSD to Linux? Does it really matter if Linux is performing better or worse than FreeBSD? Still a user process probably shouldn't be able to hose the whole system IMHO. Dave To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message