1
0
Fork 0
tuned/profiles
Luiz Capitulino b39c2af9db cpu-partitioning: add no_rebalance_cores= option
As cpu-partitioning doesn't use isolcpus=, isolated CPUs can incur
very high latency due to load balancing performed by the kernel
scheduler.

This patch introduces a new configuration option called
no_rebalance_cores=. This options allow users to set a range
of CPUs to have load balancing disabled from /proc. It is
expected that users will only disable load balancing on CPUs
which run PMD threads (or vCPU threads running PMD threads),
since disabling this for all isolated CPUs can cause certain
performance problems for OpenStack.

Here are some numbers:

 - Without using no_rebalance_cores=, I can easily get 40us+
   in load balancing isolated CPUs:

           <...>-14140 [001]  1656.121155: funcgraph_entry:      + 43.927 us  |  rebalance_domains();
           <...>-14140 [001]  1660.117150: funcgraph_entry:      + 41.587 us  |  rebalance_domains();
           <...>-14140 [001]  1658.119152: funcgraph_entry:      + 41.565 us  |  rebalance_domains();
           <...>-14140 [001]  1668.110140: funcgraph_entry:      + 40.539 us  |  rebalance_domains();

 - When using no_rebalance_cores=, the maximum latency I
   get is ~ 1us:

           <...>-2440  [012]  1705.078076: funcgraph_entry:        1.024 us   |  rebalance_domains();
           <...>-2438  [008]  2021.065218: funcgraph_entry:        0.995 us   |  rebalance_domains();
           <...>-2447  [010]  2223.057289: funcgraph_entry:        0.991 us   |  rebalance_domains();

  IMPORTANT: 10 minutes run only.

This solution was developed by Andrew Theurer <atheurer@redhat.com>,
I'm merely integrating it into the profile.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2017-10-20 13:51:33 +02:00
..
atomic-guest atomic: increase number of inotify watches 2016-03-29 23:48:49 +02:00
atomic-host atomic: increase number of inotify watches 2016-03-29 23:48:49 +02:00
balanced plugin_video: Prefix DPM states with 'dpm-' 2017-09-19 23:03:41 +02:00
cpu-partitioning cpu-partitioning: add no_rebalance_cores= option 2017-10-20 13:51:33 +02:00
default Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
desktop desktop: fixed typo in profile summary 2017-03-30 17:00:26 +02:00
desktop-powersave plugin_video: Prefix DPM states with 'dpm-' 2017-09-19 23:03:41 +02:00
enterprise-storage profiles: consolidated summaries 2017-04-03 22:52:18 +02:00
laptop-ac-powersave Use ${i:PROFILE_DIR} in our profiles 2017-03-13 09:50:26 +01:00
laptop-battery-powersave Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
latency-performance Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
network-latency network-latency: dropped spurious whitespace 2017-07-19 18:05:45 +02:00
network-throughput profiles: consolidated summaries 2017-04-03 22:52:18 +02:00
oracle Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
powersave plugin_video: Prefix DPM states with 'dpm-' 2017-09-19 23:03:41 +02:00
realtime network-latency: added skew_tick=1 kernel command line parameter 2017-07-19 13:46:56 +02:00
realtime-virtual-guest realtime profiles: dropped tuna invocation from host/guest 2017-07-19 18:35:17 +02:00
realtime-virtual-host tuned: disable KSM in KVM low-latency profiles 2017-10-10 14:00:28 +02:00
sap-hana sap-hana: change force_latency to 70 2017-10-12 17:10:21 +02:00
sap-hana-vmware sap-hana: change force_latency to 70 2017-10-12 17:10:21 +02:00
sap-netweaver Use ${i:PROFILE_DIR} in our profiles 2017-03-13 09:50:26 +01:00
server-powersave Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
spindown-disk Use ${i:PROFILE_DIR} in our profiles 2017-03-13 09:50:26 +01:00
throughput-performance profiles: consolidated summaries 2017-04-03 22:52:18 +02:00
virtual-guest profiles: consolidated summaries 2017-04-03 22:52:18 +02:00
virtual-host Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
functions tuned: disable KSM in KVM low-latency profiles 2017-10-10 14:00:28 +02:00