diff --git a/etc/skel/.config/libreoffice/4/user/registrymodifications.xcu b/etc/skel/.config/libreoffice/4/user/registrymodifications.xcu new file mode 100644 index 0000000..719cbb2 --- /dev/null +++ b/etc/skel/.config/libreoffice/4/user/registrymodifications.xcu @@ -0,0 +1,6 @@ + + +false +false +false + diff --git a/etc/sysctl.d/99-sysctl-garuda.conf b/etc/sysctl.d/99-sysctl-garuda.conf new file mode 100644 index 0000000..0d22cca --- /dev/null +++ b/etc/sysctl.d/99-sysctl-garuda.conf @@ -0,0 +1,45 @@ +# The swappiness sysctl parameter represents the kernel's preference (or avoidance) of swap space. Swappiness can have a value between 0 and 100, the default value is 60. +# A low value causes the kernel to avoid swapping, a higher value causes the kernel to try to use swap space. Using a low value on sufficient memory is known to improve responsiveness on many systems. +vm.swappiness=10 + +# 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=75 + +# 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 + +# The kernel default is to buffer up to 10% of system RAM before flushing writes to the disk, which is insane. By setting a reasonable number of bytes for the `dirty_bytes` parameter, we can avoid sending the system into OOM during a large file transfer. +vm.dirty_bytes = 16777216 +vm.dirty_background_bytes = 4194304 + +###############-NOT USED-################# + +# Contains, as a percentage of total available memory that contains free pages and reclaimable +# pages, the number of pages at which a process which is generating disk writes will itself start +# writing out dirty data (Default is 20). +#vm.dirty_ratio = 10 + +# Contains, as a percentage of total available memory that contains free pages and reclaimable +# pages, the number of pages at which the background kernel flusher threads will start writing out +# dirty data (Default is 10). +#vm.dirty_background_ratio = 5 + +# This tunable is used to define when dirty data is old enough to be eligible for writeout by the +# kernel flusher threads. It is expressed in 100'ths of a second. Data which has been dirty +# in-memory for longer than this interval will be written out next time a flusher thread wakes up +# (Default is 3000). +#vm.dirty_expire_centisecs = 3000 + +# 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 + +########################################### diff --git a/etc/systemd/swap.conf.d/swap.conf b/etc/systemd/swap.conf.d/swap.conf new file mode 100644 index 0000000..fab386b --- /dev/null +++ b/etc/systemd/swap.conf.d/swap.conf @@ -0,0 +1,5 @@ +zram_enabled=1 +zswap_enabled=0 +swapfc_enabled=0 +zram_size=$(( RAM_SIZE )) + diff --git a/etc/udev/rules.d/50-sata.rules b/etc/udev/rules.d/50-sata.rules new file mode 100644 index 0000000..e8dcab3 --- /dev/null +++ b/etc/udev/rules.d/50-sata.rules @@ -0,0 +1,3 @@ +# SATA Active Link Power Management + +ACTION=="add", SUBSYSTEM=="scsi_host", KERNEL=="host*", ATTR{link_power_management_policy}="max_performance" diff --git a/etc/udev/rules.d/60-ioschedulers.rules b/etc/udev/rules.d/60-ioschedulers.rules new file mode 100644 index 0000000..34a77e4 --- /dev/null +++ b/etc/udev/rules.d/60-ioschedulers.rules @@ -0,0 +1,6 @@ +# set scheduler for NVMe +ACTION=="add|change", KERNEL=="nvme[0-9]n[0-9]", ATTR{queue/scheduler}="none" +# set scheduler for SSD and eMMC +ACTION=="add|change", KERNEL=="sd[a-z]|mmcblk[0-9]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="mq-deadline" +# set scheduler for rotating disks +ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq"