Skip to content

Commit 7c95815

Browse files
authored
ci: host tuning in devstack (#2747)
Copy host tuning from: https://opendev.org/openstack/devstack/src/commit/05f7d302cfa2da73b2887afcde92ef65b1001194/.zuul.yaml#L645-L662 Enable ENABLE_SYSCTL_MEM_TUNING, ENABLE_SYSCTL_NET_TUNING and ENABLE_ZSWAP for the reasons explained in comments.
1 parent 8ece51f commit 7c95815

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/playbooks/roles/install-devstack/templates/local.conf.j2

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,26 @@ TARGET_BRANCH={{ branch }}
2121

2222
ENABLED_SERVICES=rabbit,mysql,key
2323

24+
# Host tuning
25+
# From: https://opendev.org/openstack/devstack/src/commit/05f7d302cfa2da73b2887afcde92ef65b1001194/.zuul.yaml#L645-L662
26+
# Tune the host to optimize memory usage and hide io latency
27+
# these setting will configure the kernel to treat the host page
28+
# cache and swap with equal priority, and prefer deferring writes
29+
# changing the default swappiness, dirty_ratio and
30+
# the vfs_cache_pressure
31+
ENABLE_SYSCTL_MEM_TUNING=true
32+
# The net tuning optimizes ipv4 tcp fast open and config the default
33+
# qdisk policy to pfifo_fast which effectively disable all qos.
34+
# this minimizes the cpu load of the host network stack
35+
ENABLE_SYSCTL_NET_TUNING=true
36+
# zswap allows the kernel to compress pages in memory before swapping
37+
# them to disk. this can reduce the amount of swap used and improve
38+
# performance. effectivly this trades a small amount of cpu for an
39+
# increase in swap performance by reducing the amount of data
40+
# written to disk. the overall speedup is porportional to the
41+
# compression ratio and the speed of the swap device.
42+
ENABLE_ZSWAP=true
43+
2444
{% if "nova" in enable_services %}
2545
# Nova
2646
enable_service n-api

0 commit comments

Comments
 (0)