First Commit
This commit is contained in:
26
usr/lib/sysctl.d/99-bore-scheduler.conf
Normal file
26
usr/lib/sysctl.d/99-bore-scheduler.conf
Normal file
@@ -0,0 +1,26 @@
|
||||
### Use only if you want to change the default values!
|
||||
### For more information look here: https://github.com/firelzrd/bore-scheduler#readme
|
||||
|
||||
### Additional settings for BORE Scheduler (Work only if the BORE scheduler is enabled!)
|
||||
### So make sure that kernel.sched_bore has a value of 1
|
||||
|
||||
# sched_burst_cache_lifetime (range: 0 - 4294967295, default: 75000000)
|
||||
#kernel.sched_burst_cache_lifetime = 75000000
|
||||
|
||||
# sched_burst_fork_atavistic (range: 0 - 3, default: 2)
|
||||
#kernel.sched_burst_fork_atavistic = 2
|
||||
|
||||
# sched_burst_penalty_offset (range: 0 - 64, default: 22)
|
||||
#kernel.sched_burst_penalty_offset = 22
|
||||
|
||||
# sched_burst_penalty_scale (range: 0 - 4095, default: 1280)
|
||||
#kernel.sched_burst_penalty_scale = 1280
|
||||
|
||||
# sched_burst_smoothness (range: 1 - 255, default: 20)
|
||||
#kernel.sched_burst_smoothness = 20
|
||||
|
||||
# sched_burst_exclude_kthreads (range: 0 - 1, default: 1)
|
||||
#kernel.sched_burst_exclude_kthreads = 1
|
||||
|
||||
# sched_burst_parity_threshold (range: u8, default: 2)
|
||||
#kernel.sched_burst_parity_threshold = 2
|
||||
49
usr/lib/sysctl.d/99-cachyos-settings.conf
Normal file
49
usr/lib/sysctl.d/99-cachyos-settings.conf
Normal file
@@ -0,0 +1,49 @@
|
||||
# The sysctl swappiness parameter determines the kernel's preference for pushing anonymous pages or page cache to disk in memory-starved situations.
|
||||
# A low value causes the kernel to prefer freeing up open files (page cache), a high value causes the kernel to try to use swap space,
|
||||
# and a value of 100 means IO cost is assumed to be equal.
|
||||
vm.swappiness = 100
|
||||
|
||||
# The value controls the tendency of the kernel to reclaim the memory which is used for caching of directory and inode objects (VFS cache).
|
||||
# Lowering it from the default value of 100 makes the kernel less inclined to reclaim VFS cache (do not set it to 0, this may produce out-of-memory conditions)
|
||||
vm.vfs_cache_pressure = 50
|
||||
|
||||
# Contains, as bytes, the number of pages at which a process which is
|
||||
# generating disk writes will itself start writing out dirty data.
|
||||
vm.dirty_bytes = 268435456
|
||||
|
||||
# page-cluster controls the number of pages up to which consecutive pages are read in from swap in a single attempt.
|
||||
# This is the swap counterpart to page cache readahead. The mentioned consecutivity is not in terms of virtual/physical addresses,
|
||||
# but consecutive on swap space - that means they were swapped out together. (Default is 3)
|
||||
# increase this value to 1 or 2 if you are using physical swap (1 if ssd, 2 if hdd)
|
||||
vm.page-cluster = 0
|
||||
|
||||
# Contains, as bytes, the number of pages at which the background kernel
|
||||
# flusher threads will start writing out dirty data.
|
||||
vm.dirty_background_bytes = 67108864
|
||||
|
||||
# The kernel flusher threads will periodically wake up and write old data out to disk. This
|
||||
# tunable expresses the interval between those wakeups, in 100'ths of a second (Default is 500).
|
||||
vm.dirty_writeback_centisecs = 1500
|
||||
|
||||
# This action will speed up your boot and shutdown, because one less module is loaded. Additionally disabling watchdog timers increases performance and lowers power consumption
|
||||
# Disable NMI watchdog
|
||||
kernel.nmi_watchdog = 0
|
||||
|
||||
# Enable the sysctl setting kernel.unprivileged_userns_clone to allow normal users to run unprivileged containers.
|
||||
kernel.unprivileged_userns_clone = 1
|
||||
|
||||
# To hide any kernel messages from the console
|
||||
kernel.printk = 3 3 3 3
|
||||
|
||||
# Restricting access to kernel pointers in the proc filesystem
|
||||
kernel.kptr_restrict = 2
|
||||
|
||||
# Disable Kexec, which allows replacing the current running kernel.
|
||||
kernel.kexec_load_disabled = 1
|
||||
|
||||
# Increase netdev receive queue
|
||||
# May help prevent losing packets
|
||||
net.core.netdev_max_backlog = 4096
|
||||
|
||||
# Set size of file handles and inode cache
|
||||
fs.file-max = 2097152
|
||||
Reference in New Issue
Block a user