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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 071BCC433DB for ; Thu, 28 Jan 2021 13:57:15 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5CC0D64DD6 for ; Thu, 28 Jan 2021 13:57:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5CC0D64DD6 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 78D146B007B; Thu, 28 Jan 2021 08:57:13 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 73DE66B007D; Thu, 28 Jan 2021 08:57:13 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5DD746B007E; Thu, 28 Jan 2021 08:57:13 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0023.hostedemail.com [216.40.44.23]) by kanga.kvack.org (Postfix) with ESMTP id 44A0A6B007B for ; Thu, 28 Jan 2021 08:57:13 -0500 (EST) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 0089C1E1C for ; Thu, 28 Jan 2021 13:57:12 +0000 (UTC) X-FDA: 77755335546.16.moon88_0707126275a0 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin16.hostedemail.com (Postfix) with ESMTP id D1886100E6917 for ; Thu, 28 Jan 2021 13:57:12 +0000 (UTC) X-HE-Tag: moon88_0707126275a0 X-Filterd-Recvd-Size: 3040 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf12.hostedemail.com (Postfix) with ESMTP for ; Thu, 28 Jan 2021 13:57:12 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1611842231; 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=S2RipEAGjkALucqYfiM9qo0yGIYcs4S2Tqn5F8XA884=; b=PqaCl56ujHm2bP9OoWJY3JiPBzBqTsaqdlmuOBE0hZWRpDX9gD/5qfVHMOl0LIRFJFdxDq y3WstcNbzhvD5pWHquB8cBQifeAz4OWnWTlaKNeIhszax3BmvOcxmMjGstg5p5ROw7djeu Fhx+TRURrL/1SJK5jg3OxfEV83g5Saw= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 25E39ABD6; Thu, 28 Jan 2021 13:57:11 +0000 (UTC) Date: Thu, 28 Jan 2021 14:57:10 +0100 From: Michal Hocko To: Mel Gorman Cc: Vincent Guittot , Vlastimil Babka , Christoph Lameter , Bharata B Rao , linux-kernel , linux-mm@kvack.org, David Rientjes , Joonsoo Kim , Andrew Morton , guro@fb.com, Shakeel Butt , Johannes Weiner , aneesh.kumar@linux.ibm.com, Jann Horn Subject: Re: [RFC PATCH v0] mm/slub: Let number of online CPUs determine the slub page order Message-ID: References: <20201118082759.1413056-1-bharata@linux.ibm.com> <20210121053003.GB2587010@in.ibm.com> <20210126085243.GE827@dhcp22.suse.cz> <20210126135918.GQ827@dhcp22.suse.cz> <20210128134512.GF3592@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210128134512.GF3592@techsingularity.net> 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 Thu 28-01-21 13:45:12, Mel Gorman wrote: [...] > So mostly this is down to the number of times SLUB calls into the page > allocator which only caches order-0 pages on a per-cpu basis. I do have > a prototype for a high-order per-cpu allocator but it is very rough -- > high watermarks stop making sense, code is rough, memory needed for the > pcpu structures quadruples etc. Thanks this is really useful. But it really begs a question whether this is a general case or more an exception. And as such maybe we want to define high throughput caches which would gain a higher order pages to keep pace with allocation and reduce the churn or deploy some other techniques to reduce the direct page allocator involvement. -- Michal Hocko SUSE Labs