From: Dominik Brodowski Subject: Re: [RFC] cpufreqtools Date: Fri, 22 Oct 2004 19:47:45 +0200 Sender: cpufreq-bounces@www.linux.org.uk Message-ID: <20041022174745.GA12506@dominikbrodowski.de> References: <20041021172227.GA24663@dominikbrodowski.de> <20041022143927.GE22405@poupinou.org> <20041022145738.GA2136@dominikbrodowski.de> <20041022172109.GF22405@poupinou.org> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <20041022172109.GF22405@poupinou.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cpufreq-bounces+glkc-cpufreq=gmane.org@www.linux.org.uk Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Bruno Ducrot Cc: jeremy@goop.org, cpufreq@www.linux.org.uk On Fri, Oct 22, 2004 at 07:21:09PM +0200, Bruno Ducrot wrote: > On Fri, Oct 22, 2004 at 04:57:38PM +0200, Dominik Brodowski wrote: > > On Fri, Oct 22, 2004 at 04:39:27PM +0200, Bruno Ducrot wrote: > > > I think that Jeremy's work being somehow integrated into your utilities. > > > I think libspeedfreq.c is a good starting point for point C at least. > > > > Unfortunately, I can't base the suggested cpufreqtools not on Jeremy's work, > > as it mixes userspace with kernelspace policies... and doesn't use > > libsysfs... However, updating speedfreq to use cpufreqtools seems to be > > possible and will probably lead to a code reduction in speedfreq. > > I do like Jeremy's idea to wrap all sysfs stuff in one deamon, then > all clients (via his library) will communicate with this daemon in > order to set different policies. This looks like an interesting idea _on top_ of the libcpufreq stuff I suggest. Though, I'm not really convinced whether the overhead of a daemon is needed, as it should be clear to the admin that different cpufreq userspace tools running at the same time are a bad idea. > So all you care is to secure > this daemon, not random setuid programs that others may wrote. not others, /me ;-) Which may make it worse, though... Thanks, Dominik