Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761409Ab3DBOup (ORCPT ); Tue, 2 Apr 2013 10:50:45 -0400 Received: from mail-ie0-f178.google.com ([209.85.223.178]:42690 "EHLO mail-ie0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761234Ab3DBOuo (ORCPT ); Tue, 2 Apr 2013 10:50:44 -0400 MIME-Version: 1.0 In-Reply-To: <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> <20130402141734.GE29506@redhat.com> Date: Tue, 2 Apr 2013 07:50:43 -0700 X-Google-Sender-Auth: Uh84Sr28DdImubuLV9RCifT_hxM Message-ID: Subject: Re: [PATCH] kexec: use Crash kernel for Crash kernel low From: Yinghai Lu To: Vivek Goyal Cc: "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , WANG Chao , "Eric W. Biederman" , Linux Kernel Mailing List Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1932 Lines: 64 On Tue, Apr 2, 2013 at 7:17 AM, Vivek Goyal wrote: > 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 Oh, no. the grammar for crashkernel= looks crazy now. You should not burden user like this. Thanks Yinghai -- 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/