From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wanpeng Li Subject: Re: [patch v2 3/3] mm: page_alloc: fair zone allocator policy Date: Mon, 5 Aug 2013 21:11:53 +0800 Message-ID: <30304.3512547903$1375708345@news.gmane.org> References: <1375457846-21521-1-git-send-email-hannes@cmpxchg.org> <1375457846-21521-4-git-send-email-hannes@cmpxchg.org> <20130805103456.GB1039@hacker.(null)> <20130805113423.GB6703@redhat.com> Reply-To: Wanpeng Li Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from kanga.kvack.org ([205.233.56.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V6Ka3-0006tU-UE for glkm-linux-mm-2@m.gmane.org; Mon, 05 Aug 2013 15:12:12 +0200 Received: from psmtp.com (na3sys010amx182.postini.com [74.125.245.182]) by kanga.kvack.org (Postfix) with SMTP id C7B116B0031 for ; Mon, 5 Aug 2013 09:12:09 -0400 (EDT) Received: from /spool/local by e23smtp06.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 5 Aug 2013 23:04:01 +1000 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [9.190.235.152]) by d23dlp02.au.ibm.com (Postfix) with ESMTP id BE3972BB0055 for ; Mon, 5 Aug 2013 23:12:05 +1000 (EST) Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r75Cu99v5505150 for ; Mon, 5 Aug 2013 22:56:18 +1000 Received: from d23av01.au.ibm.com (localhost [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r75DBtiP014325 for ; Mon, 5 Aug 2013 23:11:56 +1000 Content-Disposition: inline In-Reply-To: <20130805113423.GB6703@redhat.com> Sender: owner-linux-mm@kvack.org List-ID: To: Andrea Arcangeli Cc: Johannes Weiner , Andrew Morton , Mel Gorman , Rik van Riel , Zlatko Calusic , Minchan Kim , linux-mm@kvack.org, linux-kernel@vger.kernel.org On Mon, Aug 05, 2013 at 01:34:23PM +0200, Andrea Arcangeli wrote: >On Mon, Aug 05, 2013 at 06:34:56PM +0800, Wanpeng Li wrote: >> Why round robin allocator don't consume ZONE_DMA? > >I guess lowmem reserve reserves it all, 4GB/256(ratio)=16MB. > Ah, lowmem reservation reserve all ZONE_DMA: x86_64 4GB protection: (0, 3251, 4009, 4009) Thanks for pointing out. ;-) >The only way to relax it would be 1) to account depending on memblock >types and allow only the movable ones to bypass the lowmem reserve and >prevent a change from movable type if lowmem reserve doesn't pass, 2) >use memory migration to move the movable pages from the lower zones to >the highest zone if reclaim fails if __GFP_DMA32 or __GFP_DMA is set, >or highmem is missing on 32bit kernels. The last point involving >memory migration would work similarly to compaction but it isn't black >and white, and it would cost CPU as well. The memory used by the >simple lowmem reserve mechanism is probably not significant enough to >warrant such an effort. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org