From owner-freebsd-stable@FreeBSD.ORG Mon Apr 25 23:03:04 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00A76106566B for ; Mon, 25 Apr 2011 23:03:04 +0000 (UTC) (envelope-from freebsd@chillt.de) Received: from dd16434.kasserver.com (dd16434.kasserver.com [85.13.137.111]) by mx1.freebsd.org (Postfix) with ESMTP id 8BCE18FC08 for ; Mon, 25 Apr 2011 23:03:03 +0000 (UTC) Received: from taiko.lan (ppp-197-43.21-151.libero.it [151.21.43.197]) by dd16434.kasserver.com (Postfix) with ESMTPSA id 600B4188606E; Tue, 26 Apr 2011 01:03:01 +0200 (CEST) Message-ID: <4DB5FD74.6060601@chillt.de> Date: Tue, 26 Apr 2011 01:02:12 +0200 From: Bartosz Fabianowski User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110309 Thunderbird/3.1.9 MIME-Version: 1.0 To: Jeremy Chadwick References: <4DA596D3.1090803@chillt.de> <4DB44DA3.5060509@chillt.de> <4DB4589B.2020909@ksu.ru> <4DB45D6C.20203@chillt.de> <20110424182456.9DD03589@server.theusgroup.com> <4DB46ED4.2010500@chillt.de> <20110425004818.GA22579@icarus.home.lan> In-Reply-To: <20110425004818.GA22579@icarus.home.lan> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-stable@freebsd.org, John Subject: Re: System extremely slow under light load X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2011 23:03:04 -0000 > If you boot into another operating system such as Linux or Windows, do > you see the same overall behaviour? Linux might be easier and might > have some built-in way to get at CPU temperatures (via /proc?). I finally found a working USB Linux image and have run some tests: Linux power management is quite different from FreeBSD. It clocks all cores at 933 MHz by default. When I start exercising the CPU, only the cores actually working hard get clocked up all the way to 1.7 GHz. This seems like a good idea but is not possible on FreeBSD right now as the only frequency sysctl is dev.cpu.0.freq. With the CPU idling at 933 MHz, the temperature is about 68°C. I am running FreeBSD with powerd -M 933 right now and the CPU is idling at 76°C while being clocked down to about 200 MHz most of the time. So Linux does something better here and manages to shave off about 10°C. As recommended by Kevin, I tried running md5 on a large chunk of data. I chose a Linux ISO file instead of /dev/random output to have reproducible input. Under FreeBSD, the machine currently is not sluggish and an md5 run completes in 5.7 seconds. I will retry the md5 experiment when the box becomes sluggish and will see whether I can detect TCC kicking in. Under Linux, the same md5 run took 12.6 seconds. This is surprising on the one hand as Linux clocked up all the way to 1.7 GHz while under FreeBSD, I was limiting the CPU to 1.199 GHz. On the other hand, Linux was running from a USB key while FreeBSD is properly installed. I tried running multiple copies of md5 in parallel to exercise multiple cores to the maximum under Linux. This actually made the temperature climb very quickly up to 95°-98°C. At 95°C, the fan audibly switched into a higher gear. I now remember that I have heard this under FreeBSD before as well. The fan seems to be controlled by the BIOS after all so when the CPU reaches 95°C, the BIOS turns up the fan, irrespective of the OS I am running. The great difference between FreeBSD and Linux was that I did not get any of the sluggishness and non-interactive response. Even under high load with a CPU temperature of 95°C and the fan in high gear, KDE was responsive and usable. I did have a few system stalls but according to the console, those were due to problems with reading from the USB key. There seemed to be no sudden breakdown of interactive performance even under load and thermal stress. So something is off under FreeBSD... - Bartosz