linux kernel compression/decompression ?
Does anybody know the reason why the linux kernel is compressed and the decompressed on booting a linux machine.
I don't know if it was always like this?
But it doesn't make much since.... why you would want to do that.
Essentially the complete kernel is uncompressed into memory eventually
So why the addtion step in compressing/decompressing the kernel (I would think this is just making the boot up process longer slower with little to no benift.)
I can see if you had a compressed kernel/file system that dynamically uncompressed the essential parts when needed to safe memory....etc (but this is still cutting edge since their is no easy efficient way to write to a compressed ram disk...etc not to say some day somebody may invent one but either way still kind of don't see a real use a part from being able to do it)
Plus the fact some things like IDT , GDT ,...other critical things have to be uncompressed and stay that way before an os can work.
Their way usually memory is not an issue when we have 4GB or 8GB or more of RAM to use for putting kernel into.
Hell with paging we would have up to 64GB on 32bit machine using virtual address's...way more then enough....