Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8207964rwb; Wed, 23 Nov 2022 17:34:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf76WmSiz6FcEadkHFs3knYwIvGR2V3i0gevCbq8iV/+DsYe3yc0cuWaFgnMlVEGPVut8EgB X-Received: by 2002:a17:906:5586:b0:7ad:902c:d158 with SMTP id y6-20020a170906558600b007ad902cd158mr11408806ejp.121.1669253653485; Wed, 23 Nov 2022 17:34:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669253653; cv=none; d=google.com; s=arc-20160816; b=SKgxkW8cXk5rSJqqAAyg1lNkS0ZkLMWiIsS72wQq95HAAPGORPn/up9RtVA5TXKf2l 2ZXNLDaQE0fTz5jW9DfDdcbNa1FABvTE/O8jd0+MQiLpRh2mgjH3anBZhQOo//IYGMOK rIkC1sYBRYPlavNzFHzPr+FGAi3rHWS+ndv7Mc8X0N40I4FOXSQqEtOmkZsQFKbOPKaZ Z3yEF/0KXpri48hVpSlCxk5hWiOEN4dmZfUQx06ZGtEgmGDsgwoTQO9GPE50fi9dI95R ehskKDJD8FlSlLuKVJfJ9mfXWdc5xPFLELnxLQ+3S8J8777hC/2BtqGLn/ZfWdZ3rJyw lXMA== 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:dkim-signature:date; bh=kSoIk47rAwpiN9pabAp+IZRqQiebKCqHWLdT35A0A3E=; b=K+F5ffINuMnfIsPU8nLJVDTnzyvMS5ChP9kuEZQ4CLJBrqO86xWa+eP8J0WJ0iFlkY zZt4VHlLbacPDalPee+pH0O84pKutqdGglvgAKave529IVI6QzQse+tmE1zDz8xqQoUZ ph8OLs1jt6C2BjyZJwyyqmLez8Btf+M+HiKAi8sEnIkM3ry+6ifbCUhAn0ua+Vd1R1Vg 18ukmvvKWK+3Yz88t5x6sUmfqAfbjNGeqQ89Lo8KOtQPOdpkCHDrV+IZ2hd2ADDOgjjj vB3w19M7MPQGhzkz2iOML3Yvkgk2/f/xhWhkuKNAH1Mrj45OkNUotV+9wlAgK8yiiJc6 RQ9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=rW0ro0KV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xd4-20020a170907078400b0079d5da30399si16138740ejb.427.2022.11.23.17.33.52; Wed, 23 Nov 2022 17:34:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=rW0ro0KV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229894AbiKXBUM (ORCPT + 88 others); Wed, 23 Nov 2022 20:20:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbiKXBUK (ORCPT ); Wed, 23 Nov 2022 20:20:10 -0500 Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 889D3B54EE for ; Wed, 23 Nov 2022 17:20:09 -0800 (PST) Date: Wed, 23 Nov 2022 17:20:04 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1669252808; h=from:from:reply-to:subject:subject: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=kSoIk47rAwpiN9pabAp+IZRqQiebKCqHWLdT35A0A3E=; b=rW0ro0KVSJkzBJO/DFQ3lHOaWqdsvbxFKZ7ndm41ogrFFbp3F0jmavv+qF1GPQ60geBRqE 0h7+J6e++wyQrY1+rfc16vzgYOCQWFwptmgOWsNISroA8jrbnmYRUf6xxD8VBksYpUoIP8 k9Ructq1YdIVopdOMLFVM/g9NxzqI4E= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Vlastimil Babka Cc: Christoph Lameter , David Rientjes , Joonsoo Kim , Pekka Enberg , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Andrew Morton , Linus Torvalds , Matthew Wilcox , patches@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 07/12] mm, slab: ignore SLAB_RECLAIM_ACCOUNT with CONFIG_SLUB_TINY Message-ID: References: <20221121171202.22080-1-vbabka@suse.cz> <20221121171202.22080-8-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221121171202.22080-8-vbabka@suse.cz> X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 21, 2022 at 06:11:57PM +0100, Vlastimil Babka wrote: > SLAB_RECLAIM_ACCOUNT caches allocate their slab pages with > __GFP_RECLAIMABLE and can help against fragmentation by grouping pages > by mobility, but on tiny systems mobility grouping is likely disabled > anyway and ignoring SLAB_RECLAIM_ACCOUNT might instead lead to merging > of caches that are made incompatible just by the flag. > > Thus with CONFIG_SLUB_TINY, make SLAB_RECLAIM_ACCOUNT ineffective. Hm, do you see disabling all kernel memory accounting functionality with COFNIG_SLUB_TINY? I'd say yes. But in this case need to be consistent and disable it alltogether. Thanks!