Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1608136

Re: [PATCH] x86/boot: Support uncompressed kernel

From Chao Peng <chao.p.peng@linux.intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH] x86/boot: Support uncompressed kernel
Date 2017-03-24 06:40 +0100
Message-ID <toq77-5eW-3@gated-at.bofh.it> (permalink)
References <toaF4-2Eh-13@gated-at.bofh.it> <tocxd-3SR-53@gated-at.bofh.it> <tod0e-4a5-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> > > The patch adds a 'CONFIG_KERNEL_RAW' configure choice so the built
> > > binary
> > > can have no uncompressing at all. The experiment shows:
> > > 
> > >     kernel               kernel size    time in decompress_kernel
> > >     compressed (gzip)    3.3M           53ms
> > >     uncompressed         14M            3ms
> > 
> > How about the time difference for bootloader to read kernel from
> > flash/disk/network to ram?

The loading time for bootloader can be longer as size increased, but
that depends on which media it uses. For our usecase, it's not a big
problem. As we run the kernel in virtual machine and lunch thousands of
instances in the same physical machine so only the first instance needs
to read from the file and later we just copy the memory. The thing that
really matters for us is how fast we can boot for majority of the
instances.

> 
> there are also faster de-compressors than gzip out there. LZ4, for
> instance.
> LZ4, as far as I remember, can be quite fast, like ~10 times faster
> than gzip.
> have you tested it?

Exactly, LZ4 is the fastest. It takes 16ms to complete the
decompression. Still sounds a little longer when compared to
uncompressed kernel.

Chao

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] x86/boot: Support uncompressed kernel Chao Peng <chao.p.peng@linux.intel.com> - 2017-03-23 14:10 +0100
  Re: [PATCH] x86/boot: Support uncompressed kernel Yinghai Lu <yinghai@kernel.org> - 2017-03-23 16:10 +0100
    Re: [PATCH] x86/boot: Support uncompressed kernel Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2017-03-23 16:40 +0100
      Re: [PATCH] x86/boot: Support uncompressed kernel Chao Peng <chao.p.peng@linux.intel.com> - 2017-03-24 06:40 +0100
        Re: [PATCH] x86/boot: Support uncompressed kernel Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2017-03-27 10:10 +0200
          Re: [PATCH] x86/boot: Support uncompressed kernel Chao Peng <chao.p.peng@linux.intel.com> - 2017-03-27 11:30 +0200
          Re: [PATCH] x86/boot: Support uncompressed kernel Michal Marek <mmarek@suse.com> - 2017-03-27 14:00 +0200
            Re: [PATCH] x86/boot: Support uncompressed kernel Arnd Bergmann <arnd@arndb.de> - 2017-03-27 15:30 +0200
  Re: [PATCH] x86/boot: Support uncompressed kernel Michal Marek <mmarek@suse.com> - 2017-03-24 09:30 +0100

csiph-web