Commit f34f6cb
feat(tuned): ensure CPUs are giving it their all (#2069)
* feat(tuned): ensure CPUs are giving it their all
This commit enhances the custom `tuned` profile for PostgreSQL by
forcing the CPU into a maximum performance
state. These changes are critical for maintaining consistent low-latency
database performance.
Key Changes and Benefits:
- CPU Governor & Energy Bias: Switched to 'performance' mode. This prevents
the kernel from scaling down CPU frequencies during periods of lower
activity, eliminating the "ramp-up" latency when a burst of queries
arrives.
- Min Performance Percentage: Fixed at 100% to ensure the processor stays
at its maximum base frequency, reducing jitter in query execution times.
* Update ansible/tasks/setup-tuned.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update ansible/tasks/setup-tuned.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* chore: bump AMI version
* fix(tuned): handle both old and current tuned versions
* fix(tuned): address Sam's concerns
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 950efd9 commit f34f6cb
2 files changed
Lines changed: 60 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
23 | 34 | | |
| 35 | + | |
24 | 36 | | |
25 | 37 | | |
26 | 38 | | |
27 | 39 | | |
28 | 40 | | |
29 | 41 | | |
30 | | - | |
| 42 | + | |
31 | 43 | | |
32 | 44 | | |
33 | 45 | | |
34 | | - | |
35 | 46 | | |
36 | | - | |
| 47 | + | |
| 48 | + | |
37 | 49 | | |
38 | 50 | | |
39 | 51 | | |
40 | 52 | | |
41 | 53 | | |
42 | 54 | | |
43 | | - | |
| 55 | + | |
44 | 56 | | |
45 | 57 | | |
46 | 58 | | |
47 | | - | |
48 | 59 | | |
49 | | - | |
50 | | - | |
| 60 | + | |
| 61 | + | |
51 | 62 | | |
52 | 63 | | |
53 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
54 | 102 | | |
55 | 103 | | |
56 | 104 | | |
| |||
63 | 111 | | |
64 | 112 | | |
65 | 113 | | |
| 114 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments