Skip to contentSkip to conversation

genirq: allow assigning affinity to present but not online CPUs

PATCH Christoph Hellwig 2 participants 3 messages Feb 5, 2017 – Feb 6, 2017 3 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

Christoph Hellwig

author maintainer
#3 lore raw

Hi Joe,

Quoted 7 lines · Joe Korty

IIRC, some years ago I ran across a customer system where the #cpus_present was twice as big as #cpus_possible.

Hyperthreading was turned off in the BIOS so it was not entirely out of line for the extra cpus to be declared present, even though none of them would ever be available for use.

This sounds like a system we should quirk around instead of optimizing for it. Unless I totally misunderstand the idea behind cpu_possible and cpu_present.

#4 lore raw
Quoted 6 lines · Christoph Hellwig

Hi Joe,

Quoted 3 lines · Joe Korty

IIRC, some years ago I ran across a customer system where the #cpus_present was twice as big as #cpus_possible.

Quoted 8 lines
Quoted 4 lines

Hyperthreading was turned off in the BIOS so it was not entirely out of line for the extra cpus to be declared present, even though none of them would ever be available for use.

This sounds like a system we should quirk around instead of optimizing for it. Unless I totally misunderstand the idea behind cpu_possible and cpu_present.

Can we use the online CPUs and create a new hot-cpu notifier to the nvme driver to free/reallocate as needed? We were doing that before blk-mq. Now blk-mq can change the number hardware contexts on a live queue, so we can reintroduce that behavior to nvme and only allocate what we need.

author maintainer
#5 lore raw
Quoted 4 lines · Keith Busch

Can we use the online CPUs and create a new hot-cpu notifier to the nvme driver to free/reallocate as needed? We were doing that before blk-mq. Now blk-mq can change the number hardware contexts on a live queue, so we can reintroduce that behavior to nvme and only allocate what we need.

That could be a next step, but given how badly I keep messing up core IRQ bits we'll probably want to wait for two rewrites of those bits from Thomas before moving on :)