Skip to contentSkip to conversation

sched/fair: Add lag based placement

REGRESSION Joseph Salisbury 2 participants 5 messages Nov 13, 2024 – Nov 14, 2024

lore
Share & tools
lore
#0 lore raw

Hello,

During performance testing, we found a regression of ~9% performance with the TPCC benchmark.   This performance regression was introduced in v6.6-rc1.  After a bisect, the following commit was identified as the cause of the regression:

86bfbb7ce4f6 ("sched/fair: Add lag based placement")

I was hoping to get some feedback from the scheduler folks.  Do you think gathering any additional data will help diagnose this issue?  Are there any tunable options that can changed to see how performance is affected?

Thanks,

Joe

#1 lore raw

Hi,

Quoted 7 lines · On Wed, Nov 13, 2024 at 01:03:00PM -0500 Joseph Salisbury wrote:

Hello,

During performance testing, we found a regression of ~9% performance with the TPCC benchmark.   This performance regression was introduced in v6.6-rc1.  After a bisect, the following commit was identified as the cause of the regression:

Quoted 6 lines

86bfbb7ce4f6 ("sched/fair: Add lag based placement")

I was hoping to get some feedback from the scheduler folks.  Do you think gathering any additional data will help diagnose this issue?  Are there any tunable options that can changed to see how performance is affected?

You can try turning off the PLACE_LAG sched feature:

echo NO_PLACE_LAG > /sys/kernel/debug/sched/features

It's not what I'd call a tunable but it would allow you to test w/o it and see what it does. It should allow you to switch back and forth easily for testing.

Cheers,
Phil

Quoted 12 lines

Thanks,

Joe

#2 lore raw

Re: [External] : Re: [REGRESSION] sched/fair: Add lag based placement

Quoted 20 lines · Phil Auld

Hi,

Quoted 7 lines · On Wed, Nov 13, 2024 at 01:03:00PM -0500 Joseph Salisbury wrote:

Hello,

During performance testing, we found a regression of ~9% performance with the TPCC benchmark.   This performance regression was introduced in v6.6-rc1.  After a bisect, the following commit was identified as the cause of the regression:

Quoted 6 lines

86bfbb7ce4f6 ("sched/fair: Add lag based placement")

I was hoping to get some feedback from the scheduler folks.  Do you think gathering any additional data will help diagnose this issue?  Are there any tunable options that can changed to see how performance is affected?

You can try turning off the PLACE_LAG sched feature:

echo NO_PLACE_LAG > /sys/kernel/debug/sched/features

Quoted 7 lines

It's not what I'd call a tunable but it would allow you to test w/o it and see what it does. It should allow you to switch back and forth easily for testing.

Cheers,
Phil

Thanks so much for the suggestion, Phil!  I will give that a try and report the results.

Quoted 12 lines
Quoted 12 lines

Thanks,

Joe

#3 lore raw
Quoted 24 lines · Joseph Salisbury
Quoted 20 lines · Phil Auld

Hi,

Quoted 7 lines · On Wed, Nov 13, 2024 at 01:03:00PM -0500 Joseph Salisbury wrote:

Hello,

During performance testing, we found a regression of ~9% performance with the TPCC benchmark.   This performance regression was introduced in v6.6-rc1.  After a bisect, the following commit was identified as the cause of the regression:

Quoted 6 lines

86bfbb7ce4f6 ("sched/fair: Add lag based placement")

I was hoping to get some feedback from the scheduler folks. Do you think gathering any additional data will help diagnose this issue? Are there any tunable options that can changed to see how performance is affected?

You can try turning off the PLACE_LAG sched feature:

     echo NO_PLACE_LAG > /sys/kernel/debug/sched/features

Quoted 22 lines
Quoted 7 lines

It's not what I'd call a tunable but it would allow you to test w/o it and see what it does.  It should allow you to switch back and forth easily for testing.

Cheers,
Phil

Thanks so much for the suggestion, Phil!  I will give that a try and report the results.

Quoted 12 lines
Quoted 12 lines

Thanks,

Joe

I just noticed this thread, which is probably related:
https://lore.kernel.org/lkml/[email protected]/T/

#4 lore raw

Re: [External] : Re: [REGRESSION] sched/fair: Add lag based placement

Quoted 28 lines · Joseph Salisbury
Quoted 24 lines · Joseph Salisbury
Quoted 20 lines · Phil Auld

Hi,

Quoted 7 lines · On Wed, Nov 13, 2024 at 01:03:00PM -0500 Joseph Salisbury wrote:

Hello,

During performance testing, we found a regression of ~9% performance with the TPCC benchmark.   This performance regression was introduced in v6.6-rc1.  After a bisect, the following commit was identified as the cause of the regression:

Quoted 6 lines

86bfbb7ce4f6 ("sched/fair: Add lag based placement")

I was hoping to get some feedback from the scheduler folks. Do you think gathering any additional data will help diagnose this issue? Are there any tunable options that can changed to see how performance is affected?

You can try turning off the PLACE_LAG sched feature:

     echo NO_PLACE_LAG > /sys/kernel/debug/sched/features

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines

It's not what I'd call a tunable but it would allow you to test w/o it and see what it does.  It should allow you to switch back and forth easily for testing.

Cheers,
Phil

Thanks so much for the suggestion, Phil!  I will give that a try and report the results.

We can confirm that using NO_PLACE_LAG adds back 5% of the performance that was lost.  However, we have not yet measured what effect this will have on other benchmarks.

We will continue testing and can help test the patches that add PLACE_LAG and RUN_TO_PARITY as sysctl options.

Quoted 17 lines
Quoted 14 lines
Quoted 12 lines
Quoted 12 lines

Thanks,

Joe

I just noticed this thread, which is probably related:
https://urldefense.com/v3/__https://lore.kernel.org/lkml/[email protected]/T/__;!!ACWV5N9M2RV99hQ!MhxYsyXTgwxk1HIWrxUHGSEZcJyBENlm5apMv2TEqf6Tn2uoi14-V8YSTymPDvjax78DSQR4m6zdQiJwxJ89K8iTmWl4hvUQ$