Skip to contentSkip to conversation

guest kernel in the host RAM

Qemu-devel Denis V. Lunev 4 participants 6 messages Dec 15, 2015 – Dec 18, 2015 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hello, Paolo!

There is a plan or idea to improve current implementation of Clear Containers for QEMU. Patches about NVDIMM are floating in the list, you have proposed special boot firmware for a case.

The idea is that we could boot with the uncompressed Linux kernel in the guest which serves 2 purposes:
- faster boot time as per Intel opinion
- memory savings

Uncompressed kernel image could be the same for several guests and thus memory pages for the kernel could be the same, which saves a bit of RAM :)

At the moment neither BIOS support this in full: nor SeaBIOS, nor OVMF, nor QBoot.

From our point of view QBoot is an ideal candidate for this.

Do you have any opinion for the topic?

Den

#2 lore raw
Quoted 5 lines · Denis V. Lunev

The idea is that we could boot with the uncompressed Linux kernel in the guest which serves 2 purposes:
- faster boot time as per Intel opinion
- memory savings

Quoted 8 lines

Uncompressed kernel image could be the same for several guests and thus memory pages for the kernel could be the same, which saves a bit of RAM :)

At the moment neither BIOS support this in full: nor SeaBIOS, nor OVMF, nor QBoot.

From our point of view QBoot is an ideal candidate for this.

QBoot is not meant for use in production; SeaBIOS actually is just as fast if you configure it right.

Quoted 1 line

Do you have any opinion for the topic?

I honestly don't like the idea. Linux patches itself a lot, which makes the memory savings minimal (if they exist at all). What is the decompression time for a kernel that is compressed with LZO?

Paolo

#3 lore raw
Quoted 18 lines · Paolo Bonzini
Quoted 5 lines · Denis V. Lunev

The idea is that we could boot with the uncompressed Linux kernel in the guest which serves 2 purposes:
- faster boot time as per Intel opinion
- memory savings

Quoted 8 lines

Uncompressed kernel image could be the same for several guests and thus memory pages for the kernel could be the same, which saves a bit of RAM :)

At the moment neither BIOS support this in full: nor SeaBIOS, nor OVMF, nor QBoot.

From our point of view QBoot is an ideal candidate for this.

QBoot is not meant for use in production; SeaBIOS actually is just as fast if you configure it right.

Quoted 6 lines
Quoted 1 line

Do you have any opinion for the topic?

I honestly don't like the idea. Linux patches itself a lot, which makes the memory savings minimal (if they exist at all). What is the decompression time for a kernel that is compressed with LZO?

Paolo

It seems that you are perfectly correct here!

With large pages enabled (and preferred 2 Mb pages mode) we will have exactly zero bonus.

Thank you for saving a lot of time and efforts :)))

Den

#4 lore raw
Quoted 10 lines · Denis V. Lunev
Quoted 3 lines

Linux patches itself a lot, which
makes the memory savings minimal (if they exist at all). What is the decompression time for a kernel that is compressed with LZO?

It seems that you are perfectly correct here!

With large pages enabled (and preferred 2 Mb pages mode) we will have exactly zero bonus.

Thank you for saving a lot of time and efforts :)))

I'm a lazy person, sometimes it helps. :)

Paolo

#5 lore raw
In reply to Denis V. Lunev
Quoted 4 lines · Denis V. Lunev

There is a plan or idea to improve current implementation of Clear Containers for QEMU. Patches about NVDIMM are floating in the list, you have proposed special boot firmware for a case.

By the way, Marc Mari is working on adding fw_cfg DMA support to linuxboot.bin in QEMU. That way kernel/initramfs loading is much quicker because it doesn't use PIO to read data from the host.

Stefan

#6 lore raw
In reply to Denis V. Lunev

2015-12-15 19:27 GMT+08:00 Denis V. Lunev <[email protected]>:

Quoted 12 lines

Hello, Paolo!

There is a plan or idea to improve current implementation of Clear Containers for QEMU. Patches about NVDIMM are floating in the list, you have proposed special boot firmware for a case.

The idea is that we could boot with the uncompressed Linux kernel in the guest which serves 2 purposes:
- faster boot time as per Intel opinion
- memory savings

Quoted 6 lines

Uncompressed kernel image could be the same for several guests and thus memory pages for the kernel could be the same, which saves a bit of RAM :)

At the moment neither BIOS support this in full: nor SeaBIOS, nor OVMF, nor QBoot.

Just FYI, U-boot can load uncompressed kernels and it can run on qemu.

Quoted 7 lines

From our point of view QBoot is an ideal candidate for this.

Do you have any opinion for the topic?

Den