Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3780297imm; Thu, 17 May 2018 14:47:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpwycej2DEwL6VYijeXny13XA0fWFkg2Rj+IqA2uy7SeK3T21QnO4uHSanl9AOkFDksBCWo X-Received: by 2002:a17:902:5610:: with SMTP id h16-v6mr6730560pli.140.1526593654189; Thu, 17 May 2018 14:47:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526593654; cv=none; d=google.com; s=arc-20160816; b=q2BWGeFyXMnRyFiqgl+UlIc/U4mm3/j9gudES7ftLBNRmBHvqeRL5oVrTbkxay3eWC QOh+5HSVPl58Z/M0TJoqQUuJ/cUcutL7iwZDkzIUnGJAXessF9sHdQLA9KtsNPcvAEPA WXmyX1cOsf1wjDCSDz7F7LNpZtVg1VIlzV0vbq/83faTIq3W6rSyV0GuusUWLbbfuCuo VkIYfStTBREM3tWhENW4Tz0fdwb/GMKJEqcl0guC/wRndkTTkgdGCjyLnRTd643CM4QI fstmgMx9bUUF+LV1g3X9VKxySLmXdbsLP8b3jqcMb+U/Zuu6Fc70NlvkOOFUdn63SZbp LYgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from:dkim-signature :arc-authentication-results; bh=yuPv4GC/5rD3KT73bcruewGgz6zeuJrV27/E2OaalR4=; b=aSA7rRv/eqottsVot3wA/hcJhnklpVfrHSr1jn6Jjlt1KOab8nqW6NYh05uJ0XxR4S rJOu5Yitr02ZdQZTEA5n34qCGZFKaO5/a3bONVDumikCTtsRdgom9w0NUmcqRZtU48R7 qId5rXDBdkSriooGzMEz30QICbH9KQ/71LAN9xcPwe+YaBw/tGFdvSCgDLkQ77LHFjEV NsyyZ5t81QJZp0fWVS3SsOm5SwCQO5iTODbFn/wxAnaBvS0KKvXhRk7zi+XSTIp1W/rw PlWaWz/h2ARqrd/ptJhcK6F3yFcI6mtIPly/2e8swBy7cpSkTJk4QwtQKQdAk/ELp8Lf yAQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=eVQbveIR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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. [209.132.180.67]) by mx.google.com with ESMTP id v64-v6si4697122pgb.86.2018.05.17.14.47.19; Thu, 17 May 2018 14:47:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=eVQbveIR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1752062AbeEQVpg (ORCPT + 99 others); Thu, 17 May 2018 17:45:36 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:50258 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751061AbeEQVpe (ORCPT ); Thu, 17 May 2018 17:45:34 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w4HLfRse102319; Thu, 17 May 2018 21:45:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : subject : to : cc : references : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=yuPv4GC/5rD3KT73bcruewGgz6zeuJrV27/E2OaalR4=; b=eVQbveIRkRLCZPfiP3nwzK+VapX8DUqx5Sn6nPNRiYS/H3R4KNsLFTSKCP9C7WUD1yCu BMdUtMbdYHZvgftHegOygwL5xGOU2S6t3neGTmxaD42+DX27PgGEp43Eyxp23IfssLHF TueB4qXYZ0oC1tlSa8L0L2PhfCoYFLWv+CGLUmbr5CsTGUQNwVVZmMK0y7L7C7qQTCLi hthI1q0iANVSxMK4RfbuMsGD4K10vyzHg5cm25N3jXdkVLrilhTtlug40nslfKYDZtcw +H1UhkLwvj+S1TA5OMMkcvjxlmhxm45MIfAZz1CPpRQIsKg+3WZFjVXjGvmsDmcje4RB yA== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2hx29wk4p2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 17 May 2018 21:45:23 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w4HLjIcL011891 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 17 May 2018 21:45:19 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w4HLjGZ3022088; Thu, 17 May 2018 21:45:18 GMT Received: from [192.168.1.251] (/73.231.34.197) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 17 May 2018 14:45:16 -0700 From: Qing Huang Subject: Re: [PATCH v3] mlx4_core: allocate ICM memory in page size chunks To: Eric Dumazet , tariqt@mellanox.com, davem@davemloft.net, haakon.bugge@oracle.com, yanjun.zhu@oracle.com Cc: netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, gi-oh.kim@profitbricks.com References: <20180517205343.8401-1-qing.huang@oracle.com> Message-ID: <19b7818e-16f6-2349-dc34-245c2f215f6f@oracle.com> Date: Thu, 17 May 2018 14:45:20 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8896 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=2 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=958 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805170202 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/17/2018 2:14 PM, Eric Dumazet wrote: > On 05/17/2018 01:53 PM, Qing Huang wrote: >> When a system is under memory presure (high usage with fragments), >> the original 256KB ICM chunk allocations will likely trigger kernel >> memory management to enter slow path doing memory compact/migration >> ops in order to complete high order memory allocations. >> >> When that happens, user processes calling uverb APIs may get stuck >> for more than 120s easily even though there are a lot of free pages >> in smaller chunks available in the system. >> >> Syslog: >> ... >> Dec 10 09:04:51 slcc03db02 kernel: [397078.572732] INFO: task >> oracle_205573_e:205573 blocked for more than 120 seconds. >> ... >> > NACK on this patch. > > You have been asked repeatedly to use kvmalloc() > > This is not a minor suggestion. > > Take a look athttps://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d8c13f2271ec5178c52fbde072ec7b562651ed9d Would you please take a look at how table->icm is being used in the mlx4 driver? It's a meta data used for individual pointer variable referencing, not as data frag or in/out buffer. It has no need for contiguous phy. memory. Thanks. > And you'll understand some people care about this. > > Strongly. > > Thanks. >