Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
6b76a58
Initial kernel_report module commit
mprovenc Mar 10, 2021
171695f
Rename shell utility for consistency
mprovenc Mar 10, 2021
74c1ea1
change procfs to sysctl
mprovenc Mar 10, 2021
37bd16b
Change shell utility file to python functions
mprovenc Mar 11, 2021
141d0cb
Add sysfs settings to kernel_report module
mprovenc Mar 11, 2021
4e90749
Create test to apply template settings en masse
mprovenc Mar 15, 2021
2ff7adc
fix yamllint errors
mprovenc Mar 15, 2021
3c5c29c
Make compatible with local qemu testing
mprovenc Mar 16, 2021
27414b7
Add drop_caches as unstable sysctl field
mprovenc Apr 1, 2021
e8e6508
Add support for more tuned parameters
mprovenc Apr 5, 2021
22f6e1b
Rewrite kernel_settings plugin with new fields
mprovenc Apr 8, 2021
abd52d8
Fix naming scheme for plugin files
mprovenc Apr 8, 2021
3fc17d6
Add a couple more sysfs fields, fix bugs
mprovenc Apr 8, 2021
4781a50
Add sysctl fields to new kernel_report plugin
mprovenc Apr 8, 2021
d14a1f6
Add handling for device specific settings
mprovenc Apr 15, 2021
f2090ab
Add special logic around dirty_bytes/ratio sysctls
mprovenc Apr 16, 2021
b4f2478
change device output to use device name, not path
mprovenc Apr 16, 2021
0b7cd5f
Add device support to role
mprovenc Apr 20, 2021
147c736
Generalize apply_settings test to use any release
mprovenc Apr 20, 2021
c4d259d
add kernel_settings_selinux to defaults
mprovenc Apr 22, 2021
40f71e6
Add transparent_hugepage parameters to krnl report
mprovenc Apr 22, 2021
4fffbec
code cleanup, start of unit test for kernel_report
mprovenc Apr 22, 2021
19ad7ac
update some sysctl values in test
mprovenc Apr 26, 2021
1f672d9
add test for safe_file_get_contents
mprovenc Apr 26, 2021
1e76323
tweak the test for demo
mprovenc Apr 28, 2021
80a9ccc
add sysctl unit tests
mprovenc Apr 28, 2021
b30a337
update documentation in kernel_report module
mprovenc Apr 28, 2021
a0d8822
update defaults documentation
mprovenc Apr 29, 2021
8becea7
reformat, finish unit tests
mprovenc Apr 30, 2021
ed44dba
Merge branch 'master' of https://github.com/linux-system-roles/kernel…
mprovenc Apr 30, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 120 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,126 @@ kernel_settings_sysctl: []
# value: 0
kernel_settings_sysfs: []

# This is a `dict` of the settings that fall under tuned's cpu plugin. The
# first item in the dict will be `devices`, which specifies the devices (if
# any) to apply the settings to. The default is to apply to all devices. The
# second item in the dict will be `settings`, which consists of a list of
# `dict` items with allowed key names of `name` and`value`. For example:
# kernel_settings_cpu:
# devices:
# - cpu0
# cpu1
# settings:
# - name: governor
# value: powersave
# - name: min_perf_pct
# value: 20
kernel_settings_cpu: null

# This is a `dict` of the settings that fall under tuned's disk plugin. The
# first item in the dict will be `devices`, which specifies the devices (if
# any) to apply the settings to. The default is to apply to all devices. The
# second item in the dict will be `settings`, which consists of a list of
# `dict` items with allowed key names of `name` and `value`. For example:
# kernel_settings_disk:
# devices:
# settings:
# - name: elevator
# value: bfq
# - name: read_ahead_kb
# value: 256
# - name: scheduler_quantum
# value: 64
kernel_settings_disk: null

# This is a `dict` of the settings that fall under tuned's net plugin. The
# first item in the dict will be `devices`, which specifies the devices (if
# any) to apply the settings to. The default is to apply to all devices. The
# second item in the dict will be `settings`, which consists of a list of
# `dict` items with allowed key names of `name` and `value`. For example:
# kernel_settings_net:
# devices:
# settings:
# - name: nf_conntrack_hashsize
# value: 1048576
kernel_settings_net: null

# This is a `dict` of the settings that fall under tuned's audio plugin. The
# first item in the dict will be `devices`, which specifies the devices (if
# any) to apply the settings to. The default is to apply to all devices. The
# second item in the dict will be `settings`, which consists of a list of
# `dict` items with allowed key names of `name` and `value`. For example:
# kernel_settings_audio:
# devices:
# settings:
# - name: timeout
# value: 10
# - name: reset_controller
# value: 1
kernel_settings_audio: null

# This is a `dict` of the settings that fall under tuned's scsi_host plugin.
# The first item in the dict will be `devices`, which specifies the devices
# (if any) to apply the settings to. The default is to apply to all devices.
# The second item in the dict will be `settings`, which consists of a list of
# `dict` items with allowed key names of `name` and `value`. For example:
# kernel_settings_scsi_host:
# devices:
# settings:
# - name: alpm
# value: "min_power"
kernel_settings_scsi_host: null

# This is a `dict` of the settings that fall under tuned's video plugin. The
# first item in the dict will be `devices`, which specifies the devices (if
# any) to apply the settings to. The default is to apply to all devices. The
# second item in the dict will be `settings`, which consists of a list of
# `dict` items with allowed key names of `name` and `value`. For example:
# kernel_settings_video:
# devices:
# settings:
# - name: radeon_powersave
# value: "auto"
kernel_settings_video: null

# This is a `dict` of the settings that fall under tuned's usb plugin. The
# first item in the dict will be `devices`, which specifies the devices (if
# any) to apply the settings to. The default is to apply to all devices. The
# second item in the dict will be `settings`, which consists of a list of
# `dict` items with allowed key names of `name` and `value`. For example:
# kernel_settings_usb:
# devices:
# settings:
# - name: autosuspend
# value: 1
kernel_settings_usb: null

# This is a `dict` of the settings that fall under tuned's selinux plugin. The
# first item in the dict will be `devices`, which specifies the devices (if
# any) to apply the settings to. The default is to apply to all devices. The
# second item in the dict will be `settings`, which consists of a list of
# `dict` items with allowed key names of `name` and `value`. For example:
# kernel_settings_selinux:
# devices:
# settings:
# - name: avc_cache_threshold
# value: 180
kernel_settings_selinux: null

# This is a `dict` of the settings that fall under tuned's vm plugin. The
# first item in the dict will be `devices`, which specifies the devices (if
# any) to apply the settings to. The default is to apply to all devices. The
# second item in the dict will be `settings`, which consists of a list of
# `dict` items with allowed key names of `name` and `value`. For example:
# kernel_settings_vm:
# devices:
# settings:
# - name: tranmadvise
# - name: tsparent_hugepages
# value: ransparent_hugepages.defrag
# value: madvise
kernel_settings_vm: null

# A space delimited list of cpu numbers.
# See systemd-system.conf man page - CPUAffinity
kernel_settings_systemd_cpu_affinity: null
Expand Down
Loading