Skip to contentSkip to conversation

proposed sysfs semantic change.

DISCUSSION Dave Jones 3 participants 5 messages Aug 11, 2010 – Aug 12, 2010

lore
Share & tools
lore

Dave Jones

author
#0 lore raw

Users with dual/quad core systems can currently set individual cores to have different governors (and drivers!), which doesn't really make a lot of sense.

I'm thinking of changing things so scaling_governor file for the 2nd/3rd/4th etc cores is a symlink to the same file in cpu0/
So a write to one file will automatically set things on all related cores within the same package.

For completeness we could also symlink related_cpus and driver.

thoughts ?

Dave

#1 lore raw

Hey,

Quoted 4 lines · Dave Jones

Users with dual/quad core systems can currently set individual cores to have different governors (and drivers!), which doesn't really make a lot of sense.

Quoted 8 lines

I'm thinking of changing things so scaling_governor file for the 2nd/3rd/4th etc cores is a symlink to the same file in cpu0/
So a write to one file will automatically set things on all related cores within the same package.

For completeness we could also symlink related_cpus and driver.

thoughts ?

good idea.

Best,
Doinik

#2 lore raw
In reply to Dave Jones
Quoted 3 lines · Dave Jones

Users with dual/quad core systems can currently set individual cores to have different governors (and drivers!), which doesn't really make a lot of sense.

Why not? Imagine a system that is partitioned using cpusets or cgroups for different sockets and the partitions runs different workloads.

I could well imagine using different governours (= policies) for those different sockets.

Different drivers probably doesn't make much sense though.

-Andi

Signature · 1 line
[email protected] -- Speaking for myself only.
author
#3 lore raw
Quoted 11 lines · Andi Kleen
Quoted 3 lines · Dave Jones

Users with dual/quad core systems can currently set individual cores to have different governors (and drivers!), which doesn't really make a lot of sense.

Why not? Imagine a system that is partitioned using cpusets or cgroups for different sockets and the partitions runs different workloads.

I could well imagine using different governours (= policies) for those different sockets.

Different sockets is fine. I'm talking about different cores within the same socket.

Dave

#4 lore raw
Quoted 7 lines · Dave Jones
Quoted 6 lines · Andi Kleen
Quoted 3 lines · Dave Jones

Users with dual/quad core systems can currently set individual cores to have different governors (and drivers!), which doesn't really make a lot of sense.

Quoted 7 lines
Quoted 5 lines

Why not? Imagine a system that is partitioned using cpusets or cgroups for different sockets and the partitions runs different workloads.

I could well imagine using different governours (= policies) for those different sockets.

Different sockets is fine. I'm talking about different cores within the same socket.

If you have per core p-states that makes sense too. Even without it could in principle make sense.

-Andi

Signature · 1 line
[email protected] -- Speaking for myself only.