From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 15 21:01:01 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F2FD1065714 for ; Mon, 15 Aug 2011 21:01:01 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id A7EA68FC0A for ; Mon, 15 Aug 2011 21:01:00 +0000 (UTC) Received: by mail-fx0-f54.google.com with SMTP id 4so4957371fxe.13 for ; Mon, 15 Aug 2011 14:01:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=/acUp+JKA+1yCBNy7XMBkLI7K0p84f5W18qlYdcjwk0=; b=L744sdZb3RG6UukIJIKQxuD/T5WWuoy+Xfkdjc4ibq6M47Th796CFP4mIWJOTPKs3C r88e7JdfRKkCcveva5yqcJuOZL45GTcg9pna5I8sUyF6Hmz4ejcBLdHN3IRucJRbpAgx dDVzFXH4cB3Dky/kVvLxoDLpPKDqcNnLLBTfs= Received: by 10.223.85.145 with SMTP id o17mr6083477fal.16.1313440569491; Mon, 15 Aug 2011 13:36:09 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id q15sm5313080fah.8.2011.08.15.13.36.07 (version=SSLv3 cipher=OTHER); Mon, 15 Aug 2011 13:36:08 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E498326.2060308@FreeBSD.org> Date: Mon, 15 Aug 2011 23:35:50 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20110709 Thunderbird/5.0 MIME-Version: 1.0 To: Joe Schaefer References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: Clock stalls on Sabertooth 990FX X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 21:01:01 -0000 On 15.08.2011 22:18, Joe Schaefer wrote: > On Mon, Aug 15, 2011 at 9:31 AM, Joe Schaefer wrote: >> On Mon, Aug 15, 2011 at 8:32 AM, Andriy Gapon wrote: >>> on 13/08/2011 20:16 Joe Schaefer said the following: >>>> Brand new machine with a Phenom II X6 1100T and under chronic load >>>> the clock will stop running periodically until the machine eventually completely >>>> freezes. Note: during these stalls the kernel is still running, the >>>> machine is still >>>> mostly responsive, it's just that the clock is frozen in time. >>>> >>>> I've disabled Turbo mode in the bios and toyed with just about every >>>> other setting but nothing seems to resolve this problem. Based on the behavior >>>> of the machine (just making buildworld will eventually kill it, upping >>>> the -j flag >>>> just kills it faster), I'm guessing it has something to do with the >>>> Digi+ VRM features >>>> but again nothing I've tried modifying in the bios seems to help. >>>> >>>> I've tried both 8.2-RELEASE and FreeBSD 9 (head). Running head now with >>>> a dtrace enabled kernel. >>>> >>>> Suggestions? >>> >>> On head, start with checking what source is used for driving clocks: >>> sysctl kern.eventtimer >> >> % sysctl kern.eventtimer [master] >> kern.eventtimer.choice: HPET(450) HPET1(450) HPET2(450) LAPIC(400) >> i8254(100) RTC(0) >> kern.eventtimer.et.LAPIC.flags: 15 >> kern.eventtimer.et.LAPIC.frequency: 0 >> kern.eventtimer.et.LAPIC.quality: 400 >> kern.eventtimer.et.HPET.flags: 3 >> kern.eventtimer.et.HPET.frequency: 14318180 >> kern.eventtimer.et.HPET.quality: 450 >> kern.eventtimer.et.HPET1.flags: 3 >> kern.eventtimer.et.HPET1.frequency: 14318180 >> kern.eventtimer.et.HPET1.quality: 450 >> kern.eventtimer.et.HPET2.flags: 3 >> kern.eventtimer.et.HPET2.frequency: 14318180 >> kern.eventtimer.et.HPET2.quality: 450 >> kern.eventtimer.et.i8254.flags: 1 >> kern.eventtimer.et.i8254.frequency: 1193182 >> kern.eventtimer.et.i8254.quality: 100 >> kern.eventtimer.et.RTC.flags: 17 >> kern.eventtimer.et.RTC.frequency: 32768 >> kern.eventtimer.et.RTC.quality: 0 >> kern.eventtimer.periodic: 0 >> kern.eventtimer.timer: HPET > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Changing this to "i8254" seems to have resolved the stalls. > I'm running buildworld -j12 without issue. More than willing > to test out a patch or two against head if anyone's still > interested, otherwise I've thrown the change into loader.conf > and will move along quietly. 8.2-RELEASE you've mentioned doesn't have event timers subsystem and HPET timer driver. That makes me think it is strange at least. Can you try also LAPIC timer and do alike experiments with kern.timeocunter? Also, please check whether kern.timecounter.tc.X.counter value changes for the selected timercounter and whether you are receiving timer interrupts in `vmstat -i` -- Alexander Motin