Received: by 10.223.176.5 with SMTP id f5csp376440wra; Sat, 27 Jan 2018 01:38:08 -0800 (PST) X-Google-Smtp-Source: AH8x224XcqIZuuQitomJ4lHwRrGrYgL9sg4gH7m+iUFvbRhX7tPoIPyjQMiZqupeDY6A9gEYQ7oe X-Received: by 2002:a17:902:a9ca:: with SMTP id b10-v6mr651660plr.223.1517045888043; Sat, 27 Jan 2018 01:38:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517045888; cv=none; d=google.com; s=arc-20160816; b=bVQ/HFqnJPQDJKxiHxxx8QetrocDBv2XjXd56Q0kshVzIwZdbXeArbmhioHCH8uXWW MiL02ZYT+2A8T98BHVOvrYrhZ2o67rmEy+7jS8ZXVzaCoJGl7pgwPAvb9KtWfXbUFN4K 3QU8L1gPJtaiC0KxI89cMI+KWMgUwJeTQZPSOc17LavOZ8YItLnQS0u7MLrvpd72nSti vG5eMf/Gx+m2MLdnHxs/rzI3AzSFAR0tWi8MmTaBFbGSGHCVO7DmrvUnHw0V+MppVm7M xLUeZzbzyuUb1/l203Ib/0N+7BlhOeTJ2qGBffCg2uGEofvQfMtXq72C5xOsTuMxJDti 60Aw== 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:mime-version :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:message-id:date:thread-index:thread-topic:subject :to:from:arc-authentication-results; bh=bm4ddDDRGJ74OEEnoXCe1clFUh93D+zlp5UK4yoBE1A=; b=DGzLp5RbfjwTa65wqicwXqRvIptl4bTkkn+weYEW/ONSHFJzEIJ2LrAOxbPiIueKSU +RQbltHeGAmAfg1iVzaoyUqEaQf557JVehuvfgl2GcdvnokYjvgerT30jQ0fVeFHkrp7 zb2+3xTFnm3m/1HAzMaXZw8I+vvPj0CIpYaWzk5VLzFz0q3dggqx9183w4XXGOfaVQjO 4Z/e/gN2WrXOO8J/92y/QfMZByNOD5rJswgwqHLe0toKQifzptSNp2frCBKbQFmz+Ri4 ZxxOLBqswO1R6NondoHHs2BejYpL2fzPDKLJ04inSf1Ju0jYvBAWCIJgLDoc8lncla7j WA3Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o190si196697pga.553.2018.01.27.01.37.53; Sat, 27 Jan 2018 01:38:08 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752371AbeA0Jh0 convert rfc822-to-8bit (ORCPT + 99 others); Sat, 27 Jan 2018 04:37:26 -0500 Received: from mga14.intel.com ([192.55.52.115]:28829 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752136AbeA0JhY (ORCPT ); Sat, 27 Jan 2018 04:37:24 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Jan 2018 01:37:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,421,1511856000"; d="scan'208";a="13383505" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga007.fm.intel.com with ESMTP; 27 Jan 2018 01:37:23 -0800 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sat, 27 Jan 2018 01:37:23 -0800 Received: from lcsmsx153.ger.corp.intel.com (10.186.165.228) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sat, 27 Jan 2018 01:37:23 -0800 Received: from hasmsx108.ger.corp.intel.com ([169.254.9.211]) by LCSMSX153.ger.corp.intel.com ([169.254.8.60]) with mapi id 14.03.0319.002; Sat, 27 Jan 2018 11:37:20 +0200 From: "Skidanov, Alexey" To: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" Subject: CMA allocation failure Thread-Topic: CMA allocation failure Thread-Index: AdOXUCyw7BOISb08QF2FquQps53ghw== Date: Sat, 27 Jan 2018 09:37:20 +0000 Message-ID: <040863540BC4D141BEB17753235088284DBB1DDA@hasmsx108.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzg1MTkyYmUtMTRjYy00NDk0LWI5MjEtODYyZjA3NGU2MzJmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6ImZLUm5lXC9cL1MrYXNsMXJobm5yTFF5N0RJbjNhNmN1MmtnZ29pcmRMdnVuWT0ifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.255.196.13] Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, I enabled CMA global area to be 8GB. Immediately after boot, I'm able to allocate the really big contiguous chunks of memory (about 8GB). But several minutes after the boot, there is some degradation in an ability of CMA to allocate contiguous memory buffers: [ 2333.037004] cma: cma_alloc(): memory range at ffffea000f0a0000 is busy, retrying [ 2333.037005] cma: cma_alloc: alloc failed, req-size: 500000 pages, ret: -16 [ 2333.037006] cma: number of available pages: 6@122+9@151+9@183+2096848@304=> 2096872 free of 2097152 total pages [ 2333.037034] cma: cma_alloc(): returned (null) The request to allocate 500000 pages (~2GB) is failed while the block of 2096848 contiguous pages are available. One of the failure reasons is the user allocated pinned pages in the middle of the CMA reserved range. Can I somehow verify it? Can I get the details of such pinned pages (number of pages, source of pinning, etc. ... )? Thanks, Alexey --------------------------------------------------------------------- Intel Israel (74) Limited This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.