public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RE: Dual Core on Linux questions
@ 2006-03-23  3:36 Pallipadi, Venkatesh
  2006-03-23  3:44 ` Jeff Garzik
  2006-03-23 17:55 ` Mattia Dongili
  0 siblings, 2 replies; 13+ messages in thread
From: Pallipadi, Venkatesh @ 2006-03-23  3:36 UTC (permalink / raw)
  To: Mattia Dongili, Alejandro Bonilla; +Cc: Jeff Garzik, linux-kernel

 

>-----Original Message-----
>From: linux-kernel-owner@vger.kernel.org 
>[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Mattia Dongili
>Sent: Saturday, March 18, 2006 2:49 AM
>To: Alejandro Bonilla
>Cc: Jeff Garzik; linux-kernel@vger.kernel.org
>Subject: Re: Dual Core on Linux questions
>
>On Sat, Mar 18, 2006 at 03:03:40AM -0600, Alejandro Bonilla wrote:
>> On Sat, 18 Mar 2006 03:58:22 -0500, Jeff Garzik wrote
>> > Alejandro Bonilla wrote:
>> > > Hi,
>> > > 
>> > > I have a few questions about the PM Dual Core and how 
>could it really work
>> > > with Linux. Sorry if there are new patches on LKML about 
>any of these things:
>> > > 
>> > > Could each processor or die, have it's own cpufreq 
>scaling governor?
>> > 
>> > Sure.  On a laptop, if you don't need dual core power, it makes 
>> > sense to turn off the unused core, even.
>> > 
>> > 	Jeff
>> 
>> Jeff,
>> 
>> For some reason, while I was writing this email, I knew you 
>would be the first
>> to reply. LOL. Anyway. Does this need new patches sent to 
>LKML or nice
>> commands to make this work or any idea if stock cpufreqd 
>should manage the
>> cores separatelly? I haven't got that to work on 2.6.15 so 
>far. How flexible
>
>no, currently cpufreqd applies the governor and limits to all available
>cpus. Is it really possible to run the 2 cores at different speeds?
>I definitely need to upgrade my hardware and get one of those dual core
>babies to play with.
>Oh, and BTW patches to cpufreqd are welcome in the meantime :)
>

>From cpufreq perspective multiple things are possible in the way
processor will support the multi-core frequency changing. and most of
the things are handled at cpufreq inside kernel. I think there should be
minima changes required in cpufreqd if any.
Options:
1) Multiple core can manage frequency independently: In this case,
cpufreq exports separate interfaces for each cpu in
/sys/devices/system/cpu/cpuX. So, cpufreqd should work as it would work
on an SMP system (Assuming that cpufreqd works fine on an SMP system
today ;-))

2) Multiple cores can be at a single frequency, but hardware will
coordinate between two cores internally (pick the highest frequency
request from two cores and run both of them at that frequency). This
will be very much similar to 1, in the way in which cpufreq and kernel
handles it.

3) Multiple cores can be at a single frequency and hardware depends on
OS to do the coordination, pick the maximum of all the requests from the
cores and set the frequency using appropriate hardware interface. This
is the case, where cpufreqd may need a change. In this case, say CPU 0
and 1 are two different cores on same package and they share frequency
and OS has to coordinate the freq request from these two CPUs. In this
case, /sys/devices/system/cpu/cpu1/cpufreq will be kind of a symbolic
link to /sys/devices/system/cpu/cpu0/cpufreq. Cpufreq tells that these
two are dependent by using "affected_cpus" in the same sysfs directory
(in this case "0 1"). Now, if cpufreqd does a set_speed on cpu0 and
cpu1, both CPUs will be affected. Cpufreqd should be aware that these
CPUs are dependent and change freq based on maximum utilization of these
two CPUs.

Thanks,
Venki

^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: Dual Core on Linux questions
@ 2006-03-23  3:51 Pallipadi, Venkatesh
  0 siblings, 0 replies; 13+ messages in thread
From: Pallipadi, Venkatesh @ 2006-03-23  3:51 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Mattia Dongili, Alejandro Bonilla, linux-kernel

 

>-----Original Message-----
>From: Jeff Garzik [mailto:jeff@garzik.org] 
>Sent: Wednesday, March 22, 2006 7:45 PM
>To: Pallipadi, Venkatesh
>Cc: Mattia Dongili; Alejandro Bonilla; linux-kernel@vger.kernel.org
>Subject: Re: Dual Core on Linux questions
>
>Pallipadi, Venkatesh wrote:
>>>From cpufreq perspective multiple things are possible in the way
>> processor will support the multi-core frequency changing. and most of
>> the things are handled at cpufreq inside kernel. I think 
>there should be
>> minima changes required in cpufreqd if any.
>> Options:
>
>
>4) we power down a core.
>

That is more of a logical hotplug issue than cpufreq. But, it is better
to keep the CPU on and scheduler do the best use of it. If CPU has
nothing to run, it will go to deepest C-state possible and idle in that
state anyway. 

Thanks,
Venki

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Dual Core on Linux questions
@ 2006-03-18  8:35 Alejandro Bonilla
  2006-03-18  8:58 ` Jeff Garzik
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Alejandro Bonilla @ 2006-03-18  8:35 UTC (permalink / raw)
  To: linux-kernel

Hi,

I have a few questions about the PM Dual Core and how could it really work
with Linux. Sorry if there are new patches on LKML about any of these things:

Could each processor or die, have it's own cpufreq scaling governor?

Is there a way to allow one die to be idle and let the other one normal?

So in other words, could we manage these processors speedstep, utilization and
workload individually?

Thanks!

.Alejandro

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2006-04-05 18:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-23  3:36 Dual Core on Linux questions Pallipadi, Venkatesh
2006-03-23  3:44 ` Jeff Garzik
2006-03-29 19:51   ` Bill Davidsen
2006-03-30 20:31     ` Jeff Garzik
2006-04-04 19:30       ` Bill Davidsen
2006-03-23 17:55 ` Mattia Dongili
  -- strict thread matches above, loose matches on Subject: below --
2006-03-23  3:51 Pallipadi, Venkatesh
2006-03-18  8:35 Alejandro Bonilla
2006-03-18  8:58 ` Jeff Garzik
2006-03-18  9:03   ` Alejandro Bonilla
2006-03-18 10:49     ` Mattia Dongili
2006-03-18  9:21 ` Arjan van de Ven
2006-03-20 19:23 ` Wes Felter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox