Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp690214pxx; Wed, 28 Oct 2020 14:36:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgYSJrC9nbPUkVCdXQhhWPVQyvHSExcbLbzSYifJtLmNU799fPG6W4d1RvaWcqYWm8bHzq X-Received: by 2002:a17:906:7c4b:: with SMTP id g11mr1068627ejp.469.1603921006466; Wed, 28 Oct 2020 14:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603921006; cv=none; d=google.com; s=arc-20160816; b=YEoXElDdjXd0G4Dpqj6hz5RJYeMXa+H8vKFiHjWguE/AdfJfcqGYDSDtEeAimJONDu 0LpUW8Vx1puthJ431e7Uano9UCzhAVx3Bh/MEr24Aio7qU+BQmzTXunmUn1/QqJyUeTk O4w23MD5WfCkUM582DtCOlfzbQ9UYC3cxisYipr6HNN7RXzvkLsAsDEyFpezivFf8XRO kNRt+UW3BDyy5ebLQ6axD6XKQyyJDj+PrJlgQKJMsgcicceUCTbidyOq6e4zRmlsRh3h 9ZrqAROKyNiRz3r3tZ91cwsYPTm+M8YpVx6z0AgekgsLzbMVEcMwkK6mZy9uYPsN6eje R38A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=lRZmq3kWpRJ7AxDzYsfJ3jGJvDrAet61pmfQoBn+ils=; b=tqLPmSARiOIpmpEwL2Rq1iv2FOMfPiGFXbytL3RkHa1iWiIy716ArKnOiIt3cm7wPK i73b5ldD19Zhs/pumEFIWqkPBaHIDTLemW++SyUxtBpwhYkrufb9A1qD0zMzuba/HKK9 NAJeiQU8EmdfzL1skbOALTsTK66O91s8Gw/LFzyP2GSHF4XhJyw3kAZvuLXF2E6RjbQn 5tDr/ADypV1E9c5vJQvyTRwo/e3M6oZKaOwF8VDXxnhxMzJoNWxVy0PbmobUR1N7O4GY oWzZ1t/5QF/rrhfdjs+hkvkCJSz/IxGKkTV06u5Lx6mnWeLQHGNak1RvoK6oeFzI9vKR KGRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=P5LHWXvR; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f5si534110edq.501.2020.10.28.14.35.49; Wed, 28 Oct 2020 14:36:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@oracle.com header.s=corp-2020-01-29 header.b=P5LHWXvR; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2505411AbgJ0VL1 (ORCPT + 99 others); Tue, 27 Oct 2020 17:11:27 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:38100 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2505367AbgJ0VL0 (ORCPT ); Tue, 27 Oct 2020 17:11:26 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 09RL8gCJ168382; Tue, 27 Oct 2020 21:11:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2020-01-29; bh=lRZmq3kWpRJ7AxDzYsfJ3jGJvDrAet61pmfQoBn+ils=; b=P5LHWXvRAIsaSx9WhFZC0Es1OCmbw8MWwYSR41GoCDhjrfgZ3Hb7P4oUcCWY2kD0zbwK 8uaukGj2yRaNbXW5lbtNBKzjCG6aN95xrPdPrHKs4KQGaha3rnLlVRhvl/3opDMVVb+J Ne9FfXw+W4acQegSIqQCgmabEoxCOX83q0jF1gQFzBscCOL2Jq9/jsM5YSWhu7POeUaT CRK7phLEDRZnyR726Z+AzXr30eqWLD+up7Jp3z+zS+05/Mc9S1j60EMHsNxsJz3AKGDs LHxD7DA9/smrlC6GcP+/UTfAe2hAMx/yW0Co5bf/uyP6HTmXqsBCRXWChHWq50+DS3nX dw== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 34dgm4203u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 27 Oct 2020 21:11:21 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 09RL5LL9186830; Tue, 27 Oct 2020 21:11:21 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3030.oracle.com with ESMTP id 34cx6wf1x7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 27 Oct 2020 21:11:21 +0000 Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 09RLBJEv016279; Tue, 27 Oct 2020 21:11:19 GMT Received: from ca-dmjordan1.us.oracle.com (/10.211.9.48) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 27 Oct 2020 14:11:19 -0700 Date: Tue, 27 Oct 2020 17:20:34 -0400 From: Daniel Jordan To: Nico Pache Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, steffen.klassert@secunet.com, daniel.m.jordan@oracle.com Subject: Re: [PATCH v2] Remove __init from padata_do_multithreaded and padata_mt_helper. Message-ID: <20201027212034.qiwk34ihwsdwlqv3@ca-dmjordan1.us.oracle.com> References: <20200702155548.14690-1-npache@redhat.com> <20200708195140.hioiltf7pwppz6j7@ca-dmjordan1.us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200708195140.hioiltf7pwppz6j7@ca-dmjordan1.us.oracle.com> User-Agent: NeoMutt/20180716 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9787 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 malwarescore=0 mlxlogscore=999 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010270124 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9787 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 impostorscore=0 adultscore=0 bulkscore=0 spamscore=0 phishscore=0 mlxlogscore=999 suspectscore=0 clxscore=1011 mlxscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010270124 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 10/27/20 12:46 AM, Nico Pache wrote: > On Wed, Jul 08, 2020 at 03:51:40PM -0400, Daniel Jordan wrote: > > (I was away for a while) > > > > On Thu, Jul 02, 2020 at 11:55:48AM -0400, Nico Pache wrote: > > > Allow padata_do_multithreaded function to be called after bootstrap. > > > > The functions are __init because they're currently only needed during boot, and > > using __init allows the text to be freed once it's over, saving some memory. > > > > So this change, in isolation, doesn't make sense. If there were an enhancement > > you were thinking of making, this patch could then be bundled with it so the > > change is made only when it's used. > > > > However, there's still work that needs to be merged before > > padata_do_multithreaded can be called after boot. See the parts about priority > > adjustments (MAX_NICE/renicing) and concurrency limits in this branch > > > > https://oss.oracle.com/git/gitweb.cgi?p=linux-dmjordan.git;a=shortlog;h=refs/heads/padata-mt-wip-v0.5 > > > > and the ktask discussions from linux-mm/lkml where concerns about these issues > > were raised. I plan to post these parts fairly soon and can include you if you > > want. > > I really like the speed benefits I've been able to achieve by using your > padata multithreaded interface in the branch you linked me to. Do you > still have plans on moving forward with this upstream? Yes, I'm still planning to push these patches upstream, but it's going to take some time with all the prerequisites. I'm working on remote charging in the CPU controller now, which is the biggest unfinished task. A little background on that here: https://lore.kernel.org/linux-mm/20200219220859.GF54486@cmpxchg.org/