Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2009-07-10 23:33:14
Size: 120
Editor: SamatJain
Comment:
Revision 5 as of 2010-10-19 21:47:57
Size: 798
Editor: SamatJain
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== Automatically reboot on kernel panic ==

Linux can automatically reboot after a kernel panic. The sysctl /proc/sys/kernel/panic controls this; 0 (default) disables the behavior, while any value greater than zero is the number of seconds to wait before reboot. This can be made persistent by setting in /etc/sysctl.conf:

{{{
kernel.panic = 5
}}}

Linux will wait 5 seconds before automatically rebooting.
Line 6: Line 16:

== Disable IPv6 ==

Add ipv6.disable=1 as a kernel boot parameter.

== Empty disk cache ==

Forces the Linux kernel to discard/invalidate all disk caches.

{{{#!highlight sh
sync
echo 3 > /proc/sys/vm/drop_caches
}}}

----
CategoryCheatSheet

Automatically reboot on kernel panic

Linux can automatically reboot after a kernel panic. The sysctl /proc/sys/kernel/panic controls this; 0 (default) disables the behavior, while any value greater than zero is the number of seconds to wait before reboot. This can be made persistent by setting in /etc/sysctl.conf:

kernel.panic = 5

Linux will wait 5 seconds before automatically rebooting.

Compiling a single Linux kernel module

   1 make -C /lib/modules/`unam e -r`/build M=`pwd`

Disable IPv6

Add ipv6.disable=1 as a kernel boot parameter.

Empty disk cache

Forces the Linux kernel to discard/invalidate all disk caches.

   1 sync
   2 echo 3 > /proc/sys/vm/drop_caches


CategoryCheatSheet

SamatsWiki: CheatSheet/LinuxKernel (last edited 2011-02-08 01:53:47 by SamatJain)