Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1598371yba; Thu, 4 Apr 2019 14:08:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcMSaykz1SB+Kb+C2MwqgjRfmJm6Zy5uNUM4Vo9tnfDO9m4RPTaWRQh4ItKDAF7LzOiYFU X-Received: by 2002:a17:902:4381:: with SMTP id j1mr8306317pld.75.1554412116921; Thu, 04 Apr 2019 14:08:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554412116; cv=none; d=google.com; s=arc-20160816; b=zNGkkxMgXyRQFOAbMlaxUQyILN7i8nC6xbJJ86LO5TR4HfUFV+xqIJKaWxDJRI7uUo GMdSrQlnGAITmlfC0N64oZ9WPG/TPBglTX/NHpbihcokTWqa96EH+2627jEmEOoPDreP 2XsoQvRoQONgfcD7DmT63Aj+Pp6rLahHdvs8Rh2REu1KIjS4cIs92VpWuP3pF8zXtSoq Nz+CEoFbmJPqmvpFj9AJiPwW8bpQBY1eNJ54o2dvMwqzEGDHxOehwWFSbIrXwGTS7fSy qrzE3PlwwVT8AhGfBZkigppv+76n3gsf2mfEYHHJqkVWahKaAVy9RYfuFC+uKyTUp+tu FiWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=QSxgxqQzHJ59W1Yy9pejVAIAs2BTHNU23LIZGcM5XWI=; b=HvP9PeQb447J1iLcFShWJ6F5hnCB+ngIfZluUI4fcWKSucJs6yWpyFxqMWN50LZDt/ an3whfzgzfH3qHnRcRY9XoAcEM/DmyVXy9YKabPgjxtFGhb8+lPQpwUaIor0hTDrs10i joprw2RBQMYB//yZv/j2Zt8i3F0xaq8JYMSw974UgGIzZCGLMr47zxR3oSRxFHgBSk2h keCVc1cOiXvFPpyd1MHybIcHeRb1lrzkSxq5GAFMxrxs+FeJdfFdFYmEwoBmrAWd219X WUMlzYIjxMnPdhPkTWuuAAWq+KVHEUDcTYZ5wfVY/fyy1bfEXFx0RKBp3uX/2xptbrk4 cDXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10si14704647plo.422.2019.04.04.14.08.21; Thu, 04 Apr 2019 14:08:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730748AbfDDUTD (ORCPT + 99 others); Thu, 4 Apr 2019 16:19:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29839 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729184AbfDDUTD (ORCPT ); Thu, 4 Apr 2019 16:19:03 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A26D130EBB5A; Thu, 4 Apr 2019 20:19:02 +0000 (UTC) Received: from treble (ovpn-125-158.rdu2.redhat.com [10.10.125.158]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E03D119C4F; Thu, 4 Apr 2019 20:18:57 +0000 (UTC) Date: Thu, 4 Apr 2019 15:18:55 -0500 From: Josh Poimboeuf To: Miroslav Benes Cc: yamada.masahiro@socionext.com, michal.lkml@markovi.net, pmladek@suse.com, jikos@kernel.org, joe.lawrence@redhat.com, ggherdovich@suse.cz, linux-kbuild@vger.kernel.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] kbuild: use -flive-patching when CONFIG_LIVEPATCH is enabled Message-ID: <20190404201855.xtvtgxaaomcmowrt@treble> References: <20190404184411.1392-1-mbenes@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190404184411.1392-1-mbenes@suse.cz> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Thu, 04 Apr 2019 20:19:02 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 04, 2019 at 08:44:11PM +0200, Miroslav Benes wrote: > GCC 9 introduces a new option, -flive-patching. It disables certain > optimizations which could make a compilation unsafe for later live > patching of the running kernel. > > The option is used only if CONFIG_LIVEPATCH is enabled and $(CC) > supports it. > > Performance impact of the option was measured on three different > Intel machines - two bigger NUMA boxes and one smaller UMA box. Kernel > intensive (IO, scheduling, networking) benchmarks were selected, plus a > set of HPC workloads from NAS Parallel Benchmark. The tests were done on > upstream kernel 5.0-rc8 with openSUSE Leap 15.0 userspace. > > The majority of the tests is unaffected. The only significant exception > is the scheduler section which suffers 1-3% degradation. > > Evaluated-by: Giovanni Gherdovich > Signed-off-by: Miroslav Benes > --- > The patch is based on master branch of the livepatching tree on > git.kernel.org. > > Many thanks to Giovanni who ran the whole testing campaign and analyzed > the results. I archived the dashboard and detailed data. If anyone is > interested, we could probably set up a public website somewhere. Acked-by: Josh Poimboeuf While we're on the subject, I'm glad to see ongoing activity on klp-convert (though I haven't had a chance to follow the discussions). What's the status of the rest of the needed bits? - kgraft-analysis-tool - will this also be submitted for inclusion in the kernel tree? - Documentation about how to create a patch - The other bits I think Nicolai has been working on to eliminate all the manual steps -- Josh