From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754681Ab0JOJMa (ORCPT ); Fri, 15 Oct 2010 05:12:30 -0400 Received: from smtp-out.google.com ([74.125.121.35]:33582 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754364Ab0JOJM3 (ORCPT ); Fri, 15 Oct 2010 05:12:29 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=date:from:x-x-sender:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version:content-type; b=hEAH/jRxgoTyh+HRJdCXnrpcCbKGw7DhPIgV/cugOMpM596TxS0foHvWLqC+S4ehAh Gz1cMRWFHuCebO2KdQ8Q== Date: Fri, 15 Oct 2010 02:11:37 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Ingo Molnar cc: Andrew Morton , Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , Casey Dahlin , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [patch] x86: allow ZONE_DMA to be configurable In-Reply-To: <20101015031014.GC9640@elte.hu> Message-ID: References: <20101014011056.a58bac55.akpm@linux-foundation.org> <20101014153223.a710d70c.akpm@linux-foundation.org> <20101015031014.GC9640@elte.hu> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 15 Oct 2010, Ingo Molnar wrote: > Can we automate it perhaps? Drivers could express their zone needs, and > perhaps we can free up the zone if there's no relevant driver loaded by > the time we have booted up? If a hotplug driver arrives later on, is the > MM good enough for us to be able to reinstate the zone dynamically? > That's the same as setting /proc/sys/vm/lowmem_reserve_ratio to 0 for all zones so that no lowmem is reserved specifically for DMA allocations. Then, ZONE_DMA becomes like any other zone and is open to all allocations.