Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp456724pxf; Thu, 25 Mar 2021 07:43:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYsmVN2TasI1r0To2/4sKnafpay8YjZWYE3GJJxrrxjDu3MEw4nl+LgV3ckJkzcc1pvxAp X-Received: by 2002:a17:906:7c44:: with SMTP id g4mr9727835ejp.269.1616683433086; Thu, 25 Mar 2021 07:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616683433; cv=none; d=google.com; s=arc-20160816; b=HeQGM9ATx32s9LlelmPm66kE5BAw4qeoAUjtFJxYiRLI3eYVZf5LLhNoSVAjVTycML mJBlTRIOlPR1d3Vzd0d/cokto7lwdUGt4aG2ugPCHjJg7IqW5xCl+IzevqMRXPOH9hwn JIffIu1dxOkG4jKk+9WSH7qA4/y9WPdt/C/PTsXBx1FdTJAHYLsT4J2xRvKZws8YBDH3 RO0STjFD5+EjLCN0k+JHOrJqC+fTNQtlFqKrSqR8U008PlatGy2GZ5Fjj/pGKo9ceUov FFYeQBzeKK2UERQ6PU3K0kBAR1tNeDCerSAbUb/6yDAx66ZM+nOxsh8VKRzvYtltrbPx 0ZqA== 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=6iXLF/lKSG8S51IUrl5KoCZW79Du1xNlnz6N6/Diyn4=; b=H3WqFalfOuP35NUUWXaUjOewWw/lZoJSU8Y+fGRCvhfOOuFgDraE9FVTsedTD1U0Zy L+12vFCP/fIifB4CtLUqHcp1ujzTich52bXDLDglFqmfFVq9Ak5P9eZEnbO6fm/vnaV0 sxNMPl1XNR1FfsSV+1J8/ZRO/HexngpE2NP7Mom3348bfEJ+j8urKPCXpxNHWfjU3mKZ tgkhkVq5Qg+LIu1IRXK8DAsfUAx1h/4d/oLfktsOIHZKjKc5MKWcqb2EObt1Y3L12d+7 aMRhSdLS1UQzLVFDM6XUXs6xJ3JM4AxDkSdF8xn4aAfbEOt/iYTtXWQZtNGzGJyuEH2Z ZidA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="mJ0/eVxl"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qt26si4315338ejb.216.2021.03.25.07.43.28; Thu, 25 Mar 2021 07:43:53 -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=@ziepe.ca header.s=google header.b="mJ0/eVxl"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229731AbhCYOjx (ORCPT + 99 others); Thu, 25 Mar 2021 10:39:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231211AbhCYOjb (ORCPT ); Thu, 25 Mar 2021 10:39:31 -0400 Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 079EBC06174A for ; Thu, 25 Mar 2021 07:39:31 -0700 (PDT) Received: by mail-qt1-x830.google.com with SMTP id m7so1750716qtq.11 for ; Thu, 25 Mar 2021 07:39:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=6iXLF/lKSG8S51IUrl5KoCZW79Du1xNlnz6N6/Diyn4=; b=mJ0/eVxlyR5iEOAhqAIyhEp8iJaZZoKGL9mo9LeKqskmGim8MQCxW/vE49ORAaoi9o PYSyPhswm0JKFEdhb2Q+Msn5dNWpQJBZnN68QL1gtHEoVfoDDZ+JM8YytOH/ndrRRfhs SS5GuFcdsYqRucVnpe+73VvdEXaDMO9FkqfT7xoydiDq52yxko+FDCssdThCAQWzrHPv mR+NCglz5hvRmMcjf4JwDMsqX6SjzbOTDsPMAp5X5lr9FQ4iYmpxz/q7/pQpAk7ABkBR q12p0o/PM0ucHPgv9YP3K8mFlB63AboI6/9zSnuBpCu6V4s5KNgxz6Ed3rbZTVa2gjDB 8Ieg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6iXLF/lKSG8S51IUrl5KoCZW79Du1xNlnz6N6/Diyn4=; b=d3vOLsXDAgwLDGH+uezd88oSKY6BRvfX8ua7n0swZEGMBz+QIf0mlcMI+jCEfK/npP 8ct2dJFJ+HSZE3yQVReIjtWC94USM92mAuXVwsmo39pmknZQnPSOLPTmMWJckClGi7bP dWU1U5OmIzEbmyZHLuVBP+oxovUHrc5DneYwHO7Z5DsO+DxahYNGW9S4xI1HeSu3A1Rn EsPPcFRdxYP01heTAEKJLbvlcLDn9BkTV2huwQtvn94TEs2EOxuCSJWaQqyDR6CWFSe9 8uvva3kDyjti0l6b8bAJw/us6imT/jLe/RrRfJ7tTPG5ThNAdbD7/PKW8U0YWnV7qgza 6m0g== X-Gm-Message-State: AOAM530zu2CMM2KrT6yiwBdVM+wiKfz2jD89wfbph2lKNHREiM08ROIF MAqZWqc+UNyUBTApAsjmNnOevQ== X-Received: by 2002:ac8:5e8a:: with SMTP id r10mr8045937qtx.13.1616683170204; Thu, 25 Mar 2021 07:39:30 -0700 (PDT) Received: from ziepe.ca ([206.223.160.26]) by smtp.gmail.com with ESMTPSA id v7sm3536639qtw.51.2021.03.25.07.39.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Mar 2021 07:39:29 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1lPR8y-002fsw-N6; Thu, 25 Mar 2021 11:39:28 -0300 Date: Thu, 25 Mar 2021 11:39:28 -0300 From: Jason Gunthorpe To: Aruna Ramakrishna Cc: Praveen Kumar Kannoju , leon@kernel.org, dledford@redhat.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Rajesh Sivaramasubramaniom , Rama Nichanamatlu , Jeffery Yoder Subject: Re: [PATCH v2] IB/mlx5: Reduce max order of memory allocated for xlt update Message-ID: <20210325143928.GM2710221@ziepe.ca> References: <1615900141-14012-1-git-send-email-praveen.kannoju@oracle.com> <20210323160756.GE2710221@ziepe.ca> <80966C8E-341B-4F5D-9DCA-C7D82AB084D5@oracle.com> <20210323231321.GF2710221@ziepe.ca> <0DFF7518-8818-445B-94AC-8EB2096446BE@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0DFF7518-8818-445B-94AC-8EB2096446BE@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 23, 2021 at 09:27:38PM -0700, Aruna Ramakrishna wrote: > > Do you have benchmarks that show the performance of the high order > > pages is not relavent? I'm a bit surprised to hear that > > > > I guess my point was more to the effect that an order-8 alloc will > fail more often than not, in this flow. For instance, when we were > debugging the latency spikes here, this was the typical buddyinfo > output on that system: > > Node 0, zone DMA 0 1 1 2 3 0 1 0 1 1 3 > Node 0, zone DMA32 7 7 7 6 10 2 6 7 6 2 306 > Node 0, zone Normal 3390 51354 17574 6556 1586 26 2 1 0 0 0 > Node 1, zone Normal 11519 23315 23306 9738 73 2 0 1 0 0 0 > > I think this level of fragmentation is pretty normal on long running > systems. Here, in the reg_mr flow, the first try (order-8) alloc > will probably fail 9 times out of 10 (esp. after the addition of > GFP_NORETRY flag), and then as fallback, the code tries to allocate > a lower order, and if that too fails, it allocates a page. I think > it makes sense to just avoid trying an order-8 alloc here. But a system like this won't get THPs either, so I'm not sure it is relevant. The function was designed as it is to consume a "THP" if it is available. Jason