From owner-freebsd-current@FreeBSD.ORG Mon Aug 23 17:00:18 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94B8810656A3; Mon, 23 Aug 2010 17:00:18 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0572F8FC20; Mon, 23 Aug 2010 17:00:17 +0000 (UTC) Received: by wyj26 with SMTP id 26so8292551wyj.13 for ; Mon, 23 Aug 2010 10:00:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to :in-reply-to:references:date:message-id:subject:from:to:cc :content-type; bh=BA89BhNNAdy9X8RW0g3ZTDjAcj0QrileDiF7puB1Lkc=; b=sPI66XXoR0EGZq7aTue82alSo9HPZsIORrZLdHkntMOCA1PFYoPaEIDJtGou4ebkxc bzfFjHAFMCP87PPI1YYfqHQt2gjDMnEaGoJGUKq/nsVDGdXJGfAE6J3mxT4esnCmlODZ IKC+4kiGi5k6RxDzKE4/MCFroX6P0Xr53UAus= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=TjKMNTMr8L5F8UHgGaLsf6cPYKfriynVFJaJ8WEctbbqsx+qu5dkurBnhj5C5KmkLY JL9TGWp+HmDeJWWn9win6WuC4ws1nQafWrFHnm/6/3rzfi0hJwhKwsNTE6NtGfJFeqJN 3sgkD0FnS+SZ5OFS05cP6waWvH3u6eYgwOKZA= MIME-Version: 1.0 Received: by 10.216.90.148 with SMTP id e20mr4850072wef.8.1282582816911; Mon, 23 Aug 2010 10:00:16 -0700 (PDT) Received: by 10.216.183.212 with HTTP; Mon, 23 Aug 2010 10:00:16 -0700 (PDT) In-Reply-To: <201008230837.22200.jhb@freebsd.org> References: <4C6FF0A9.9020809@icyb.net.ua> <201008230837.22200.jhb@freebsd.org> Date: Mon, 23 Aug 2010 17:00:16 +0000 Message-ID: From: "b. f." To: John Baldwin Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@freebsd.org, Andriy Gapon Subject: Re: Latest intr problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2010 17:00:18 -0000 On 8/23/10, John Baldwin wrote: > On Saturday, August 21, 2010 11:28:41 am Andriy Gapon wrote: >> on 21/08/2010 16:04 b. f. said the following: >> > Andriy Gapon wrote: >> >> on 21/08/2010 12:35 Andriy Gapon said the following: >> >>> I feel like you might be having a problem with clocks... >> >> FWIW, I am reading this document http://edc.intel.com/Link.aspx?id=1484 >> >> and I see this sentence: "All of the clocks in the processor core are >> >> stopped in the C3 state". >> >> >> >> I see that you have C3 state enabled and it's regularly entered: >> >> dev.cpu.0.cx_usage: 0.00% 5.51% 94.48% last 305us >> > >> > I don't think this accounts for all of his problems, unless his >> > machine has an unusual configuration. >> >> Well, let's try to not muddy the waters prematurely. > > It could easily account for it. If the lapic is going to sleep in C3, then > you are actually missing statclock interrupts and likely screwing up the > accounting (idle threads wouldn't accumulate "time" correctly for example). > Even though his system really isn't spending a lot of time executing > interrupts, the cp_time[] values would be skewed and wrong. Right, I can easily see how it is _a_ problem. I remembered that it was the reason Alexander gave for reviving the use of the rtc and the i8254 as eventtimers/timecounters, and it's partly why I suggested switching clock sources earlier. My point in my reply to Andriy was that Doug had reported similar problems when the hpet was the sole eventtimer/timecounter, and also when the i8254 was the only one, which suggested that there were other problems, too. But then Doug also assured me that he was satisfied that usb wasn't the source of the problem, where now he and Andriy seem to think it plays a primary role, so I give up. I only hope that new interrupt-handling that you are working on makes the system less susceptible to these kinds of problems. b.