From owner-freebsd-stable@FreeBSD.ORG Fri Dec 2 14:04:47 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7050E16A41F for ; Fri, 2 Dec 2005 14:04:47 +0000 (GMT) (envelope-from marco.calviani@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBBBA43D49 for ; Fri, 2 Dec 2005 14:04:46 +0000 (GMT) (envelope-from marco.calviani@gmail.com) Received: by wproxy.gmail.com with SMTP id i2so22334wra for ; Fri, 02 Dec 2005 06:04:46 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=om6D6I/ZOfrjIClwFyB4NPAJXUGw3poGP755VmRrLvCdutd7yFr2Ey2JwiZj1WIVxnTvP8NgBbQk50VyuU1JTuXu6TmVmipysM5yWvcgd+b0voPzGyJPbiIJEjYWTkZ1tlEn/76N9/Ck33+zjIN+JAcBJyc7mXEO8/SWHVQmjl4= Received: by 10.65.123.16 with SMTP id a16mr1479054qbn; Fri, 02 Dec 2005 06:04:45 -0800 (PST) Received: by 10.65.243.16 with HTTP; Fri, 2 Dec 2005 06:04:45 -0800 (PST) Message-ID: Date: Fri, 2 Dec 2005 15:04:45 +0100 From: Marco Calviani To: freebsd-acpi@freebsd.org, freebsd-stable@freebsd.org, freebsd-questions@freebsd.org In-Reply-To: <20051202134913.GD24254@poupinou.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20051201141724.GE17066@poupinou.org> <200512022035.55854.doconnor@gsoft.com.au> <20051202134913.GD24254@poupinou.org> Cc: Subject: Re: cpufreq and changing driver X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 14:04:47 -0000 Hi list, 2005/12/2, Bruno Ducrot : > > I don't see why you can't run powerd more frequently, I do.. Unless you= r ACPI > > has a problem that means the transition is slow. > > I'm sure this could not be done under Linux without a lot of > problems (it is required to use the /proc things and it's too slow in > that case). > > > I can't imagine that doing 5 (or even 50) syscalls a second is a big CP= U load > > unless there is a specific problem with sysctls or the cpufreq > > infrastructure. > > If that's possible being not so intrusive with, say 50 syscalls under Fre= eBSD, > then all I said above is indeed stupid crap. > > > I run powerd like this -> > > /usr/sbin/powerd -i 90 -r 30 -a adaptive -b adaptive -n adaptive -p 200 > > Well, i've tried decreasing the polling interval, but there is an increased powerd cpu load: at 100ms polling interval the cpu load is to an astonishing 20% circa, which i think it's too much for a normal use. The sampling rate with ondemand governor in linux kernel is 10ms but cpufreqd is at 0.6% on average cpu load. Regards, MC