Skip to contentSkip to conversation

Dual Core on Linux questions

DISCUSSION Alejandro Bonilla 5 participants 6 messages Mar 18, 2006 – Mar 20, 2006

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 6 lines · Alejandro Bonilla

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

#2 lore raw

On Sat, 18 Mar 2006 03:58:22 -0500, Jeff Garzik wrote

Quoted 6 lines
Quoted 5 lines · Alejandro Bonilla

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:

Quoted 6 lines
Quoted 1 line

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 can we get with the cores?

Thanks for your time,

.Alejandro

#3 lore raw
Quoted 12 lines · Alejandro Bonilla

On Sat, 18 Mar 2006 03:58:22 -0500, Jeff Garzik wrote

Quoted 11 lines
Quoted 6 lines · Alejandro Bonilla

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.

Quoted 8 lines
Quoted 1 line

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 :)

ciao

Signature · 2 lines
mattia
:wq!
#4 lore raw
In reply to Alejandro Bonilla
Quoted 11 lines · Alejandro Bonilla

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?

afaik the cpuspeed daemon already supports this.
(not all dual core hardware can do this, but for the hw that can, cpuspeed supports it)

#5 lore raw
In reply to Alejandro Bonilla
Quoted 11 lines · Alejandro Bonilla

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?

This depends on your hardware. I was reading the Sossaman data sheet the other day, and it says that the entire chip must run at the same frequency. You can set each core to a different frequency, but the hardware chooses the higher of the two. Likewise, the entire chip can sleep, but individual cores can only go into C1. I imagine the Core Duo is the same.

IIRC, the dual-core Opterons behave a little differently but the two cores still have to run at the same frequency.

Wes Felter - [email protected]