From patchwork Mon Jun 5 13:11:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 13267361 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7885AC7EE23 for ; Mon, 5 Jun 2023 13:11:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231840AbjFENLj (ORCPT ); Mon, 5 Jun 2023 09:11:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233405AbjFENL3 (ORCPT ); Mon, 5 Jun 2023 09:11:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B976E6; Mon, 5 Jun 2023 06:11:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BCA8B61380; Mon, 5 Jun 2023 13:11:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD6DEC433D2; Mon, 5 Jun 2023 13:11:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685970679; bh=SI9HoG9+koDF4RD/XUOQrZv2tgN83UZUnipQ5clChLU=; h=Subject:From:To:Cc:Date:From; b=T9UTWdM9av/xFNw6HRoR21B1gIebR4oEWWrOo4SmJbifxQ3v1k3uXevjtO9soNN9Q nwlf3Bl+sh8Njuz0SEgW4j8wP0AEBZa9D8F6u4ySS3vmbLk/DhI6OsDOOfZbiENlA2 Y+mnQWsY5nQ3ofewGXKbp2Lf6EYywdqgThlOXP/ckBNrjRIFq5GvdX4VsEZXqOdofX NqyKWOH8JMiYcvNaWDEdDrCmnDif4wkZr5lR4AUqX4uEMopgieAmon51gdaah3HvDM c2fK9WxlkVC29x3VHEjWI4Yl2zrEifoNlO4vX2KpT/3D9ar/DMVhCf4GXzHNsCHEXV D4djSZsI1/Cqg== Subject: [PATCH v1 0/4] NUMA memory optimizations for NFS/RDMA server From: Chuck Lever To: linux-nfs@vger.kernel.org Cc: Chuck Lever , linux-rdma@vger.kernel.org, tom@talpey.com Date: Mon, 05 Jun 2023 09:11:17 -0400 Message-ID: <168597050247.7694.8719658227499409307.stgit@manet.1015granger.net> User-Agent: StGit/1.5 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Ensure that memory for various purposes is allocated on the node closest to the underlying device. Using the device::numa_node field guarantees the allocation is performed from the correct node. --- Chuck Lever (4): svcrdma: Allocate new transports on device's NUMA node svcrdma: Clean up allocation of svc_rdma_recv_ctxt svcrdma: Clean up allocation of svc_rdma_send_ctxt svcrdma: Clean up allocation of svc_rdma_rw_ctxt include/linux/sunrpc/svc_rdma.h | 1 - net/sunrpc/xprtrdma/svc_rdma_recvfrom.c | 18 +++++++----------- net/sunrpc/xprtrdma/svc_rdma_rw.c | 10 ++++++---- net/sunrpc/xprtrdma/svc_rdma_sendto.c | 9 ++++----- net/sunrpc/xprtrdma/svc_rdma_transport.c | 18 +++++++++--------- 5 files changed, 26 insertions(+), 30 deletions(-) -- Chuck Lever