Received: by 2002:ac0:a874:0:0:0:0:0 with SMTP id c49csp285840ima; Fri, 15 Mar 2019 02:50:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJW395SzG+ptKwCa2iiEAsm0oCXu9AQcbwHTWxW0AHa1m8FH9KAnP7EhPz0ZPTh6VSUqEa X-Received: by 2002:a17:902:8211:: with SMTP id x17mr3171138pln.42.1552643439269; Fri, 15 Mar 2019 02:50:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552643439; cv=none; d=google.com; s=arc-20160816; b=lT2lDXO/B9lcR/gBLuuhA9m1WiXaYEuVSzAJt03nzIho9NXCmzvvw0BTltMbjQOG+Z eNXonm0bVPaBz0iXPro2++4sKO1bwRR4KM6Ttj953UerhNpdpudS3lhLpYWwmxo7Ea7z 4Aa5uhdPgqIbbMhDtaiWYch8YIbSMaZ1orrBL8iqvxtkxF8iDNZkVdmAFP1LvDi6r0x+ j+2wxHhQB3Htok35S5QgIKUrwyJF9vyvblEmAyPqp1X+gtcUwdkeAAXUnpC+wG0i12p0 1vX15xQPr3ErS8EzPjo6UU45ZYjcpEAHtZh/cTUhhECYI1GpqGZEVLoN5hDy0NMtudZ9 L9NA== 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=3xSobpf67/du1W5ZrjDfdhkHwfuTUiTkG0DJVu2WwlU=; b=UzvY0VAnU5UnpMSWZgmGSYn/jhQA3ewSaJXn8+Szr57X9oOjTctxBtNoMaNY24UFuw Gzu80U2qL82aZotvKJB0kxF3VCZqYE7ni93Gc/LYnbkAmJXI5x6XmO5HVTbkqybjBUdN u1LXNzc9KrUMl5SjVTmIERdo8Jp1tIqrP3K+1A5EHhjwx0EkGSUdr/y4g6twk1kJLZik MvG956AjqRqo5jHqDa5C13mrJT2DzBdFHdWP6yd28WkdMmJ++E9U6yfY0dtXjYTiTnxi QwW0GI7BMZeBvpF1K1SYsEGdoc8oyJ2CGb4Ae6zvTYKWWyLUbSxrArAXQZbqMxOHl1oy uu3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@eInfochipsIndia.onmicrosoft.com header.s=selector1-einfochips-com header.b=C5VOnOD9; 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 s59si1370928plb.178.2019.03.15.02.50.23; Fri, 15 Mar 2019 02:50:39 -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=C5VOnOD9; 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 S1728744AbfCOJtc (ORCPT + 99 others); Fri, 15 Mar 2019 05:49:32 -0400 Received: from mail-eopbgr1300081.outbound.protection.outlook.com ([40.107.130.81]:52214 "EHLO APC01-HK2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728200AbfCOJtb (ORCPT ); Fri, 15 Mar 2019 05:49:31 -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=3xSobpf67/du1W5ZrjDfdhkHwfuTUiTkG0DJVu2WwlU=; b=C5VOnOD9fv4mhP78ncmEtApBBCODuj5QC7OA8l+IaX3t7RfOytkEV4RWyXz8qvBDaBZKQXn8VNWESImVBz2lp9JRZvrQzLV1XMczWT+o6BGGc/J/x1f8o8jqsj1uYIPMHDCVCwTyF5mGzWDGKJDhjK6eTfjZCkYNOy+YTKjcaoU= Received: from SG2PR02MB3098.apcprd02.prod.outlook.com (20.177.88.78) by SG2PR02MB4171.apcprd02.prod.outlook.com (20.178.158.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.13; Fri, 15 Mar 2019 09:49:26 +0000 Received: from SG2PR02MB3098.apcprd02.prod.outlook.com ([fe80::3180:828f:84bc:ea3]) by SG2PR02MB3098.apcprd02.prod.outlook.com ([fe80::3180:828f:84bc:ea3%4]) with mapi id 15.20.1686.021; Fri, 15 Mar 2019 09:49:26 +0000 From: Pankaj Suryawanshi To: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" CC: "minchan@kernel.org" , Michal Hocko Subject: High Latency of CMA allocation Thread-Topic: High Latency of CMA allocation Thread-Index: AQHU2xLZ1UQoU59DckqzS9+63pBkgg== Date: Fri, 15 Mar 2019 09:49:26 +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: af77d70b-5fd2-4baf-58bf-08d6a92b831e 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:SG2PR02MB4171; x-ms-traffictypediagnostic: SG2PR02MB4171:|SG2PR02MB4171: x-microsoft-antispam-prvs: x-forefront-prvs: 09778E995A x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(346002)(366004)(396003)(39850400004)(136003)(189003)(199004)(110136005)(71200400001)(478600001)(68736007)(105586002)(14454004)(78486014)(256004)(44832011)(476003)(14444005)(5024004)(3846002)(6116002)(106356001)(71190400001)(33656002)(25786009)(86362001)(4326008)(486006)(102836004)(8676002)(74316002)(97736004)(53936002)(6436002)(2501003)(9686003)(81156014)(8936002)(66574012)(26005)(55016002)(7696005)(316002)(186003)(5660300002)(2906002)(66066001)(99286004)(7736002)(305945005)(81166006)(54906003)(52536014)(6506007)(55236004);DIR:OUT;SFP:1101;SCL:1;SRVR:SG2PR02MB4171;H:SG2PR02MB3098.apcprd02.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A: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: p1EZh44X1rgyMmVxLJFrCW/7pdOrKIXiMmq6P8ZswEG14sVp3Y2zXe3JDxweXevo/YyYscdV/ZPbqbffxDIiDppm/BfOVznvCTsSfH0xfDhuNO9xbtFiHgDwhF3nQqH1fxMK8ZoqFlp3lo0NSLAPCFnu9UlYTLBhKyvN0G+0n9saeYXoWOw2qibTwRYA2ujDCTT+6B1oCd5KD1kOyYXUKO3PkyhfSDNgkcpbhBZ1LOK32v74B1o0OR7tkXAXpTApfklmYC1ZN0AEtho3Wbohsk8o4Zf0pgNkpRj6QfwumycXKLdNRMSRLTjmysLX+Xee5LUBdK0acmltOm+RwtbfLnlL6SQyAJIfa8r0eGIt/e2yNsvhzgphdXCF9/yuiswzgg3qDRWhfGMs15BZKC8Gnyt8r7xhbiwVo2OQCejFGAw= 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: af77d70b-5fd2-4baf-58bf-08d6a92b831e X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Mar 2019 09:49:26.5514 (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: SG2PR02MB4171 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, but latency of allocati= on is very high. Below are the stat for allocation/deallocation latency issue. (389120 kB), latency 29997 us (389120 kB), latency 22957 us (389120 kB), latency 25735 us (389120 kB), latency 12736 us (389120 kB), latency 26009 us (389120 kB), latency 18058 us (389120 kB), latency 27997 us (16 kB), latency 560 us (256 kB), latency 280 us (4 kB), latency 311 us 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. **********************************************= ***************************************************************************= ************************************