From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757868AbcH3Kff (ORCPT ); Tue, 30 Aug 2016 06:35:35 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:38668 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754327AbcH3Kfc (ORCPT ); Tue, 30 Aug 2016 06:35:32 -0400 X-IBM-Helo: d03dlp01.boulder.ibm.com X-IBM-MailFrom: aneesh.kumar@linux.vnet.ibm.com From: "Aneesh Kumar K.V" To: js1304@gmail.com, Andrew Morton Cc: Rik van Riel , Johannes Weiner , mgorman@techsingularity.net, Laura Abbott , Minchan Kim , Marek Szyprowski , Michal Nazarewicz , Vlastimil Babka , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Joonsoo Kim Subject: Re: [PATCH v5 2/6] mm/cma: introduce new zone, ZONE_CMA In-Reply-To: <1472447255-10584-3-git-send-email-iamjoonsoo.kim@lge.com> References: <1472447255-10584-1-git-send-email-iamjoonsoo.kim@lge.com> <1472447255-10584-3-git-send-email-iamjoonsoo.kim@lge.com> Date: Tue, 30 Aug 2016 16:05:20 +0530 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16083010-0012-0000-0000-000010833BA5 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00005673; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000183; SDB=6.00751569; UDB=6.00355232; IPR=6.00524370; BA=6.00004679; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00012514; XFM=3.00000011; UTC=2016-08-30 10:35:29 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16083010-0013-0000-0000-000044FE42E8 Message-Id: <87vayisfx3.fsf@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-08-30_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1608300103 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org .... > static inline void check_highest_zone(enum zone_type k) > { > - if (k > policy_zone && k != ZONE_MOVABLE) > + if (k > policy_zone && k != ZONE_MOVABLE && !is_zone_cma_idx(k)) > policy_zone = k; > } > Should we apply policy to allocation from ZONE CMA ?. CMA reserve happens early and may mostly come from one node. Do we want the CMA allocation to fail if we use mbind(MPOL_BIND) with a node mask not including that node on which CMA is reserved, considering CMA memory is going to be used for special purpose. -aneesh