Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3757159imm; Thu, 17 May 2018 14:16:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrnTDSNnddZ6XH0Yy6is8ZR9m+0gm/XlDp3+nQ5r6+iz7hRAMxhBHPr+NiaxCz5VoTOP1Vk X-Received: by 2002:a17:902:7883:: with SMTP id q3-v6mr6749098pll.71.1526591772893; Thu, 17 May 2018 14:16:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526591772; cv=none; d=google.com; s=arc-20160816; b=duyXkf6qNUuW8WiTDst0ImGPwabbx9u5ImZPFHEr+mT7uSFxMZzqVpoVheneduzY98 ssVUUXRdd0Skb/yG5QngevULWlsIwoU6hcHxXFGf5k10kbySyh+Tu/s4g7gKWpG2K/rG TfxilkktHN6RPS/asPVfvFtRZDCksZcAcrvCpkvoMVuvMpCiQcvHYs4+2MAhRQ6gc/z3 NL6d5tpt/ifZG/rGdn2h3SXzteRe0+XcI7DjQyMj0c6zQf87J8UCMsiPSTF4oQ1UTeQY rIXj05J9IyUbVpprcguHvbRLqaWOOJ77xIi1ZpNq+/ZxtrgNcJTTWcrVR3JrDzEOL8ua 46/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=GjBsqoZr5tgZ0YW5YX+YERiKHr0Jb7YfdogfW1R0z7s=; b=DnWta+lciWuHV1LIFAcOXcFvF0h5WtlwIfguh37InC7YTEMQtFU+8uzerUyDHzb3gz 2nOH2NiFyeecDJAdcZQL49tvbrA6D5i+8G+lO4p9Q/2tHggkUWuxtby2+ryHKsWlK83r sZJCzTKQETjStR+7tU5GK1mD/cLN6zmQVYgNmW+TzRw6p9GbaBIergCK4S5zOCePXu4X vXWsdqQ7VSFIrI+7TmOOh3IGfWGWQSX1hlMdtF8WJJlGI1WzdvhiWEW3j+Lak0XoI1rC Vw16Qsz4ZZHQ8CdNwcM1EQFw2G/cRQ5HIClh8UWtBBJfAQEyjuzjbxUR82o+MCapXEcs pgLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tfDptDz7; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k9-v6si4732013pgo.340.2018.05.17.14.15.57; Thu, 17 May 2018 14:16:12 -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=@gmail.com header.s=20161025 header.b=tfDptDz7; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752175AbeEQVOe (ORCPT + 99 others); Thu, 17 May 2018 17:14:34 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:34230 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751017AbeEQVOc (ORCPT ); Thu, 17 May 2018 17:14:32 -0400 Received: by mail-pg0-f65.google.com with SMTP id k2-v6so2364903pgc.1; Thu, 17 May 2018 14:14:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=GjBsqoZr5tgZ0YW5YX+YERiKHr0Jb7YfdogfW1R0z7s=; b=tfDptDz7wfF414DjFLbWfgS+0ENdUUM4woxnXbJDPl2iXOwrJzPZ9f/EPSSGjuvusk +iL3enUOxb7Hj1tW8uGGIXfr4CoGzrvtdADzNgFeu6cGxWXQUyNyzPE4rdaqeojC4/ds dHWWpB9aG928Jnikk9u7ekW+kdYm0AfHgk1VWO15MqSMQaiPD2cwLP4+1IEXaHfr22Gv ceZOg2VKvNw2SYEc1k2icoCbqd55IHLgWkTJG71wlpmoyF7uGP0g6VPSGMuk261eQ+QN N8anxDBQXROOhLLXEFcZ+CrNrb8bA8ugzqLWLIeQ3NXttrNjIKGpr5wPt0W0EmUbJlcR KysA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=GjBsqoZr5tgZ0YW5YX+YERiKHr0Jb7YfdogfW1R0z7s=; b=DB2fv36mdm0KgXK7ATP5+HOAMXhGp1kMknLTP0SVAGzPlw3nqFPoXUgmqdTuENVn6r tWaFNRScGWTudmNy1bwenRobR5ScjsO+S5f3M/txQeYy58MnoxODsPCDc+DS0sup1B6n Ee00ZePsQxlh2b3NzhEUT1w/5k3a+UaSqgFz5GEyj5mfL1zji2dRVOUCREXRD2K+Md36 TQ+lCG7GjkmbXp+htH/IUgCWDC9rCtXPBQsnNlOPLhfEEowIoPNSG2XZ43LRaTdB5PKh SoVl94XlNPkGRG8fAAUmUvgVPB+lTOcoya0Dbue71Mht0Z4kLHxmUp5ek08uDbQbqzKa VuUg== X-Gm-Message-State: ALKqPwcMwP5ZovGYDTC6Bnm1vS/p9R+lXlh6HYRpbpFFRDYmHjmItHZe EMhkN7CkTAbMkoGytvmKI2w= X-Received: by 2002:a62:3745:: with SMTP id e66-v6mr6592667pfa.43.1526591672396; Thu, 17 May 2018 14:14:32 -0700 (PDT) Received: from ?IPv6:2620:15c:2c1:200:55c7:81e6:c7d8:94b? ([2620:15c:2c1:200:55c7:81e6:c7d8:94b]) by smtp.gmail.com with ESMTPSA id t28-v6sm11525292pfk.161.2018.05.17.14.14.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 May 2018 14:14:31 -0700 (PDT) Subject: Re: [PATCH v3] mlx4_core: allocate ICM memory in page size chunks To: Qing Huang , 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> From: Eric Dumazet Message-ID: Date: Thu, 17 May 2018 14:14:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180517205343.8401-1-qing.huang@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 at https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d8c13f2271ec5178c52fbde072ec7b562651ed9d And you'll understand some people care about this. Strongly. Thanks.