Differences between revisions 3 and 7 (spanning 4 versions)
Revision 3 as of 2010-01-14 07:18:43
Size: 220
Editor: SamatJain
Comment:
Revision 7 as of 2011-02-08 01:53:47
Size: 845
Editor: SamatJain
Comment: Remove line numbers
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
<<TableOfContents>>

== 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 3: Line 15:
{{{#!highlight sh {{{#!highlight sh numbers=off
Line 7: Line 19:
=== Disable IPv6 === == Disable IPv6 ==
Line 10: Line 22:

== Empty disk cache ==

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

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

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

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.

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


CategoryCheatSheet

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