Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp405889img; Mon, 18 Mar 2019 05:59:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyEoHL6XxrskjFQhvwVY9suxXu65OyBCNF5V+KGgByLSWOjTskAp9kHQycLWPp2DBeybAs0 X-Received: by 2002:a63:d84b:: with SMTP id k11mr8933293pgj.281.1552913980053; Mon, 18 Mar 2019 05:59:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552913980; cv=none; d=google.com; s=arc-20160816; b=LFOaAF+MTuV13muDbceHZ3EGvsi13HpS7zzSMNgx1nwenQ5ejK0QUp/Z0Uhli3djYz FkNKvtufuNVUh1UukQrwnrJA8SbVQOi6hP5831zJMB9F7B0X3zn1f7Nkjh2NYCzSPifg X7KYUWOgM5uDCQhvLFhgTRBfaPbT7zbuRa9NRkrwAdkJpPSlNn7qfTAwk6mENZXe91KJ 8ErA0J9fQc704G20yBxSph+QMW+A1Pqszhu72G3UvSblfIORYkAj0IO93LMivBtiUr0N uLRzg11Msr1jjonhw5/qyColCuOTUUPhvdenwvIZDell91g3XYERWKjcZBSM6JVnIKfk i0aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=NWa96tqDALkG/Ihkkz4AKVvab5GUIL1OORVySlstbmA=; b=AmKB/pYA08guoXuutxFWWAHTrhs71qvjsmtBChzjA60zF4X47FgyTOF+z0EnsoHTKl 2d/CGV8Zz5cB8mgopL6xLvpIHWMqPDshDzlr44D0w2OHECau1CJEz9JjCRMlihixnfWl wIAouRNgOlXTDX2/AeLB7QIYoi3KmAX1cj1ey9J9dAykIut6F2BT9IQ0I1xQCDZSvCVe J5s8+/+tloiTC8Mkt4KMnbVMCQf0RzAFpn4S52lpZsotov38/7qdw5OGIoAT+oJXVIMY R8IWyWW+Ri9zdvE3vnU/dIXggFybj0tV6yAbuDVyoTV6tl5BhXyrXUAuAuGzEksT5vjg +u0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@eInfochipsIndia.onmicrosoft.com header.s=selector1-einfochips-com header.b=QHAgM2UN; 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 x3si9294832plo.202.2019.03.18.05.59.24; Mon, 18 Mar 2019 05:59:40 -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=@eInfochipsIndia.onmicrosoft.com header.s=selector1-einfochips-com header.b=QHAgM2UN; 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 S1727218AbfCRM6g (ORCPT + 99 others); Mon, 18 Mar 2019 08:58:36 -0400 Received: from mail-eopbgr1310084.outbound.protection.outlook.com ([40.107.131.84]:43328 "EHLO APC01-SG2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725973AbfCRM6g (ORCPT ); Mon, 18 Mar 2019 08:58:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eInfochipsIndia.onmicrosoft.com; s=selector1-einfochips-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NWa96tqDALkG/Ihkkz4AKVvab5GUIL1OORVySlstbmA=; b=QHAgM2UNDZ8q05tNsAH+piTQsbp5oCMaYN+eC3m74bJbcyWqDTWMPyCNSmTTUTjy1Ei+8hSAGj8/qzmGyzf+LxuWVRHgi3rbWAp+ZrwalTIyromJX1KeEs40BXAUv1EA3ssz4oCmSBwYg74PJXbcY+cfQa0KHoXP8x8Y8v4RdCM= Received: from SG2PR02MB3098.apcprd02.prod.outlook.com (20.177.88.78) by SG2PR02MB2985.apcprd02.prod.outlook.com (20.177.88.207) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.13; Mon, 18 Mar 2019 12:58:29 +0000 Received: from SG2PR02MB3098.apcprd02.prod.outlook.com ([fe80::f432:20e4:2d22:e60b]) by SG2PR02MB3098.apcprd02.prod.outlook.com ([fe80::f432:20e4:2d22:e60b%4]) with mapi id 15.20.1709.015; Mon, 18 Mar 2019 12:58:29 +0000 From: Pankaj Suryawanshi To: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "minchan@kernel.org" , Michal Hocko CC: Kirill Tkhai Subject: mm/cma.c: High latency for cma allocation Thread-Topic: mm/cma.c: High latency for cma allocation Thread-Index: AQHU3YpG7XMhet9mv0+1ZFJR3Y1R1w== Date: Mon, 18 Mar 2019 12:58:28 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=pankaj.suryawanshi@einfochips.com; x-originating-ip: [14.98.130.2] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4b0802b4-42ef-4a12-41b8-08d6aba16ada x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020);SRVR:SG2PR02MB2985; x-ms-traffictypediagnostic: SG2PR02MB2985:|SG2PR02MB2985: x-microsoft-antispam-prvs: x-forefront-prvs: 098076C36C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(39850400004)(136003)(346002)(376002)(396003)(199004)(189003)(106356001)(186003)(105586002)(66574012)(78486014)(14454004)(81156014)(86362001)(25786009)(81166006)(8936002)(2201001)(33656002)(256004)(2501003)(305945005)(68736007)(7736002)(5024004)(14444005)(71200400001)(71190400001)(3846002)(6116002)(8676002)(53936002)(5660300002)(97736004)(110136005)(486006)(2906002)(476003)(44832011)(55236004)(9686003)(316002)(55016002)(74316002)(4326008)(6436002)(26005)(66066001)(52536014)(99286004)(6506007)(478600001)(102836004)(7696005);DIR:OUT;SFP:1101;SCL:1;SRVR:SG2PR02MB2985;H:SG2PR02MB3098.apcprd02.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: einfochips.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: cQAffUqDq+wDrBEPBA21/GK+RAGu+eJXh0aKr6PLcXo2E9WUvNhbIR3drxIyVX/vYDYr9G5D2A4GEoOBb+duO8Za4kVN1V1Abb7d+wTBWdSSSRU+EGDwKLlehpkICEBGIcuqrjZEPVTMC+Hx5drXAuO0P7pIApgwRCESvAUD0RBV5Yf37cM5VzAp4TnSO5iinX+GjJaN5Va8InFcFW/vNfDStBdtKfJRqKfdGXKkRxfo45/nHd6DfUAI3Zj4NqhrzjCirCvFlAk04H9H9TJBpjG+Dv21KgCxGaAXF1nyY7X25LpvFAFpA3vZDSD18vpLs+1hEvixAbOqeSA4IpdEeHdk9EFOW66szODqjU1TauDemkYukXR9pyaju4X7x0muk7R0qDx2z66HSPKAHY0I+OiNV7PKX5p3funNV49TXjU= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: einfochips.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4b0802b4-42ef-4a12-41b8-08d6aba16ada X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Mar 2019 12:58:28.8675 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0adb040b-ca22-4ca6-9447-ab7b049a22ff X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR02MB2985 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, I am facing issue of high latency in CMA allocation of large size buffer. I am frequently allocating/deallocation CMA memory, latency of allocation i= s very high. Below are the stat for allocation/deallocation latency issue. (390100 kB), latency 29997 us (390100 kB), latency 22957 us (390100 kB), latency 25735 us (390100 kB), latency 12736 us (390100 kB), latency 26009 us (390100 kB), latency 18058 us (390100 kB), latency 27997 us (16 kB), latency 560 us (256 kB), latency 280 us (4 kB), latency 311 us I am using kernel 4.14.65 with android pie(9.0). Is there any workaround or solution for this(cma_alloc latency) issue ? Regards, Pankaj ***************************************************************************= ***************************************************************************= ******* eInfochips Business Disclaimer: This e-mail message and all attachm= ents transmitted with it are intended solely for the use of the addressee a= nd may contain legally privileged and confidential information. If the read= er of this message is not the intended recipient, or an employee or agent r= esponsible for delivering this message to the intended recipient, you are h= ereby notified that any dissemination, distribution, copying, or other use = of this message or its attachments is strictly prohibited. If you have rece= ived this message in error, please notify the sender immediately by replyin= g to this message and please delete it from your computer. Any views expres= sed in this message are those of the individual sender unless otherwise sta= ted. Company has taken enough precautions to prevent the spread of viruses.= However the company accepts no liability for any damage caused by any viru= s transmitted by this email. **********************************************= ***************************************************************************= ************************************