Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755707AbXJBIAW (ORCPT ); Tue, 2 Oct 2007 04:00:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753409AbXJBIAG (ORCPT ); Tue, 2 Oct 2007 04:00:06 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.31.123]:52263 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753384AbXJBIAE (ORCPT ); Tue, 2 Oct 2007 04:00:04 -0400 Date: Tue, 2 Oct 2007 10:00:03 +0200 From: Pavel Machek To: "Mukker, Atul" Cc: Linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: kdump detection in SCSI drivers Message-ID: <20071002080000.GA5743@atrey.karlin.mff.cuni.cz> References: <9738BCBE884FDB42801FAD8A7769C26501B2C44C@NAMAIL1.ad.lsil.com> <20070920104249.GB12157@atrey.karlin.mff.cuni.cz> <9738BCBE884FDB42801FAD8A7769C26501B2C7D8@NAMAIL1.ad.lsil.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9738BCBE884FDB42801FAD8A7769C26501B2C7D8@NAMAIL1.ad.lsil.com> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1369 Lines: 42 Hi! > How do we "know" when little memory is available? Kernel already scales its hash tables according to total RAM available, perhaps you can use similar mechanism? > Other suggestion which came about was to parse the kernel command line > and look for "elfcorehdr=". Is this ok? Is kernel command line visible > to the SCSI drivers? Kernel command line probably is visible, but I'd recommend against doing that. Pavel > Cc: Linux-scsi@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: kdump detection in SCSI drivers > > > Hi, > > > > Is there a standard way for drivers (RAID) to detect if the current > > kernel is running in kdump mode? We would like to adjust driver > behavior > > dynamically when kdump is active by scaling down resources. > > Perhaps you should be automatically using little resources when little > memory is available, or something? > > With upcomping kjump patches, it is more "interesting" than kdump > vs. no kdump. > > Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html - 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/