From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752009AbcKGHTh (ORCPT ); Mon, 7 Nov 2016 02:19:37 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:5680 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750946AbcKGHTg (ORCPT ); Mon, 7 Nov 2016 02:19:36 -0500 Subject: Re: [PATCH v6 2/6] mm/cma: introduce new zone, ZONE_CMA To: Joonsoo Kim References: <1476414196-3514-1-git-send-email-iamjoonsoo.kim@lge.com> <1476414196-3514-3-git-send-email-iamjoonsoo.kim@lge.com> <58184B28.8090405@hisilicon.com> <20161107061500.GA21159@js1304-P5Q-DELUXE> CC: Andrew Morton , Rik van Riel , Johannes Weiner , , "Laura Abbott" , Minchan Kim , "Marek Szyprowski" , Michal Nazarewicz , "Aneesh Kumar K.V" , Vlastimil Babka , , From: Chen Feng Message-ID: <58202881.5030004@hisilicon.com> Date: Mon, 7 Nov 2016 15:08:49 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20161107061500.GA21159@js1304-P5Q-DELUXE> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.142.193.64] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016/11/7 14:15, Joonsoo Kim wrote: > On Tue, Nov 01, 2016 at 03:58:32PM +0800, Chen Feng wrote: >> Hello, I hava a question on cma zone. >> >> When we have cma zone, cma zone will be the highest zone of system. >> >> In android system, the most memory allocator is ION. Media system will >> alloc unmovable memory from it. >> >> On low memory scene, will the CMA zone always do balance? > > Allocation request for low zone (normal zone) would not cause CMA zone > to be balanced since it isn't helpful. > Yes. But the cma zone will run out soon. And it always need to do balance. How about use migrate cma before movable and let cma type to fallback movable. https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1263745.html >> Should we transmit the highest available zone to kswapd? > > It is already done when necessary. > > Thanks. > > > . >