Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4186468pxb; Mon, 8 Feb 2021 09:55:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZfwGwdvPJTMCiOZILHWizbCK9sb6SjGdOw5Ej+Sy7f1VvGq2A9aAAaDKLbrJZTOUzfiJP X-Received: by 2002:a17:906:4cd3:: with SMTP id q19mr17410883ejt.78.1612806943484; Mon, 08 Feb 2021 09:55:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1612806943; cv=pass; d=google.com; s=arc-20160816; b=yKdHOZEZui8zmfHXI9n9gViNC0fLKrbfV+PXzNvimMoI7xYhA2HUR4e2GD0/KhFEud yI93fhz4sGShHh2LsoeA+seCVr6CJ1ZBP6MV3xmD2tF8Tau5lh/dM+CqvhqDcqa9phf/ Og2P0+3LrvT0Zzpz4F+Ul8HzwdIIMLsMv39OGVGcRZw/Rt/KeeTlQzdHzcGuCm4CxsBA RZ0FfsmeV72ga3D019zgEK48pSKf+dOKlzolp//YUU7rjDyC5YLdtW/a7tcu6ZUGTruR /PbiVl+aetPGCdGbq4+8cFUJF+06m5a5ceXr4iYMH0X4OqlgEiSd08QJufq5HPYLSn+9 7uSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :dkim-signature; bh=8mNP1UlXr0U0hk5bgJ43TIv2fCUzZQGaprToya/rHQU=; b=UD2qvH4jS0DAkFJ3hl7Yni3pkw7AvCDz8ULRyo+edCYzebMGASNk6AqMkN+ZoWl0Xp Jq5Dn5errXzlyLhbcpl9j/8bL/7kDOV0Clk6a9D364mP+3Kj1yQlJuPxKPHMwzOmw/hS F71oyWKF8EmtTdA4MU3x7lI+Nw2WhS/jansfLgY/vuHmqeZr/eZNRQm+8OlRpa88fBNV tBTM38Wk2EroRya5GqFqUydD2xvxJhyr+V8II89tb6T45MW7SDlk/yLkXNg6uEPAJt3P 775eArxBxYx9QVfMvG9x1COTnlGGPQHWdmvLiWVRrVFOUN1jo7yHnurKjfVReFWO+V50 VJ5g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=xDTaXXoG; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="bAKtXWz/"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 p12si11001446ejb.496.2021.02.08.09.55.17; Mon, 08 Feb 2021 09:55:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-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=xDTaXXoG; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="bAKtXWz/"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 S232499AbhBHRwg (ORCPT + 99 others); Mon, 8 Feb 2021 12:52:36 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:37248 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235026AbhBHRvq (ORCPT ); Mon, 8 Feb 2021 12:51:46 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 118HiVmK088748; Mon, 8 Feb 2021 17:50:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : content-type : content-id : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=8mNP1UlXr0U0hk5bgJ43TIv2fCUzZQGaprToya/rHQU=; b=xDTaXXoGrRrxQ5hevKW4/yE0HdiDoHoB0jGfpju6+yf/E1jYt7eKaOtMPZQVFIS0fXve KhBOgbu/MPX95CpfrdXVvCMiAACS6s4F6mrF0R6+jani/NpR+xuFqjMWlYJADHp2jpgY sqJQ1JJQRjHRfUizB6oGQdZwR9VoJenXNx/Ln9ZokZ++mIEGA/H85QI7TEa3wzJkmRhc XSIZs/lik9pqnnAbhzG81PjLMRDNWrr/uDa1bVFUAAU0xTS1dYGAcjGtrKwjqHHJ9PIX /VijgFDwRUCSeGJ1mCqkEQSXvonIrJZbry+Zfmh+VX6fPQyAqFf1awAt38LyvMTtDfoC aQ== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 36hjhqmss3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 08 Feb 2021 17:50:54 +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 118HiurV090689; Mon, 8 Feb 2021 17:50:54 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2107.outbound.protection.outlook.com [104.47.58.107]) by userp3030.oracle.com with ESMTP id 36j51uyspp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 08 Feb 2021 17:50:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i2PGL4uLPl2FLhBYg2FZKh4F/o/SbBFu+hhfcdDhVSHb1k14TIQqqWP9xF0SnzQoBSLs6IzFiuYhRbFuODXeAdo8VpNhX8P/QZzc3IRQmSD5oa7BgFZNE05yJjGN1CeojmL44BHiZoKX4ukIVPeLGXm31fmtoWt7BInTZ2/8JP4zxeaknDTw1V5heqrQ8e/y52lOh0dlYqR1NkyE4u5GafryegiiLT81uDPJ2YpBBCnZ/1V7fSXUsVyq6CmPtEVydmAV+b42xHG0fI7WaeSRIKvWxqA049b1IpxkWk5Tprw8N0ZARxsV19O43SCMxxrSBmQJNjp99LrZPIGtG/trhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8mNP1UlXr0U0hk5bgJ43TIv2fCUzZQGaprToya/rHQU=; b=GMeyPHUx0A4Ss2DitfFJxUMYKbuh6g8exNMwBTa0EmiArGY5vSOBoFHmkz3Gf8jbC/PeNvkK2pm2FOrcsR2dm8cR95kr/rskF52xNHlSA1Xg5z2xjjcPMaYe5JsZv5tYv8MdRgDlFTkPYknkhHjf8MjcqkGFKOKDnZi8LBIvZe500nYpU0T/9j/vaOhaOq9xt6exR6schANchhNy/4FyfvXmFYMLidGP3UGfi750JP7GkKH8eGn+AmvrAgcLz/QKo5OYmBWuWR13/BmkbvEz1GpgkiIFl9awfrAnJEliREaiGOaT3DZu9FL/yx3ezFyBLz5A+MHA70oOSllNwNjP6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8mNP1UlXr0U0hk5bgJ43TIv2fCUzZQGaprToya/rHQU=; b=bAKtXWz/CN+92L6gV9WlPcw5GjZp859/50HeuyBxz1V4oAX/Pn9mQhvTi9ZBKSGrImWMks3gvynWDUUAZTg9CtimSCNHyL7l0qpY5IbXa26fv/+3BMQS1oOPcqqNf3KyZIuZLFXLzbXY4pB4IJm1yLAaep6kvAFs0e3zrVLh2Jo= Received: from SJ0PR10MB4688.namprd10.prod.outlook.com (2603:10b6:a03:2db::24) by BYAPR10MB3335.namprd10.prod.outlook.com (2603:10b6:a03:15d::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.24; Mon, 8 Feb 2021 17:50:51 +0000 Received: from SJ0PR10MB4688.namprd10.prod.outlook.com ([fe80::6da8:6d28:b83:702b]) by SJ0PR10MB4688.namprd10.prod.outlook.com ([fe80::6da8:6d28:b83:702b%4]) with mapi id 15.20.3825.030; Mon, 8 Feb 2021 17:50:51 +0000 From: Chuck Lever To: "mgorman@suse.de" , "brouer@redhat.com" CC: Linux NFS Mailing List , "linux-mm@kvack.org" Subject: Fwd: alloc_pages_bulk() Thread-Topic: alloc_pages_bulk() Thread-Index: AQHW/jD1lENfvnr+s0+/RnBes7PyXA== Date: Mon, 8 Feb 2021 17:50:51 +0000 Message-ID: References: <2A0C36E7-8CB0-486F-A8DB-463CA28C5C5D@oracle.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: suse.de; dkim=none (message not signed) header.d=none;suse.de; dmarc=none action=none header.from=oracle.com; x-originating-ip: [68.61.232.219] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2096be66-3fd1-4b15-14d5-08d8cc5a134a x-ms-traffictypediagnostic: BYAPR10MB3335: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: SodmqH4X1/VJ2rfG6ntNIlXnmVPGE084ImppmDpszoqCfoW0fNUpJKLz+DgbLP9/ZE44HdNpKWKPWCuVomQCF8f59uMeR51dLpWDevuFBRgqDoix4J7PJi6wPuZV2a8siI9FwOL9jIYUb/3gJZ99X6lz63+2ih3vUO9YbuuP4cyNLOP6zZAEzDATyndWEGWtBKRWBLpBvkuDG/YV8clYpn/F5qFwimPFtjrXXJGTgOdI6q8w2/AGLCVarCZzQQQHo278lxC0IOZSMYpq2zvJc4o+4jwczpugA3Y/ZYMC+DF3NnRj/zSk/HGUb5SYtBkmhPsWzoRgYhItx0yr5Fc9AIaBDUr8gu6F3wwpLiVA/87vDkY9wkvYafK0dZdIEZiWQflqPf6b5weoyYM8Mqjy1P2/7d03+ZYOWCo8OMGEpUGAF50g3MhbwXNMVKSRP5w62q6/W7ZJI06x2SYHvCQ710dxqrO19MoyowoCDtaQ4958u7iJ04v9neXaLnc9Fy6PTi+qcq7ubEQdI9m20zmIbwsj5WHDwiYraFMD55/Zud3bx0/THaYKG5yn/sORtVhrf1knvGDEtkiq96g6zqVeW8Oo9rvJN3sQBNNFxSuelGlnFC2yhpZz2bDleiyBD0ZRR34+dsdsGqPMBynRA8EopoO5tLM2QLVki+ni3+ahM/w= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR10MB4688.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(136003)(396003)(39860400002)(376002)(346002)(366004)(66476007)(66946007)(7116003)(66446008)(91956017)(66556008)(76116006)(64756008)(966005)(36756003)(2906002)(8936002)(83380400001)(478600001)(5660300002)(186003)(316002)(2616005)(6506007)(54906003)(110136005)(6512007)(26005)(33656002)(86362001)(71200400001)(6486002)(44832011)(4326008)(8676002)(45980500001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?nvsXzYImw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B0fqwE+5pgqZJx?= =?us-ascii?Q?xZ9E36cHGv9y11TDocsPLiKjqeWoHAA3RIj6n9FvdmueWNpnxBkPCx18ZzIB?= =?us-ascii?Q?Y0TwcXVBeTsA1Q1IKeWlZ4SuJAsrFnogIfd4w0Qiwz7BQOF771tv0ZvQE1r3?= =?us-ascii?Q?uh9DWfNHpifXzWET/+ozsJ/IwQUzQHvuzTcmcUejT7jWq8g+oXuVohfiwWay?= =?us-ascii?Q?IJt5wpgY6CwiVSFFxCQG9IZIUvMlzIBX34wxcBNyniADUhV3Cyhf6z87XTV9?= =?us-ascii?Q?wYYylnjP1oOvC9dCyThK7N6WBF/CxKld4PiKLsveWIQyK7qz7GTiI082Rrh6?= =?us-ascii?Q?EUlQkzQ5lYV9ife0MwkTAojp87LDlW+YiMBugzyRI3BpgHkGwnNyoB2H70pi?= =?us-ascii?Q?yYYBEoq2JUV9m6cnxFx4zhR3UVfXot0ix0Z/19WV2yY0PwzV1glhno8YzX6u?= =?us-ascii?Q?9ONIzHGNXo2S6g8GQfSyr0W+?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <95BB4FCF69F5CB44AC61BEA102D8BB48@namprd10.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB4688.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2096be66-3fd1-4b15-14d5-08d8cc5a134a X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Feb 2021 17:50:51.4594 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ArZRKU6SuaqYhbe9p1q2yKHa7LUsNYo8HshX7S4uEb0JU1yiPnoSq5S/GcNeRUkwmFF4CkUSyWutLP6gu6nS0A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB3335 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9889 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 spamscore=0 phishscore=0 mlxscore=0 malwarescore=0 mlxlogscore=999 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102080111 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9889 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 impostorscore=0 priorityscore=1501 bulkscore=0 suspectscore=0 mlxscore=0 phishscore=0 lowpriorityscore=0 mlxlogscore=999 clxscore=1011 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102080111 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Sorry for resending. I misremembered the linux-mm address. > Begin forwarded message: >=20 > From: Chuck Lever > Subject: alloc_pages_bulk() > Date: February 8, 2021 at 10:42:07 AM EST > To: "mgorman@suse.de" , "brouer@redhat.com" > Cc: "linux-mm@vger.kernel.org" , Linux NFS Mail= ing List >=20 > Hi- >=20 > [ please Cc: me, I'm not subscribed to linux-mm ] >=20 > We've been discussing how NFSD can more efficiently refill its > receive buffers (currently alloc_page() in a loop; see > net/sunrpc/svc_xprt.c::svc_alloc_arg()). >=20 > Neil Brown pointed me to this old thread: >=20 > https://lore.kernel.org/lkml/20170109163518.6001-1-mgorman@techsingularit= y.net/ >=20 > We see that many of the prerequisites are in v5.11-rc, but > alloc_page_bulk() is not. I tried forward-porting 4/4 in that > series, but enough internal APIs have changed since 2017 that > the patch does not come close to applying and compiling. >=20 > I'm wondering: >=20 > a) is there a newer version of that work? >=20 > b) if not, does there exist a preferred API in 5.11 for bulk > page allocation? >=20 > Many thanks for any guidance! >=20 > -- > Chuck Lever >=20 >=20 >=20 -- Chuck Lever