First Commit
This commit is contained in:
2
usr/lib/tmpfiles.d/coredump.conf
Normal file
2
usr/lib/tmpfiles.d/coredump.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
# Clear all coredumps that were created more than 3 days ago
|
||||
d /var/lib/systemd/coredump 0755 root root 3d
|
||||
6
usr/lib/tmpfiles.d/thp-shrinker.conf
Normal file
6
usr/lib/tmpfiles.d/thp-shrinker.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
# THP Shrinker has been added in the 6.12 Kernel
|
||||
# Default Value is 511
|
||||
# THP=always policy vastly overprovisions THPs in sparsely accessed memory areas, resulting in excessive memory pressure and premature OOM killing
|
||||
# 409 means that any THP that has more than 409 out of 512 (80%) zero filled filled pages will be split.
|
||||
# This reduces the memory usage, when THP=always used and the memory usage goes down to around the same usage as when madvise is used, while still providing an equal performance improvement
|
||||
w! /sys/kernel/mm/transparent_hugepage/khugepaged/max_ptes_none - - - - 409
|
||||
3
usr/lib/tmpfiles.d/thp.conf
Normal file
3
usr/lib/tmpfiles.d/thp.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
# Improve performance for applications that use tcmalloc
|
||||
# https://github.com/google/tcmalloc/blob/master/docs/tuning.md#system-level-optimizations
|
||||
w! /sys/kernel/mm/transparent_hugepage/defrag - - - - defer+madvise
|
||||
Reference in New Issue
Block a user