]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
kexec: premit reduction of the reserved memory size
authorAmerigo Wang <amwang@redhat.com>
Wed, 16 Dec 2009 00:47:46 +0000 (16:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2009 15:20:13 +0000 (07:20 -0800)
commit06a7f711246b081afc21fff859f1003f1f2a0fbc
treeaece49693ad751923ce71387201d3c3e6214e335
parent1f2c19f8c959c1d0ccd3e33b1f480593b66d95dd
kexec: premit reduction of the reserved memory size

Implement shrinking the reserved memory for crash kernel, if it is more
than enough.

For example, if you have already reserved 128M, now you just want 100M,
you can do:

# echo $((100*1024*1024)) > /sys/kernel/kexec_crash_size

Note, you can only do this before loading the crash kernel.

Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: Neil Horman <nhorman@redhat.com>
Acked-by: Eric W. Biederman <ebiederm@xmission.com>
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/kexec.h
kernel/kexec.c
kernel/ksysfs.c