From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 901A0C5B549 for ; Fri, 30 May 2025 09:42:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ItuZODbQUON55ZfNqCBg9/7wO6q1b21kKNU9knhkEfc=; b=ALSEnueePiVQwTFjQwyLF6yMkE Ch7r/g9JtlmAFGEXoL9PDvGUyz7C+ibmunGf7IVOL94iLa4c6Flo+raz9Q+TEyZOZVx4eezKhm4Ja OGr5w5kphFvYkGvavC42hwjeAHxGG88RTWpZ+z16oeryEQx8EdMcqU82NW1s8nQilcBcCYDGQpCuH Zwj2RY5Ncn2sIXvWoZFgpkjMcfYGy+N3TrvxrIAo1WRIAcZ2o1UlQ9FN+18cOuRN1MK7kHStDu5GU 1FvE76O1NDOhHVXcJG/Ci9qM7BihgCx/1/gttjuCRxEY0+xoKkZMbiodVAD4QxnAfNBSu6lzK6NIl Xj4h9WxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uKwFs-00000000Bal-14mv; Fri, 30 May 2025 09:42:24 +0000 Received: from smtp-out1.suse.de ([2a07:de40:b251:101:10:150:64:1]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uKw8N-000000009JT-2Gyu for kexec@lists.infradead.org; Fri, 30 May 2025 09:34:40 +0000 Received: from localhost (unknown [10.100.12.32]) by smtp-out1.suse.de (Postfix) with ESMTP id 0496721199; Fri, 30 May 2025 09:34:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1748597678; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ItuZODbQUON55ZfNqCBg9/7wO6q1b21kKNU9knhkEfc=; b=YGybCRk+GUMDo18XQr/74+0as7Za6cvWedFbBN0eXABoTliEi8gtfARRQzsoQxWiXZ/lZH jfgFLS4UWXExVFbrbyh09WWV+bQ4ZWC3dEtBjtyyUOHyZgPQLux/gRsBBDuiTN2EceffWJ PfwieiqzSav0/RJspFcSk862/LETdRU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1748597678; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ItuZODbQUON55ZfNqCBg9/7wO6q1b21kKNU9knhkEfc=; b=QXF936EAdkErhGve4niFPkYmLyG5oz8HHFVS6y3t9bQl2Kse0glawCIuulJsMnlOIPEdXx aMST8TzTVdMmM5DA== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1748597677; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ItuZODbQUON55ZfNqCBg9/7wO6q1b21kKNU9knhkEfc=; b=kMoFVsNAX9J0KE3foXRbf5+dCc6zzp8RemYVFIyCNQlXT0bOGA1eN1R4LkFPRArUsB9/GL nMHAi/zkWITPJ7t+qZqIeCQT88ymc5HR3GJB4VfHBnA902ZV6mB766lGH2GX9o81uR5/u5 b5c7ZLZN4KizPO8cjMOY12YVUf8t4iI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1748597677; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ItuZODbQUON55ZfNqCBg9/7wO6q1b21kKNU9knhkEfc=; b=XbeHvZ6j21kgYeJ9uEQAmtKlapnWk6Gk0uFr1d5BKkSqquQ/jbw1S7pZ3tbWsSqZPpeYW5 aXL+vWk1rcwnvHBw== Date: Fri, 30 May 2025 11:34:36 +0200 From: Jiri Bohac To: David Hildenbrand Cc: Michal Hocko , Baoquan He , Donald Dutile , Vivek Goyal , Dave Young , kexec@lists.infradead.org, Philipp Rudo , Pingfan Liu , Tao Liu , linux-kernel@vger.kernel.org, David Hildenbrand Subject: Re: [PATCH v2 0/5] kdump: crashkernel reservation from CMA Message-ID: References: <04904e86-5b5f-4aa1-a120-428dac119189@redhat.com> <427fec88-2a74-471e-aeb6-a108ca8c4336@redhat.com> <04a49de5-eb79-431b-ba5b-eae2536781c6@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <04a49de5-eb79-431b-ba5b-eae2536781c6@redhat.com> X-Spamd-Result: default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MISSING_XM_UA(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_TWELVE(0.00)[12]; ARC_NA(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[dwarf.suse.cz:mid,localhost:helo] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250530_023439_732421_75047EC0 X-CRM114-Status: GOOD ( 22.12 ) X-BeenThere: kexec@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "kexec" Errors-To: kexec-bounces+kexec=archiver.kernel.org@lists.infradead.org On Fri, May 30, 2025 at 11:11:40AM +0200, David Hildenbrand wrote: > On 30.05.25 11:07, Michal Hocko wrote: > > On Fri 30-05-25 10:39:39, David Hildenbrand wrote: > > > On 30.05.25 10:28, Michal Hocko wrote: > > [...] > > > > All that being said I would go with an additional parameter to the > > > > kdump cma setup - e.g. cma_sane_dma that would skip waiting and use 10s > > > > otherwise. That would make the optimized behavior opt in, we do not need > > > > to support all sorts of timeouts and also learn if this is not > > > > sufficient. > > > > > > > > Makes sense? > > > > > > Just so I understand correctly, you mean extending the "crashkernel=" option > > > with a boolean parameter? If set, e.g., wait 1s, otherwise magic number 10? > > > > crashkernel=1G,cma,cma_sane_dma # no wait on transition > > But is no wait ok? I mean, any O_DIRECT with any device would at least take > a bit, no? > > Of course, there is a short time between the crash and actually triggerying > kdump. > > > crashkernel=1G,cma # wait on transition with e.g. 10s timeout > > In general, would work for me. I don't like extending the crashkernel= syntax like this. It would make hooking into the generic parsing code in parse_crashkernel() really ugly. The syntax is already convoluted as is and hard enough to explain in the documentation. Also I don't see how adding a boolean knob is better than adding one that allows setting any arbitrary timeout. It has less flexibility and all the drawbacks of having an extra knob. I am inclined to just setting the fixed delay to 10s for now and adding a sysfs knob later if someone asks for it. Would that work for you? If you don't have other objections to the v3 series, I'll just update it for v6.15 and post again a v4 with the 10s timeout... Thanks for your input! -- Jiri Bohac SUSE Labs, Prague, Czechia