Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2495641pxf; Sun, 4 Apr 2021 03:46:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwc1yqm2GsjWNamhkrzYjPOCJPgdPIx5olLmM7OpBfixS4qpZBRmw8J16clShbyHTG0ynii X-Received: by 2002:a17:907:1749:: with SMTP id lf9mr22941066ejc.174.1617533196439; Sun, 04 Apr 2021 03:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617533196; cv=none; d=google.com; s=arc-20160816; b=e6xYkQAhYHmV3NKSm4HdAuE1Mz5qaONNm1nZnroGWqO+d9P0vFwXyc+xYNUqiy5y7p Js9zJIP3ILIi3yN70WTs3Fsp/7zcbFc1bD4igWpZ+8wA9sIvLXkpDdAzzdwtGBlQqFeO Cb0XiFyEP7F+aalhGanQZmmsxCi3CDsQsNlvkbWKJh5uzmf5eIP1pnkO4B4LemP+oixp 20Rr7jh/5SrqFZYrhEoNvhLKKEue7cHal+3HOgepnMVstCyMKRqaAlmjCqthBHNeg46r KNVayXjeH8fR3K+EX5f1ihpZ02wE8qqJBfU7MM5+DbjKHoXcxiqHM8qkFkzNqcbS1i0K ZqAw== 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=mJ1XXt7srzAVgPOFG7+K+twPSvGk1r71DcR6wUV2xvU=; b=kDm6YxKF51Jtlnk0CVg3IzucpElDtUswZPIpdF5lNMmVCt/YTLfH0XDIcoeiSNYPtu vOz3wCIQ5yR7QbSOmzXoBuwXsF2cFZHm9S8+CjU4Co22dOHgtUaEQmAjwdMkTBYGY3tP Qu7rBMTxBxUtzI9tgSi3Mkp+drhix7biKeQm1O5I1yFQQmADiwTN6k3RaTH/fwYe+meR dm0N3Vzz+P06S340t1L5q0Mg7mUL/yGoe6eJQvwnsQ2JP7/xehPoW42jSu8HvHrOUdrg kRW117PrTEzhAphyjg+C60yt5pgNTemIohk4RlNHSdrh7G3D4im/nXGy5uAx/wk4emAb fdfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="PGxH1Xr/"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l1si11007242ejh.597.2021.04.04.03.46.14; Sun, 04 Apr 2021 03:46:36 -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=@kernel.org header.s=k20201202 header.b="PGxH1Xr/"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230381AbhDDKiD (ORCPT + 99 others); Sun, 4 Apr 2021 06:38:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:53798 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229678AbhDDKiD (ORCPT ); Sun, 4 Apr 2021 06:38:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2770C61364; Sun, 4 Apr 2021 10:37:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617532678; bh=V25n7n438uf2ugxUDPB9a9+bPTmE0/0C8xQOOxJ6MLo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PGxH1Xr/PROEzkwiePjXMtzq0P7Xofq23LiqAY1u4+sacaRIjrBOxwwk+Mnpzlh5C yBYat4y2a1iVTJaciM32lz/ni12N3V6y/8x3yhgmTfXzTIsNebN+8WfPhezZgeXGt/ 5WRYy/zi5/NmNKsFgZ+PEmY/9WW53pFCeiabfjYWwdPZvvoFqWIK/Xt1EFKhnLOpAI T0cvjUUruahAvmrAo/dQPAaqwRbQK7483uD3vUmGZLM191yl5O7sSpyqsp+Io1b/T8 1Jpy2dl01lxDUkxjaiwGKdiA51Pfu7ktRbvhq5C0kC/LWAI8o6l3ppWu7HDJrTzTHV 6G2iJ6jzak8gw== Date: Sun, 4 Apr 2021 13:37:55 +0300 From: Leon Romanovsky To: Praveen Kumar Kannoju Cc: dledford@redhat.com, jgg@ziepe.ca, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, rajesh.sivaramasubramaniom@oracle.com, rama.nichanamatlu@oracle.com, aruna.ramakrishna@oracle.com, jeffery.yoder@oracle.com Subject: Re: [PATCH v3] IB/mlx5: Reduce max order of memory allocated for xlt update Message-ID: References: <1617425635-35631-1-git-send-email-praveen.kannoju@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1617425635-35631-1-git-send-email-praveen.kannoju@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 03, 2021 at 04:53:55AM +0000, Praveen Kumar Kannoju wrote: > To update xlt (during mlx5_ib_reg_user_mr()), the driver can request up to > 1 MB (order-8) memory, depending on the size of the MR. This costly > allocation can sometimes take very long to return (a few seconds). This > causes the calling application to hang for a long time, especially when the > system is fragmented. To avoid these long latency spikes, the calls the > higher order allocations need to fail faster in case they are not > available. In order to acheive this we need __GFP_NORETRY flag in the > gfp_mask before during fetching the free pages. This patch adds this flag > to the mask. > > Signed-off-by: Praveen Kumar Kannoju > --- > drivers/infiniband/hw/mlx5/mr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Thanks a lot, Acked-by: Leon Romanovsky