From owner-freebsd-questions@FreeBSD.ORG Fri Mar 12 11:57:22 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F388A16A4CE for ; Fri, 12 Mar 2004 11:57:21 -0800 (PST) Received: from smtp230.tiscali.dk (smtp230.tiscali.dk [62.79.79.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5014A43D39 for ; Fri, 12 Mar 2004 11:57:21 -0800 (PST) (envelope-from gman@tiscali.no) Received: from cpmail.dk.tiscali.com (mail.tiscali.dk [212.54.64.159]) by smtp230.tiscali.dk (8.12.9p1/8.12.9) with ESMTP id i2CJvGVD001791 for ; Fri, 12 Mar 2004 20:57:17 +0100 (CET) (envelope-from gman@tiscali.no) Received: from proxyplus.universe (213.234.74.206) by cpmail.dk.tiscali.com (6.7.018) id 3F796E9400035D67 for freebsd-questions@freebsd.org; Fri, 12 Mar 2004 20:57:16 +0100 Received: from snakes [192.168.0.62] by Proxy+; Fri, 12 Mar 2004 20:56:42 +0100 for Message-ID: <000701c4086c$15eb7860$3e00a8c0@snakes> From: "SnakeS" To: Date: Fri, 12 Mar 2004 20:56:18 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 Subject: Singlethreaded program on a SMP enabled machine and HZ=? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2004 19:57:22 -0000 Hi I have a Dual Pentium3 933Mhz machine with 768MB ram installed running FreeBSD 5.2.0 that I wish to run HLDS (Half.life dedicated server, I belive its singlethreaded but I really dont know..), now that Ive got everything set up I started to wonder if hlds actually would have any benefits of running on a SMP machine. as I can remember from using windows on the same machineware was that singlethreaded software never used more than one cpu, ie only utilizing 50% of theoretical processing power. does FreeBSD act the same way or does it have some clever ways of making software not built for MP use more than one cpu and draw the full capacity out of the box? one other ting, while setting up the game server, I often came across howto's and faq mailing lists mentioning HZ=1000 or similar would help boosting the fps of the game server up, while others says that for a singlethreaded cpu-hog like hlds would benefit more running with a HZ=20 or abouts would give more precius cpu time to the actual game server. if I recall right from the manual, HZ has something to do how often the BSD scheduler checks the running processes and distributed cpu time to them, right? if so, my sense of logic would say to me that the less intrerrupts the hlds have the more speed could I tweak out of the box, am I right? right now HZ is at the default value of 100, do I really need to mess around with it or can I just leave it as it is? maybee I should take half of theese questions to a valve/hl list/forum, but since its all about freebsd Im posting it here. Thanks in advance for all the replies. :) Geir Inge Aurvåg