Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp449177pxv; Thu, 8 Jul 2021 06:20:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpbEPdaNAl6Hb1CIh7kZzTFiITu6vKAgp2DwdstMnSZZd2f0FN10vhk/jW0kSgH3mb1CD+ X-Received: by 2002:a6b:6016:: with SMTP id r22mr19433476iog.12.1625750456383; Thu, 08 Jul 2021 06:20:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625750456; cv=none; d=google.com; s=arc-20160816; b=NBVhVKeWj5gdZIOO6WvWDqljIAxOl/gAfiqaKHAqQctvY2eDnHHK86DseaU3Fo1mbv M49glEdf8jzRurgF72DUwuKfQYknSY9GCDy34Uw1knmTFFtjcxe9AtoSc3iD7VYpPKXG zTvDZojb3VjOEz8jF6IYXLjNqO+94g1quTtDJ30eMvPna4Nxvr+86l1/LEY3qdmbA/Af U4E1ox1IjSH9Tq+zRrH2qrVkaeeDLIc5dUAR1g27LwnXXyXfA2Nztv67ia5lLaE7a4lH lpPl2x43WEf7bfr0PhW3s0iV1siOxbnlBWIpncueXojsxaz0+oXWDK0MnBKxT/7ZqAYl dyyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=a6ht9fWcftbDkY/phtJSvy+Xk8N90i08AhnE9h0GppI=; b=RKjbY/IPyZbdu4/cLEkNK2cK1fIjlr6Acc+120B2lzNDTWTW3FEQjNJW/9sSa3MXPp 9VmlO7dM3bLNl8t2UG+d5FaUBZIPFdIOe8zpxog2zqbUJmFORSDEpQAEUUvQ/488gLYu lr5L8HBxrO+GYHwETT06i5hOqXqnaEEutjjOCVgQ3Q+m9rySNkL1qgOU1QghXWrykecy qQx6Yg1Lc5do1AX0KRsi+VfKnCiF/SmQp8O2BPJ4+gfrBRTgghVWt5dHsFi0t6hCRCHJ gksRigJomWYO32YBQYN4j7GC9BUWY5YWoSH1wAH4zHQKgWxG8lEjQTaiTqTPPv4g/qnO hNFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=d7l5jf2+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k14si2138054ion.22.2021.07.08.06.20.40; Thu, 08 Jul 2021 06:20:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=d7l5jf2+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231679AbhGHNWW (ORCPT + 99 others); Thu, 8 Jul 2021 09:22:22 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:62224 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230254AbhGHNWW (ORCPT ); Thu, 8 Jul 2021 09:22:22 -0400 Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 168D3Rc4089316; Thu, 8 Jul 2021 09:19:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=a6ht9fWcftbDkY/phtJSvy+Xk8N90i08AhnE9h0GppI=; b=d7l5jf2+soU8x5cVsHPm7dAMvaArXX6pc+8EcXWymu1wXxT7jes347l48KQSjs7Xbj7p T4ctt8xuP9J1Ur625X6oeBR7wQXTAzdd9vvxiqac1OjJw+WpwyxnZl/D2rrVRCpEJwnv QefvH3J4NQBVCK2oH5NosWesbrsTGvi7ultTLyMWig5VNFiG5dxc2g5qzg0mJ+Ckbn7v ST+cSXEwQpZmEiF+lLlkXK6THqYqoztLjTqXU7hImAeWE6ll99KxRj/YP9etf+bafCil 2kOm3FYvMhyaqWiFvHv817dL/NjLq9oPq0/XIODGAo3Ga7FHJT2amm0x2EuMdSEDKh1K ug== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 39nvwktgb4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Jul 2021 09:19:33 -0400 Received: from m0187473.ppops.net (m0187473.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 168D4LnT096113; Thu, 8 Jul 2021 09:19:33 -0400 Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 39nvwktg9r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Jul 2021 09:19:32 -0400 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 168DI163032626; Thu, 8 Jul 2021 13:19:30 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma06ams.nl.ibm.com with ESMTP id 39jf5ha7mt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Jul 2021 13:19:30 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 168DJR3i32571902 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 8 Jul 2021 13:19:27 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5B78AA405C; Thu, 8 Jul 2021 13:19:27 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id ED4E5A4064; Thu, 8 Jul 2021 13:19:26 +0000 (GMT) Received: from localhost (unknown [9.145.63.161]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 8 Jul 2021 13:19:26 +0000 (GMT) Date: Thu, 8 Jul 2021 15:19:25 +0200 From: Vasily Gorbik To: Petr Mladek Cc: Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Joe Lawrence , Heiko Carstens , Sven Schnelle , Sumanth Korikkar , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH] livepatch: Speed up transition retries Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-GUID: lxzj2KDpD46u5wge5zXY5J3QylFjfmNy X-Proofpoint-ORIG-GUID: NCshRIEWHdJVf9H4EktqHfA6qhl1xzke X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-07-08_06:2021-07-08,2021-07-08 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 impostorscore=0 lowpriorityscore=0 adultscore=0 mlxscore=0 suspectscore=0 phishscore=0 clxscore=1015 spamscore=0 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2107080073 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 08, 2021 at 12:35:24PM +0200, Petr Mladek wrote: > On Wed 2021-07-07 14:49:41, Vasily Gorbik wrote: > > That's just a racy hack for now for demonstration purposes. > > > > For s390 LPAR with 128 cpu this reduces livepatch kselftest run time > > from > > real 1m11.837s > > user 0m0.603s > > sys 0m10.940s > > > > to > > real 0m14.550s > > user 0m0.420s > > sys 0m5.779s > > > > Would smth like that be useful for production use cases? > > Any ideas how to approach that more gracefully? > > Honestly, I do not see a real life use case for this, except maybe > speeding up a test suite. > > The livepatch transition is more about reliability than about speed. > In the real life, a livepatch will be applied only once in a while. That's what I thought. Thanks for looking. Dropping this one.