From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752078AbbCYVQY (ORCPT ); Wed, 25 Mar 2015 17:16:24 -0400 Received: from lgeamrelo01.lge.com ([156.147.1.125]:51221 "EHLO lgeamrelo01.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750866AbbCYVQX (ORCPT ); Wed, 25 Mar 2015 17:16:23 -0400 X-Original-SENDERIP: 10.178.37.108 X-Original-MAILFROM: gioh.kim@lge.com Message-ID: <551325A6.5000405@lge.com> Date: Thu, 26 Mar 2015 06:16:22 +0900 From: Gioh Kim User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Mel Gorman CC: akpm@linux-foundation.org, riel@redhat.com, hannes@cmpxchg.org, rientjes@google.com, vdavydov@parallels.com, iamjoonsoo.kim@lge.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, gunho.lee@lge.com Subject: Re: [RFCv2] mm: page allocation for less fragmentation References: <1427251155-12322-1-git-send-email-gioh.kim@lge.com> <20150325105640.GI4701@suse.de> In-Reply-To: <20150325105640.GI4701@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2015-03-25 오후 7:56에 Mel Gorman 이(가) 쓴 글: > On Wed, Mar 25, 2015 at 11:39:15AM +0900, Gioh Kim wrote: >> My driver allocates more than 40MB pages via alloc_page() at a time and >> maps them at virtual address. Totally it uses 300~400MB pages. >> >> If I run a heavy load test for a few days in 1GB memory system, I cannot allocate even order=3 pages >> because-of the external fragmentation. >> >> I thought I needed a anti-fragmentation solution for my driver. >> But there is no allocation function that considers fragmentation. >> The compaction is not helpful because it is only for movable pages, not unmovable pages. >> >> This patch proposes a allocation function allocates only pages in the same pageblock. >> > > Is this not what CMA is for? Or creating a MOVABLE zone? It's not related to CMA and MOVABLE zone. It's for compaction and anti-fragmentation for any zone. >