From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 4 14:52:51 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DACF106566B for ; Fri, 4 Dec 2009 14:52:51 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 2BD2B8FC0A for ; Fri, 4 Dec 2009 14:52:51 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1NGZWb-0004JT-Ld for freebsd-hackers@freebsd.org; Fri, 04 Dec 2009 15:52:49 +0100 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Dec 2009 15:52:49 +0100 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Dec 2009 15:52:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Fri, 04 Dec 2009 15:52:39 +0100 Lines: 30 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.23 (X11/20090928) Sender: news Subject: Request for information - timers, hz, interrupts 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: Fri, 04 Dec 2009 14:52:51 -0000 For a long time, at least in the 6-stable timeframe, I was used to seeing timer interrupts going at the frequency of 2*HZ, e.g. this is from 6.4-RELEASE: kern.clockrate: { hz = 250, tick = 4000, profhz = 166, stathz = 33 } debug.psm.hz: 20 cpu0: timer 6789885563 499 cpu2: timer 6789885538 499 cpu1: timer 6789885538 499 cpu3: timer 6789885537 499 Then sometime in 7.x this changed to 4*HZ, which continues in 8.x, e.g. from 7.2-RELEASE: kern.clockrate: { hz = 250, tick = 4000, profhz = 1000, stathz = 142 } kern.hz: 250 cpu0: timer 1368329715 988 cpu1: timer 1368324640 988 cpu2: timer 1367642854 988 cpu3: timer 1367642874 988 I'm not very worried about it (though maybe laptop users might be because of potential power drainage) but would like to know the explanation behind it. Presumably it has something to do with profhz but what and why? There isn't an obvious correlation between profhz frequency in 6.x and HZ and in 7.x. and HZ.