Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #177778 > unrolled thread
| Started by | Daniel Bareiro <daniel-listas@gmx.net> |
|---|---|
| First post | 2017-02-14 01:00 +0100 |
| Last post | 2017-02-14 15:20 +0100 |
| Articles | 7 — 4 participants |
Back to article view | Back to linux.debian.user
Kernel Update on Stretch Daniel Bareiro <daniel-listas@gmx.net> - 2017-02-14 01:00 +0100
Re: Kernel Update on Stretch Sven Hartge <sven@svenhartge.de> - 2017-02-14 13:50 +0100
Re: Kernel Update on Stretch Darac Marjal <mailinglist@darac.org.uk> - 2017-02-14 14:10 +0100
Re: Kernel Update on Stretch Sven Hartge <sven@svenhartge.de> - 2017-02-14 14:30 +0100
Re: Kernel Update on Stretch Daniel Bareiro <daniel-listas@gmx.net> - 2017-02-14 15:00 +0100
Re: Kernel Update on Stretch Daniel Bareiro <daniel-listas@gmx.net> - 2017-02-14 14:50 +0100
Re: Kernel Update on Stretch Christian Seiler <christian@iwakd.de> - 2017-02-14 15:20 +0100
| From | Daniel Bareiro <daniel-listas@gmx.net> |
|---|---|
| Date | 2017-02-14 01:00 +0100 |
| Subject | Kernel Update on Stretch |
| Message-ID | <tayHg-2e2-5@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
Hi all! Some time ago I read that Linux 4.x incorporates the feature to be updated without requiring a restart of the operating system. Since stretch incorporates a kernel of the 4.x series, this would imply that we can update the kernel package and avoid reboots? Thanks in advance. Kind regards, Daniel
[toc] | [next] | [standalone]
| From | Sven Hartge <sven@svenhartge.de> |
|---|---|
| Date | 2017-02-14 13:50 +0100 |
| Message-ID | <taKIq-1Wj-1@gated-at.bofh.it> |
| In reply to | #177778 |
Daniel Bareiro <daniel-listas@gmx.net> wrote: > Some time ago I read that Linux 4.x incorporates the feature to be > updated without requiring a restart of the operating system. Some Linux Distributions have such a feature. Debian is not one of them. Grüße, Sven. -- Sigmentation fault. Core dumped.
[toc] | [prev] | [next] | [standalone]
| From | Darac Marjal <mailinglist@darac.org.uk> |
|---|---|
| Date | 2017-02-14 14:10 +0100 |
| Message-ID | <taL1L-2ir-3@gated-at.bofh.it> |
| In reply to | #177786 |
On Tue, Feb 14, 2017 at 01:46:08PM +0100, Sven Hartge wrote: >Daniel Bareiro <daniel-listas@gmx.net> wrote: > >> Some time ago I read that Linux 4.x incorporates the feature to be >> updated without requiring a restart of the operating system. > >Some Linux Distributions have such a feature. Debian is not one of them. Actually, yes it is, you just need to install the user space tools.[1] The facility is called "kexec" (named after the system call to 'EXECute a new Kernel', I suspect). Install the "kexec-tools" package and, if I'm reading that page correctly, the "reboot" command will be replaced by a kexec call (see the linked page, though, for precautions about your first reboot). [1] wiki.debian.org/BootProcessSpeedup#Using_kexec_for_warm_reboots > >Grüße, >Sven. > >-- >Sigmentation fault. Core dumped. > -- For more information, please reread.
[toc] | [prev] | [next] | [standalone]
| From | Sven Hartge <sven@svenhartge.de> |
|---|---|
| Date | 2017-02-14 14:30 +0100 |
| Message-ID | <taLl8-2pq-9@gated-at.bofh.it> |
| In reply to | #177787 |
Darac Marjal <mailinglist@darac.org.uk> wrote: > On Tue, Feb 14, 2017 at 01:46:08PM +0100, Sven Hartge wrote: >> Daniel Bareiro <daniel-listas@gmx.net> wrote: >>> Some time ago I read that Linux 4.x incorporates the feature to be >>> updated without requiring a restart of the operating system. >> Some Linux Distributions have such a feature. Debian is not one of >> them. > Actually, yes it is, you just need to install the user space tools.[1] You misunderstood Daniel. He thinks of mechanisms like ksplice or kpatch where you can alter/patch the running kernel without rebooting the system. > The facility is called "kexec" (named after the system call to > 'EXECute a new Kernel', I suspect). Install the "kexec-tools" package > and, if I'm reading that page correctly, the "reboot" command will be > replaced by a kexec call (see the linked page, though, for precautions > about your first reboot). kexec still "reboots" the system, meaning the complete userland has to be stopped before the new kernel can be started. You only gain time because you don't have to wait for the UEFI/BIOS, RAID cards, network cards, etc. to initialize. Grüße, Sven. -- Sigmentation fault. Core dumped.
[toc] | [prev] | [next] | [standalone]
| From | Daniel Bareiro <daniel-listas@gmx.net> |
|---|---|
| Date | 2017-02-14 15:00 +0100 |
| Message-ID | <taLOa-2zE-11@gated-at.bofh.it> |
| In reply to | #177788 |
[Multipart message — attachments visible in raw view] — view raw
Hi, Sven. On 14/02/17 10:19, Sven Hartge wrote: > He thinks of mechanisms like ksplice or kpatch where you can > alter/patch the running kernel without rebooting the system. Yes, I had read some about this and that, for example, Ubuntu has it available but as a paid service that one can hire. What is not clear to me is if these systems are complemented with the package system or it is something independent. I think it's some kind of hot patching, which would not require installing a new version of the kernel package. Thanks for your reply. Kind regards, Daniel
[toc] | [prev] | [next] | [standalone]
| From | Daniel Bareiro <daniel-listas@gmx.net> |
|---|---|
| Date | 2017-02-14 14:50 +0100 |
| Message-ID | <taLEt-2wc-3@gated-at.bofh.it> |
| In reply to | #177787 |
[Multipart message — attachments visible in raw view] — view raw
Hi, Darac. On 14/02/17 10:01, Darac Marjal wrote: >>> Some time ago I read that Linux 4.x incorporates the feature to be >>> updated without requiring a restart of the operating system. >> Some Linux Distributions have such a feature. Debian is not one of them. > Actually, yes it is, you just need to install the user space tools.[1] > > The facility is called "kexec" (named after the system call to 'EXECute > a new Kernel', I suspect). Install the "kexec-tools" package and, if I'm > reading that page correctly, the "reboot" command will be replaced by a > kexec call (see the linked page, though, for precautions about your > first reboot). > > [1] wiki.debian.org/BootProcessSpeedup#Using_kexec_for_warm_reboots Reading about the documentation you mentioned and researching a little more about kexec, I see that kexec skips the BIOS init part, but it requires a boot anyway. In fact, I see that kexec is present in Jessie and I've also seen some examples of use with 2.6 series kernels. I understand that what I mentioned was introduced with Linux 4.x. Thanks for your reply. Kind regards, Daniel
[toc] | [prev] | [next] | [standalone]
| From | Christian Seiler <christian@iwakd.de> |
|---|---|
| Date | 2017-02-14 15:20 +0100 |
| Message-ID | <taM7v-2Vs-11@gated-at.bofh.it> |
| In reply to | #177778 |
Hi,
On 02/14/2017 12:58 AM, Daniel Bareiro wrote:
> Some time ago I read that Linux 4.x incorporates the feature to be
> updated without requiring a restart of the operating system.
They incorporated parts of that. There are still some unsolved issues.
See for example this article from last November about the topic:
https://lwn.net/Articles/706327/
So there's no complete upstream support for this yet, there are
several distributions that roll their own variants.
> Since stretch incorporates a kernel of the 4.x series, this would imply
> that we can update the kernel package and avoid reboots?
No. There are two components to this:
1. The kernel must support loading live patches
This is partially true for the kernel that will come with
Stretch (CONFIG_LIVEPATCH=y), but (see the LWN article I linked)
it doesn't actually work safely yet.
2. Someone needs to prepare the live patches. Currently nobody in
Debian is doing that.
You could do it yourself with the right tooling (look at kpatch
and kgraft), but preparing these kinds of patches is very
complicated. (And that still doesn't solve the problem that
the current patch loading support is unsafe, see 1.)
Further reading:
https://lists.debian.org/1460472961.25201.200.camel@decadent.org.uk
Depending on whether there is movement in the upstream kernel there
is a chance this might be a thing in Buster, but it definitely
won't work out of the box in Stretch. You'll still need to reboot.
Regards,
Christian
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web