Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752056AbbBVKev (ORCPT ); Sun, 22 Feb 2015 05:34:51 -0500 Received: from mail-wg0-f54.google.com ([74.125.82.54]:65115 "EHLO mail-wg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751308AbbBVKet (ORCPT ); Sun, 22 Feb 2015 05:34:49 -0500 Date: Sun, 22 Feb 2015 11:34:44 +0100 From: Ingo Molnar To: Jiri Kosina Cc: Vojtech Pavlik , Josh Poimboeuf , Peter Zijlstra , Andrew Morton , Ingo Molnar , Seth Jennings , linux-kernel@vger.kernel.org, Linus Torvalds , Arjan van de Ven , Thomas Gleixner , Peter Zijlstra , Borislav Petkov Subject: Re: live kernel upgrades (was: live kernel patching design) Message-ID: <20150222103444.GA24800@gmail.com> References: <20150220194901.GB3603@gmail.com> <20150220214613.GA21598@suse.com> <20150221181852.GA8406@gmail.com> <20150221191607.GA9534@gmail.com> <20150221194840.GA10126@gmail.com> <20150222084601.GA23491@gmail.com> <20150222094639.GA23684@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150222094639.GA23684@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2092 Lines: 61 * Ingo Molnar wrote: > - implement live kernel upgrades by: > > - snapshotting all system state transparently Note that this step can be sped up further in the end, because most of this work can be performed asynchronously and transparently prior to the live kernel upgrade step itself. So if we split the snapshotting+parking preparatory step into two parts: - do opportunistic snapshotting of sleeping/inactive user tasks while allowing snapshotted tasks to continue to run - once that is completed, do snapshotting+parking of all user tasks, even running ones The first step is largely asynchronous, can be done with lower priority and does not park/stop any tasks on the system. Only the second step counts as 'system stoppage time': and only those tasks have to be snapshotted again which executed any code since the first snapshotting run was performed. Note that even this stoppage time can be reduced further: if a system is running critical services/users that need as little interruption as possible, they could be prioritized/ordered to be snapshotted/parked closest to the live kernel upgrade step. > - fast-rebooting into the new kernel image without > shutting down and rebooting user-space, i.e. _much_ > faster than a regular reboot. > > - restoring system state transparently within the new > kernel image and resuming system workloads where > they were left. > > Even complex external state like TCP socket state and > graphics state can be preserved over an upgrade. As far > as the user is concerned, nothing happened but a brief > pause - and he's now running a v3.21 kernel, not v3.20. So all this would allow 'live, rolling kernel upgrades' in the end. Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/