linux_wiki:kernel_tuning

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_wiki:kernel_tuning [2015/10/04 00:45]
billdozor
linux_wiki:kernel_tuning [2019/05/25 23:50] (current)
Line 6: Line 6:
  
 **Checklist** **Checklist**
-  * Any distro, but many examples are done via Red Hat based systems+  * Distro(s): Any
  
 ---- ----
  
-===== Hugepages =====+====== Hugepages ======
  
 Problem: Unable to access a VM's console, and it shows out of memory errors on boot. Problem: Unable to access a VM's console, and it shows out of memory errors on boot.
Line 25: Line 25:
  
 Alternative config location: Hugepages could also be configured at /boot/grub/grub.conf Alternative config location: Hugepages could also be configured at /boot/grub/grub.conf
 +
 +----
  
 ==== HugePage Bug ==== ==== HugePage Bug ====
Line 51: Line 53:
  
 # Disable kernel huge page defrag due to bugzilla bug: 879801 # Disable kernel huge page defrag due to bugzilla bug: 879801
-@reboot root /bin/echo never | /usr/bin/tee /sys/kernel/mm/transparent_hugepage/defrag+@reboot root /bin/echo never /sys/kernel/mm/transparent_hugepage/defrag
 </code> </code>
  
Line 62: Line 64:
 ---- ----
  
-===== Swappiness =====+====== Swappiness ======
  
 Swappiness controls how likely the kernel is to move processes out of memory and onto swap disk space. Swappiness controls how likely the kernel is to move processes out of memory and onto swap disk space.
Line 91: Line 93:
 ---- ----
  
-===== Page Cache =====+====== Page Cache ======
  
 Tuning how often cached pages in memory are flushed to disk. Tuning how often cached pages in memory are flushed to disk.
Line 116: Line 118:
 ---- ----
  
-===== File Descriptors =====+====== File Descriptors ======
  
 Viewing and setting the system wide file descriptors. Viewing and setting the system wide file descriptors.
Line 143: Line 145:
  
 ---- ----
 +
 +====== Kernel Panic ======
 +
 +Reboot a system after a 10 seconds of kernel panic
 +<code bash>
 +kernel.panic = 10
 +</code>
 +
 +----
 +
  • linux_wiki/kernel_tuning.1443933946.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)