From owner-freebsd-questions@FreeBSD.ORG Thu Nov 24 08:17:39 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E68C106566C for ; Thu, 24 Nov 2011 08:17:39 +0000 (UTC) (envelope-from don_oles@able.com.ua) Received: from dell.able.com.ua (dell.able.com.ua [89.162.185.234]) by mx1.freebsd.org (Postfix) with ESMTP id F2E678FC13 for ; Thu, 24 Nov 2011 08:17:38 +0000 (UTC) Received: from [10.0.0.2] (inquiring.reunion.volia.net [93.75.195.63]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: don_oles) by dell.able.com.ua (Postfix) with ESMTPSA id A27CC11450 for ; Thu, 24 Nov 2011 10:01:01 +0200 (EET) X-DomainKeys: Sendmail DomainKeys Filter v1.0.2 dell.able.com.ua A27CC11450 DomainKey-Signature: a=rsa-sha1; s=default; d=able.com.ua; c=nofws; q=dns; h=x-virus-status:x-virus-scanned:message-id:date:from: user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=mXHW7W9iEXNCIrQk+BS38skjwd7KhLI7KdQyIYfygv6xAqfn55hHHn3hXk3LaOlEi WlhvmNbIS5VMp6QQWZMkA== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.96 at dell.able.com.ua Message-ID: <4ECDF9B4.6080409@able.com.ua> Date: Thu, 24 Nov 2011 10:00:52 +0200 From: Oles Hnatkevych User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Subject: 8.2 broken CPU speed detection on IBM server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Nov 2011 08:17:39 -0000 Hello! We've got very strange problem with (at least) two identical IBM Servers System Information Manufacturer: IBM Product Name: IBM System x3650 -[79792AG]- FreeBSD 8.2-RELEASE is installed. Depending on the phase of the moon when kernel boots with a change close to 70% the CPU speed is wrongly detected, affecting timing operation for the system. This looks this way: FreeBSD 8.2-RELEASE #0: Thu Sep 22 13:43:28 EEST 2011 root@newgate.metro.kiev.ua:/usr/obj/usr/src/sys/NEWGATE i386 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(R) CPU 5110 @ 1.60GHz (10748.77-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6fb Family = 6 Model = f Stepping = 11 Features=0xbfebfbff Features2=0x4e33d AMD Features=0x20100000 AMD Features2=0x1 TSC: P-state invariant 10.748 Ghz!!! As a result we see 296 interrupts per seconds on CPU (six times less) # vmstat -i interrupt total rate irq15: ata1 35 0 irq17: aac0 525059 22 irq23: uhci0 uhci2+ 37899 1 cpu0: timer 7063047 296 irq256: bce0 5275133 221 irq257: bce1 43824849 1842 cpu3: timer 7063046 296 cpu2: timer 7063043 296 cpu1: timer 7063045 296 Total 77915156 3275 After that ping, top and other applications depending on timer slow down six times (i.e. pings once in 6 seconds). And to round this up: # time sleep 1 real 0m6.737s user 0m0.000s sys 0m0.000s Playing with BIOS settings did not help at all. Even pressing 'restore defaults'. Updating BIOS did not help either. On the live system kernel has been recompiled, but that does not matter since on another test box the generic kernel is affected by the same problem. What to do???? Try 7-CURRENT? Install Linux? ;) -- ---------- Oles Hnatkevych Skype: don_oles http://gnut.able.com.ua/