Skip to contentSkip to conversation

Reserved memory estimation for crashkernel=

DISCUSSION Louis Bouchard 2 participants 2 messages Feb 10, 2014 – Feb 14, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello,

I would be interested to know if there is a semi-accurate way to evaluate the amount of memory that needs to be reserved and passed to the crashkernel= parameter ?

I understand that it is very specific to the environment (system configuration, kernel options, etc) but if we could at least know how much memory will be required by makedumpfile it would be a good start.

Maybe we can imagine an enhancement to makedumpfile to have it evaluate a value that could provide some kind of estimate.

TIA,

Kind regards,

...Louis

Signature · 8 lines
Louis Bouchard
Software engineer,
Ubuntu

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
#1 lore raw

Hello Louis,

Quoted 9 lines · kexec

Hello,

I would be interested to know if there is a semi-accurate way to evaluate the amount of memory that needs to be reserved and passed to the crashkernel= parameter ?

I understand that it is very specific to the environment (system configuration, kernel options, etc) but if we could at least know how much memory will be required by makedumpfile it would be a good start.

Almost all the memory required by makedumpfile is used for the bitmap, and its maximum size can be calculated as:

((system memory size / page size) / 8) * 2 [byte]

Additional requirement size will be a few MByte at most, so estimating for makedumpfile is easy.

Moreover, makedumpfile can work even with lower memory since the cyclic mode was introduced. Then, the performance degradation caused by multi-cycle processing is very small according to the report below:

https://lkml.org/lkml/2013/3/26/914
(Please see the "Performance degradation in cyclic mode" paragraph.)

Thanks
Atsushi Kumagai

Quoted 19 lines

Maybe we can imagine an enhancement to makedumpfile to have it evaluate a value that could provide some kind of estimate.

TIA,

Kind regards,

...Louis

Signature · 8 lines
Louis Bouchard
Software engineer,
Ubuntu

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec