From owner-freebsd-performance@FreeBSD.ORG Mon Mar 12 20:06:07 2012 Return-Path: Delivered-To: freebsd-performance@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68BBD106566B; Mon, 12 Mar 2012 20:06:07 +0000 (UTC) (envelope-from fidaj@ukr.net) Received: from fsm1.ukr.net (fsm1.ukr.net [195.214.192.120]) by mx1.freebsd.org (Postfix) with ESMTP id 4227E8FC12; Mon, 12 Mar 2012 20:06:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=fsm; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=f34tZFo4oY4E9VttcncVSiJMOivSoAzKRc8ciMfigbA=; b=oMZPNg/b8XnEMAvxCp2/jg3OxV37DbxIFatBfFL+So4qK7/Kdvc9bcrsu/PbAtWCo4KraaVtLKqpvqhwxGlKcEjzNqNbmaec+X5Xl8AapTrfFx/27sCybpPPm9o5kQyvDSdaHtn5p1y7JxBQ05ZyBweWct9ueUNfAzdkI/7ON5g=; Received: from [178.137.138.140] (helo=nonamehost.) by fsm1.ukr.net with esmtpsa ID 1S7BVG-0001S5-UF ; Mon, 12 Mar 2012 22:05:59 +0200 Date: Mon, 12 Mar 2012 22:05:56 +0200 From: Ivan Klymenko To: Alexander Motin Message-ID: <20120312220556.53f27d63@nonamehost.> In-Reply-To: <4F5E54A9.5050301@FreeBSD.org> References: <4F5E4B57.1050605@FreeBSD.org> <4f5e4f82.41972a0a.0e49.2cfdSMTPIN_ADDED@mx.google.com> <4F5E54A9.5050301@FreeBSD.org> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-performance@FreeBSD.org, FreeBSD current Subject: Re: Improved Intel Turbo Boost status/control X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2012 20:06:07 -0000 =D0=92 Mon, 12 Mar 2012 21:55:21 +0200 Alexander Motin =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > On 03/12/12 21:33, Ivan Klymenko wrote: > > =D0=92 Mon, 12 Mar 2012 21:15:35 +0200 > > Alexander Motin =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > >> I'd like to note that recent r232793 change to cpufreq(4) in HEAD > >> opened simple access to the Intel Turbo Boost status/control. I've > >> found that at least two of my desktop systems (based Nehalem and > >> SandyBridge Core i7s) with enabled Intel Turbo Boost in BIOS it is > >> not use it by default, unless powerd is enabled. And before this > >> change it was difficult to detect/fix. > >> > >> ACPI reports extra performance level with frequency 1MHz above the > >> nominal to control Intel Turbo Boost operation. It is not a bug, > >> but feature: > >> dev.cpu.0.freq_levels: 2934/106000 2933/95000 2800/82000 ... > >> In this case value 2933 means 2.93GHz, but 2934 means 3.2-3.6GHz. > >> > >> After boot with default settings I see: > >> dev.cpu.0.freq: 2933 > >> , that means Turbo Boost is disabled. > >> > >> Enabling powerd or just adding to rc.conf > >> performance_cpu_freq=3D"HIGH" > >> enables Turbo Boost and adds extra 10-20% to the system > >> performance. > >> > >> Turbo Boost operation can be monitored in run-time via the PMC with > >> command that prints number or really executed cycles per CPU core: > >> pmcstat -s unhalted-core-cycles -w 1 > >> > > > > Thank you very much! > > performance_cpu_freq=3D"HIGH" > > and as this option must be combined with state of the processor C1 > > C2 C3? > > performance_cx_lowest=3D"XX" > > economy_cx_lowest=3D"XX" >=20 > The more CPU cores on package are sleeping and the deeper they are=20 > sleeping, the bigger will be boost for remaining active cores. > Without using deeper C-states boost is usually quite small (about > 100-200MHz for desktop chips). Enabling C-states increases it in few > times. >=20 I have a Core i5 c Turbo Boost technology (enabled in BIOS) After the following: sysctl dev.cpu.0.freq_levels dev.cpu.0.freq_levels: 2301/35000 2300/35000 2000/29079 1800/25766 1600/222= 65 1400/18904 1225/16541 1200/15996 1050/13996 1000/12907 875/11293 800/995= 6 700/8711 600/7467 500/6222 400/4978 300/3733 200/2489 100/1244 performance_cpu_freq=3D"HIGH" >> /etc/rc.conf /etc/rc.d/powerd restart sysctl dev.cpu.0.freq_levels dev.cpu.0.freq_levels: 2301/35000 2300/35000 2000/29079 1800/25766 1600/222= 65 1400/18904 1225/16541 1200/15996 1050/13996 1000/12907 875/11293 800/995= 6 700/8711 600/7467 500/6222 400/4978 300/3733 200/2489 100/1244 CPU frequency does not rise above 2300 Mhz What am I doing wrong?