Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp28657pxb; Wed, 24 Feb 2021 17:11:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwecFCOhIXw680fisUjLn3sIMf4DsDfyM8Yhmef19mH81X7z2Eis8Q0Nf+y+Vslvtf/h3f3 X-Received: by 2002:a17:906:5298:: with SMTP id c24mr343298ejm.175.1614215516112; Wed, 24 Feb 2021 17:11:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614215516; cv=none; d=google.com; s=arc-20160816; b=FVk4Qiz9HGjEXIw+yY5E9oKrgNFfPF8lrLo5/8eKhTkXmdGRW1E5Kpwvy2A8DxFRbk 8mYP7SOAoM1mFd6aQ4h790ws1Xrfrr2L2zjx2tHVqCtH9sh5QDrki53yQvBi47fkY3IJ 80WcQexRtUMVFplNBJ8pkYFKEzRDKIrPdF+jCq92Febg8c5NPOqZ8oAOSkwrLyswuuHn EGS4tcJjbjTczTyH2Ci36b+42uiiW/uAXGjdEjL8NuT1R87M6uyPQAsmnus8InOxbeGi eHyhT/p0A3PZs4SZtIinuH7RaLjmUHfzgOZoU88plUJeAUOZ+LfvengnAmNY3tbdK6ST 5tCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=DCXTcZThBihc1XjXSpDC+NKG8+LXHwaq2Ta/n6GaVzg=; b=xhzBALvJ4LE9jEF6e195Ubw5Zuou//k6yCCZ0AB5Ns0omcRiM4FDNvzfdQ4b3UDp2X w1o+v5Lout1N+vqA2Tv7YnE1TFlTPSO5Pg2e9kigWdDojiizufYY5mutO0zDbhkacMfQ itEjIzSTQrX6gPjz2Og1qbyAhbMaY047CQJo+dgD2P6FNYp0xXLSntWd/3aUSZo9X5d8 OAqwgb34TNlV5cGYv6QqOsZA+a64Mce4nKtUNygTGWG4PfBWAuLiv3O/3GfRUsKcVP2y CI+LJfrAvtIY7R8+zk3AQt3CmmWJkSUQscG19P/IYuF4QVG2iTsGmRqUkxoaAHP8vBvv XTJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lESkDNtg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si2458567ejb.185.2021.02.24.17.11.31; Wed, 24 Feb 2021 17:11:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lESkDNtg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235722AbhBXQtn (ORCPT + 99 others); Wed, 24 Feb 2021 11:49:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:38114 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231274AbhBXQt1 (ORCPT ); Wed, 24 Feb 2021 11:49:27 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4B8AC64F04; Wed, 24 Feb 2021 16:48:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614185325; bh=bkI+7jdAkAKPzrBha5mtz/S+U24xvZbTS+QNnlrcp/Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=lESkDNtgLdaUKCI1sXJmDOGuVp2xbhwwB/d7p4bdpkvP5uERgvycaRqgkTCwlotqH w2yfc0m+U+oOCfKy4pYo0jP7V/HmR0F8+LI0rNvjxtlspJmS8LCh6f75l7CtXJDyZ2 ZDVfJmhEKGE321/Og9QfA+TRaFwcqB+tTc/LVIMp6DHaeReNHK3KQyuC4smx9tpbvg f56F73rDhI9D5AEPC8DlrzThsG4TVlXP2gNT2X7ysQFmxaTiP7XJvp1m+/tduKSe0D YXR9Y16Yv83MjDRBwTPfc5sd/EQ1mroaNFU4S2s/4DhEM4iMrsdBRvdxUe4bOnUhxD 9rq8E/6U830tQ== Date: Wed, 24 Feb 2021 08:48:41 -0800 From: Jakub Kicinski To: Coiby Xu Cc: netdev@vger.kernel.org, kexec@lists.infradead.org, intel-wired-lan@lists.osuosl.org, Jesse Brandeburg , Tony Nguyen , "David S. Miller" , open list Subject: Re: [RFC PATCH 4/4] i40e: don't open i40iw client for kdump Message-ID: <20210224084841.50620776@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210224114141.ziywca4dvn5fs6js@Rk> References: <20210222070701.16416-1-coxu@redhat.com> <20210222070701.16416-5-coxu@redhat.com> <20210223122207.08835e0b@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20210224114141.ziywca4dvn5fs6js@Rk> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Feb 2021 19:41:41 +0800 Coiby Xu wrote: > On Tue, Feb 23, 2021 at 12:22:07PM -0800, Jakub Kicinski wrote: > >On Mon, 22 Feb 2021 15:07:01 +0800 Coiby Xu wrote: > >> i40iw consumes huge amounts of memory. For example, on a x86_64 machine, > >> i40iw consumed 1.5GB for Intel Corporation Ethernet Connection X722 for > >> for 1GbE while "craskernel=auto" only reserved 160M. With the module > >> parameter "resource_profile=2", we can reduce the memory usage of i40iw > >> to ~300M which is still too much for kdump. > >> > >> Disabling the client registration would spare us the client interface > >> operation open , i.e., i40iw_open for iwarp/uda device. Thus memory is > >> saved for kdump. > >> > >> Signed-off-by: Coiby Xu > > > >Is i40iw or whatever the client is not itself under a CONFIG which > >kdump() kernels could be reasonably expected to disable? > > > > I'm not sure if I understand you correctly. Do you mean we shouldn't > disable i40iw for kdump? Forgive my ignorance - are the kdump kernels separate builds? If they are it'd be better to leave the choice of enabling RDMA to the user - through appropriate Kconfig options.