Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2160359ybk; Mon, 11 May 2020 13:29:47 -0700 (PDT) X-Google-Smtp-Source: APiQypKIRfecRglZ/wOwCYlevIrhDMDifGNZTxOK37YwKE4IewTqXtrJIwy2vKbxBe9tGmeTnCAx X-Received: by 2002:aa7:cdd9:: with SMTP id h25mr15573301edw.17.1589228987156; Mon, 11 May 2020 13:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589228987; cv=none; d=google.com; s=arc-20160816; b=nUnJoZf6dS0EiSK3UuRMSYOC6DbfTp9G6ci17kPekAyunbQ9fpwJ5sAkfDOgUgtceQ 78MYD+WCkqO1GN/3f6B/hIm9bp+O8vq3whDEmsU9ErQHWLR+s0Ja5Rgsp3SJQhEXxZVb z3VLTIUfD9Jv628af+TWnCiWfazVWaYgbV5bxwg9HB+cjnezICZZ3HY7PqLeOuJy4/V1 BcfclrI9DuRk6JcVozmAU8bGvrBPvkkx5c9ew8njTvWW0nJt7iwC5RTWWQjLNqIoDAk1 oeYqhWjsc9lDXTrTojwpMHZnSb43xnN1LQjQrYwJhsDL4fw6e5rbiKuzNPLwwR9TdN6r u0YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=K815wH3XWveeKRZFuJe9tJocpF7XI/YaSKtCRWMUM7o=; b=LD4vbzO+2pr0QsM/43BPAjI6Wc+jM2cTATaIY4rck3G4NG+bLnu4TE/UrNKVuclOaU OX8zPNQvslUPZ5ydYC32eurB5cTdmBv2qvWvsvaJgoadRW1NnkLm7b5P8p3fIqBpSajd QGfDIxj9U8WrSOjx6Ib28vPWPXtlmi+rb6CrLVBzYQlk/M8NBZSl33DeBn5uSQGmU9LL BEQTwvRjGe79GIhfQ3Flklshef/V/8CVCbfFYJ3atKzJykCoZF9xpMfzkiczRVUHFhe8 Q7kmdMrIH83X5JvWQqpVX6/q4pNY9HSX5yPbFsUeFGTo2U+8+TAw3hwHqmpgn69GOnpJ 9S0Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q7si7235007edr.137.2020.05.11.13.29.24; Mon, 11 May 2020 13:29:47 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731676AbgEKUZe (ORCPT + 99 others); Mon, 11 May 2020 16:25:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728283AbgEKUZd (ORCPT ); Mon, 11 May 2020 16:25:33 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9913DC061A0C; Mon, 11 May 2020 13:25:33 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id CF1D612848D5A; Mon, 11 May 2020 13:25:32 -0700 (PDT) Date: Mon, 11 May 2020 13:25:31 -0700 (PDT) Message-Id: <20200511.132531.1067573616053698778.davem@davemloft.net> To: bhsharma@redhat.com Cc: netdev@vger.kernel.org, bhupesh.linux@gmail.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, aelior@marvell.com, GR-everest-linux-l2@marvell.com, manishc@marvell.com, irusskikh@marvell.com Subject: Re: [PATCH v2 0/2] net: Optimize the qed* allocations inside kdump kernel From: David Miller In-Reply-To: <1589191902-958-1-git-send-email-bhsharma@redhat.com> References: <1589191902-958-1-git-send-email-bhsharma@redhat.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 11 May 2020 13:25:33 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bhupesh Sharma Date: Mon, 11 May 2020 15:41:40 +0530 ... > Since kdump kernel(s) run under severe memory constraint with the > basic idea being to save the crashdump vmcore reliably when the primary > kernel panics/hangs, large memory allocations done by a network driver > can cause the crashkernel to panic with OOM. > > The qed* drivers take up approximately 214MB memory when run in the > kdump kernel with the default configuration settings presently used in > the driver. With an usual crashkernel size of 512M, this allocation > is equal to almost half of the total crashkernel size allocated. > > See some logs obtained via memstrack tool (see [1]) below: > dracut-pre-pivot[676]: ======== Report format module_summary: ======== > dracut-pre-pivot[676]: Module qed using 149.6MB (2394 pages), peak allocation 149.6MB (2394 pages) > dracut-pre-pivot[676]: Module qede using 65.3MB (1045 pages), peak allocation 65.3MB (1045 pages) > > This patchset tries to reduce the overall memory allocation profile of > the qed* driver when they run in the kdump kernel. With these > optimization we can see a saving of approx 85M in the kdump kernel: > dracut-pre-pivot[671]: ======== Report format module_summary: ======== > dracut-pre-pivot[671]: Module qed using 124.6MB (1993 pages), peak allocation 124.7MB (1995 pages) > <..snip..> > dracut-pre-pivot[671]: Module qede using 4.6MB (73 pages), peak allocation 4.6MB (74 pages) ... Series applied to net-next, thanks.