Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1001846pxb; Thu, 28 Jan 2021 05:59:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCAjnNgkgf8SDVbldAnVn0dC/pVNfsVPs8aA5EpWJ2RXUmp2mTpNJutLboR8pwY+CkIWie X-Received: by 2002:aa7:da98:: with SMTP id q24mr12288202eds.370.1611842380236; Thu, 28 Jan 2021 05:59:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611842380; cv=none; d=google.com; s=arc-20160816; b=gvXXjwKo3YJPjDDHMawvqcnrO//IxgETT041GRsdpFidz86oWRS34cD0r+0tdw3JWR PX0FXZSKa7xZF9SvmAyp2shWy+WB/cSl7eoX2RYzY5FdZMeUWju8bT7q55BXu7h7u7dx H4URghutKKTN66HbMSoR4pWxH/LtcvCcbhQ6uiWRH5e49HTymymqMZFPSUWF4/7u2GBl S+nD9/1s3VkcZrupKjUvsLhSiOv1HQJcp+wRn/vJmNpAQhNdeFp3nButIh4mTa9X20Nk n4vxlfs1Jc2RVkX8EbXc4XYHPBj03D2sbonyU51Pt0bynIZXBgBPOb6eQocdHcoglaKp poFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=S2RipEAGjkALucqYfiM9qo0yGIYcs4S2Tqn5F8XA884=; b=VD3U5aMc7rfAqD5eJJM6gGRbfXFYniinNIfGM6iSrJq66gh+jHZSIfrKUE8LvfUNBL 509+DgAggp0eI0SQduDHYR2vaQdOONweBIlxT4fhyLjB+e12O3VOshXRvSCLeMtJN92z sLYCNLYAHU/Tq08M1pSHzr3moBVFKM03jeP/jvYY3x8WlMxBosDzfgGj/cXdBaBUf6i3 bm3xAxoj7iqkNWJ8sdv3M7R01M++nJmSwy7PQP2vN04fcHhQ/hDuF2PiduNsEhQK41+b p6y3szZZjXhX7NkWCxS/UdaoQJnpg6mr9KCsw1QjDchEe/clVEb4TG9firQaxJp1pETE UgMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=PqaCl56u; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mm24si2547325ejb.266.2021.01.28.05.59.15; Thu, 28 Jan 2021 05:59:40 -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=@suse.com header.s=susede1 header.b=PqaCl56u; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231124AbhA1N6B (ORCPT + 99 others); Thu, 28 Jan 2021 08:58:01 -0500 Received: from mx2.suse.de ([195.135.220.15]:48700 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbhA1N55 (ORCPT ); Thu, 28 Jan 2021 08:57:57 -0500 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> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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