Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932091Ab3DBORx (ORCPT ); Tue, 2 Apr 2013 10:17:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6696 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760814Ab3DBORw (ORCPT ); Tue, 2 Apr 2013 10:17:52 -0400 Date: Tue, 2 Apr 2013 10:17:34 -0400 From: Vivek Goyal To: Yinghai Lu Cc: "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , WANG Chao , "Eric W. Biederman" , Linux Kernel Mailing List Subject: Re: [PATCH] kexec: use Crash kernel for Crash kernel low Message-ID: <20130402141734.GE29506@redhat.com> References: <5159D2E9.7080707@zytor.com> <20130401192606.GA17951@redhat.com> <5159F27E.7060300@zytor.com> <515A03DB.6040107@zytor.com> <515A083B.7050508@zytor.com> <20130402135001.GC29506@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130402135001.GC29506@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1690 Lines: 58 On Tue, Apr 02, 2013 at 09:50:01AM -0400, Vivek Goyal wrote: [..] > To achieve the behavior where we want to enforce that memory either > comes from low or high area only otherwise allocation fails, we could > probably use. > > crashkernel=X,high_only > crashkernel=X,low_only Thinking more about it. We have following existing syntax. crashkernel=range1:size1[,range2:size2,...][@offset] Which uses ',' as delimiter for range:size pairs. May be we can use a different delimiter, say ';'. crashkernel=;; All the existing crashkernel= options should fall into the category of . option1 could specify whether to search for memory from higher addresses or from lower addresses. (valid values are high or low) option2 could specify the range of memory search should be performed in. syntax to specify range could be XM:[YM]. So one could possibly specify. 4G-8G <4G >4G:<8G >8G Now crashkernel_low=0 could be emulated by crashkernel=0M;;<4G If we want to reserve 128MB of memory between 4G and 8G and starting scan from high, we could say. crashkernel=128M;high;>4G:<8G If this is deemed too generic and not worth it. Then we could simplify option 2 to take values "high_only" and "low_only" and that leaves the scope of implementing proper ranges down the line if need be. So crashkernel_low=0 will be emulated by. crashkernel=0M;;low_only Thanks Vivek -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/