On 09/08/15 at 10:51am, "Zhou, Wenjian/周文剑" wrote:
On 09/08/2015 10:46 AM, Minfei Huang wrote:
>How about setting the nr_cpus as default value for parallel dumping?
>Then we do not need to specify the nr_cpus in kdump.conf.
What do you mean? Do you mean changing the default value of nr_cpus?
We can use cpu number which is running in the 2nd kernel as the parallel
thread parameter. Thus we do not need to pass the num_thread in
nr_cpus is set in /etc/sysconfig/kdump not in kdump.conf.
Due to the Intel CPU bug, we fail to get the exact cpu number used in
the 2nd kernel, if nr_cpus is equal to MAX_CPU(all of the plugged in
machine). if cpu 0 is the crashed cpu, then the booting cpu number is
nr_cpus in 2nd kernel, otherwise is nr_cpus - 1.
How about adding an option to do this work. Once we pass an option to
open the parallel thread feature in kdump.conf, makedumpfile can get the
max cpu number to create the threads in 2nd kernel.