From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9xtz-0004N7-Ag for qemu-devel@nongnu.org; Fri, 18 Dec 2015 11:29:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9xtv-00088k-AX for qemu-devel@nongnu.org; Fri, 18 Dec 2015 11:29:07 -0500 Received: from relay.parallels.com ([195.214.232.42]:54670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9xtv-00088e-2C for qemu-devel@nongnu.org; Fri, 18 Dec 2015 11:29:03 -0500 References: <566EE582.2070408@virtuozzo.com> <566FF912.3000809@openvz.org> <567000B8.2070300@redhat.com> From: "Denis V. Lunev" Message-ID: <56743443.5000907@openvz.org> Date: Fri, 18 Dec 2015 19:28:51 +0300 MIME-Version: 1.0 In-Reply-To: <567000B8.2070300@redhat.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] guest kernel in the host RAM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Vladimir Sementsov-Ogievskiy , QEMU On 12/15/2015 02:59 PM, Paolo Bonzini wrote: > > On 15/12/2015 12:27, Denis V. Lunev wrote: >> 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. > QBoot is not meant for use in production; SeaBIOS actually is just as > fast if you configure it right. > >> 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