Skip to contentSkip to conversation

Ping²: [PATCH 1/2] core-parking: interact with runtime SMT-disabling

Xen-devel Jan Beulich 1 participant 2 messages Jul 3, 2019 – Jul 15, 2019

lore
Share & tools
lore
#0 lore raw
Quoted 20 lines
Quoted 20 lines
Quoted 12 lines · On 27.05.19 at 11:36, wrote:
Quoted 2 lines · On 12.04.19 at 13:41, wrote:
Quoted 1 line · On 11.04.19 at 21:06, <[email protected]> wrote:
Quoted 8 lines · Jan Beulich

When disabling SMT at runtime, secondary threads should no longer be candidates for bringing back up in response to _PUD ACPI events. Purge them from the tracking array.

Doing so involves adding locking to guard accounting data in the core parking code. While adding the declaration for the lock take the liberty to drop two unnecessary forward function declarations.

Quoted 5 lines
Quoted 1 line

I can certainly appreciate these arguments, but surely the converse is true. When SMT-enable is used, the newly-onlined threads are now eligible to be parked.

And nothing will keep them from getting parked.

Quoted 10 lines
Quoted 4 lines
Quoted 1 line

At the moment, this looks asymetric.

It does, but that's a result of core_parking.c only recording CPUs it has parked, not ones it could park.

Did my responses address your concerns?

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#1 lore raw

[Xen-devel] Ping³: [PATCH 1/2] core-parking: interact with runtime SMT-disabling

Quoted 20 lines · Jan Beulich
Quoted 20 lines
Quoted 20 lines
Quoted 12 lines · On 27.05.19 at 11:36, wrote:
Quoted 2 lines · On 12.04.19 at 13:41, wrote:
Quoted 1 line · On 11.04.19 at 21:06, <[email protected]> wrote:
Quoted 8 lines · Jan Beulich

When disabling SMT at runtime, secondary threads should no longer be candidates for bringing back up in response to _PUD ACPI events. Purge them from the tracking array.

Doing so involves adding locking to guard accounting data in the core parking code. While adding the declaration for the lock take the liberty to drop two unnecessary forward function declarations.

Quoted 5 lines
Quoted 1 line

I can certainly appreciate these arguments, but surely the converse is true. When SMT-enable is used, the newly-onlined threads are now eligible to be parked.

And nothing will keep them from getting parked.

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 1 line

At the moment, this looks asymetric.

It does, but that's a result of core_parking.c only recording CPUs it has parked, not ones it could park.

Did my responses address your concerns?

Jan

Ping?

Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel