From owner-freebsd-current@FreeBSD.ORG Sun Sep 12 10:00:47 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 721521065673; Sun, 12 Sep 2010 10:00:47 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id C20D98FC1A; Sun, 12 Sep 2010 10:00:46 +0000 (UTC) Received: by bwz20 with SMTP id 20so379403bwz.13 for ; Sun, 12 Sep 2010 03:00:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=5ZMreQcB9ldDHeQ5lGj9dkgR/EkeoT4sGL/UO95rnkw=; b=RIaGKvbCeee1JICmAX7K1F5zeOep5W7UmMDApmiksE1URM1UxjphttDeG7iEyBYG4/ ULNU96cBWCdx0GeMnxpC4bYhuVe6eizR4gnME6wYBRqoeYaFXX8tXoBHxnd76I90ErS9 A1IU673eImN/ssNiFnc4ZLbWU34tu8gb3Kvaw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=aGphubmh6/yJeNSzRuXOWPkt9iWL+8LnRap6PDlHEgFGKaKNLV54l4e53VB64DEHau 8MxkYXvyapW7ivyf/bFMou851xhAmIVFzSvP9X00QwsgQkIOfyOnlGE+OqHu2SG9+no8 asoKP7ni6rheUidT9/5B5alqkMmvYT2LJolSs= Received: by 10.204.47.99 with SMTP id m35mr2141295bkf.106.1284285645235; Sun, 12 Sep 2010 03:00:45 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 24sm3577138bkr.7.2010.09.12.03.00.39 (version=SSLv3 cipher=RC4-MD5); Sun, 12 Sep 2010 03:00:42 -0700 (PDT) Sender: Alexander Motin Message-ID: <4C8CA4B6.6090501@FreeBSD.org> Date: Sun, 12 Sep 2010 13:00:22 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Norikatsu Shigemura , FreeBSD-Current References: <4C8C9D81.9090401@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: CPU C-state storange on Panasonic TOUGH BOOK CF-R9 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Sep 2010 10:00:47 -0000 Norikatsu Shigemura wrote: > On Sun, 12 Sep 2010 12:29:37 +0300 > Alexander Motin wrote: |>> hw.acpi.cpu.cx_lowest has default in C1. Have you tried to rise it via >> sysctl? > > Oops, I forgot usage of cx_lowest. > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > # sysctl hw.acpi.cpu.cx_lowest=C2 > hw.acpi.cpu.cx_lowest: C1 -> C2 > # sysctl -a | grep cx > hw.acpi.cpu.cx_lowest: C2 > dev.cpu.0.cx_supported: C1/3 C2/245 > dev.cpu.0.cx_lowest: C2 > dev.cpu.0.cx_usage: 19.34% 80.65% last 49us > dev.cpu.1.cx_supported: C1/3 C2/245 > dev.cpu.1.cx_lowest: C2 > dev.cpu.1.cx_usage: 15.28% 84.71% last 922us > dev.cpu.2.cx_supported: C1/3 C2/245 > dev.cpu.2.cx_lowest: C2 > dev.cpu.2.cx_usage: 77.90% 22.09% last 6034us > dev.cpu.3.cx_supported: C1/3 C2/245 > dev.cpu.3.cx_lowest: C2 > dev.cpu.3.cx_usage: 80.28% 19.71% last 398us > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - `sysctl -a` is a bad tool to estimate C-states usage. It causes a lot of context switches, making data dirty. To get more precise data, try: sysctl hw.acpi.cpu.cx_lowest=C2 && sleep 10 && sysctl dev.cpu.0.cx_usage dev.cpu.1.cx_usage dev.cpu.2.cx_usage dev.cpu.3.cx_usage -- Alexander Motin