kboot
kboot copied to clipboard
Exhausted heap space
Getting the following error when trying to boot Mezzano Demo 4 from a USB stick on an ASUS UX430UAR with 8 GB RAM:
https://github.com/froggey/Mezzano/releases/download/demo4/Mezzano.Demo.4.CD-USB-hybrid.iso.gz
A slight anomaly on this computer is that the booting (printing of numbers) starts very fast, and over time slows down noticeably. (I've seen the opposite on other computers.)
At a guess I'd say this machine has an abnormally large memory map causing it to use more heap space than usual. If you press F10 at the boot menu to get to the shell, then type lsmemory
, that should show you the current memory map - could you post the output from that?
You could try bumping up the heap size at https://github.com/froggey/kboot/blob/master/source/memory.c#L43 (in the Mezzano fork), or possibly ask @froggey to do so.
Here is the lsmemory
output:
(Tried to generate a new iso with the HEAP_SIZE increased, but didn't manage yet.)
Odd, looks normal. Not sure what else would cause this machine to use more heap space than others - filesystems maybe? If increasing the heap size works then we can just go with that.