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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1294C433EF for ; Fri, 17 Dec 2021 13:13:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E99636B0071; Fri, 17 Dec 2021 08:13:27 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E48F76B0072; Fri, 17 Dec 2021 08:13:27 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D5F416B0073; Fri, 17 Dec 2021 08:13:27 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id C83106B0071 for ; Fri, 17 Dec 2021 08:13:27 -0500 (EST) Received: from smtpin22.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 96440813BC for ; Fri, 17 Dec 2021 13:13:17 +0000 (UTC) X-FDA: 78927327234.22.7E8E982 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf25.hostedemail.com (Postfix) with ESMTP id D0C83A0008 for ; Fri, 17 Dec 2021 13:13:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=KG1YXxFiuZUbxpQVPpmlOGMkd4ccqHyGA24slpmvC8M=; b=kHMD6TQkGOepJIlUYbYaU3k+Ev l8PDd5qgN8fEFznnwI6g3i48bIndkiMZdTT141I+okxKUM/PdaPBhZnMZURxMj08flHrRvJppYPvh DpciasNwhsIs2w+QQW+OXV2j6dfZvgK2aZowY0mlrCZ/0d952tU+JsHSFCvD8fxyem7WUCx6vddao thaH17VXdQmszHgeVsioOQjpnMlCzBtXNSLOaRe5rzRq/bnwml4Tu3/da1A/lfPOA5YkIiKDmcco9 475kQ5ztarAdSRWvtAEtPdfHnT6IrRpYhKKOYHLMXQ9cI1XYOHYP7n5xXKT1k3FQM8sgIX77wzac6 NLj52F9w==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1myD2d-00GiEA-Tr; Fri, 17 Dec 2021 13:12:55 +0000 Date: Fri, 17 Dec 2021 13:12:55 +0000 From: Matthew Wilcox To: xiaoqiang zhao Cc: Muchun Song , akpm@linux-foundation.org, hannes@cmpxchg.org, mhocko@kernel.org, vdavydov.dev@gmail.com, shakeelb@google.com, guro@fb.com, shy828301@gmail.com, alexs@kernel.org, richard.weiyang@gmail.com, david@fromorbit.com, trond.myklebust@hammerspace.com, anna.schumaker@netapp.com, jaegeuk@kernel.org, chao@kernel.org, kari.argillander@gmail.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org, zhengqi.arch@bytedance.com, duanxiongchun@bytedance.com, fam.zheng@bytedance.com, smuchun@gmail.com Subject: Re: [PATCH v4 00/17] Optimize list lru memory consumption Message-ID: References: <20211213165342.74704-1-songmuchun@bytedance.com> <745ddcd6-77e3-22e0-1f8e-e6b05c644eb4@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <745ddcd6-77e3-22e0-1f8e-e6b05c644eb4@gmail.com> X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: D0C83A0008 X-Stat-Signature: 8jadya6ustn4gemzp5mkutbt5p7gej4c Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=kHMD6TQk; spf=none (imf25.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none X-HE-Tag: 1639746790-238639 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, Dec 17, 2021 at 06:05:00PM +0800, xiaoqiang zhao wrote: >=20 >=20 > =E5=9C=A8 2021/12/14 0:53, Muchun Song =E5=86=99=E9=81=93: > > This series is based on Linux 5.16-rc3. > >=20 > > In our server, we found a suspected memory leak problem. The kmalloc-= 32 > > consumes more than 6GB of memory. Other kmem_caches consume less than= 2GB > > memory. > >=20 > > After our in-depth analysis, the memory consumption of kmalloc-32 sla= b > > cache is the cause of list_lru_one allocation. >=20 > IIUC, you mean: "the memory consumption of kmalloc-32 slab cache is > caused by list_lru_one allocation" >=20 Please trim the unnecessary parts. You quoted almost 200 extra lines after this that I (and everybody else reading) have to look through to see if you said anything else.