From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 4 07:39:06 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F10F16A4B3 for ; Sat, 4 Oct 2003 07:39:06 -0700 (PDT) Received: from artax.karlin.mff.cuni.cz (artax.karlin.mff.cuni.cz [195.113.31.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7135A43FCB for ; Sat, 4 Oct 2003 07:39:05 -0700 (PDT) (envelope-from mikulas@artax.karlin.mff.cuni.cz) Received: by artax.karlin.mff.cuni.cz (Postfix, from userid 17421) id 21F653FB1; Sat, 4 Oct 2003 16:39:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by artax.karlin.mff.cuni.cz (Postfix) with ESMTP id 202B12FBD9 for ; Sat, 4 Oct 2003 16:39:03 +0200 (CEST) Date: Sat, 4 Oct 2003 16:39:03 +0200 (CEST) From: Mikulas Patocka To: freebsd-hackers@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Hyperthreading slowdown X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Oct 2003 14:39:06 -0000 Hi I installed FreeBSD 4.9RC1 on P4 3GHz with hyperthreading and I see drastic slowdown when kernel with hyperthreading is booted. For example program compilation took this time: hyperthreading kernel, make -j 1 --- 1:09 hyperthreading kernel, make -j 2 --- 0:42 singlethreading kernel, make -j 1 --- 0:45 singlethreading kernel, make -j 2 --- 0:41 Compilation does very few system calls so when I compile with only one process (-j 1), it should be as fast as with singlethreading kernel. Do you have any idea why is it so slow? Mikulas