Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4106571imm; Mon, 30 Jul 2018 08:46:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdhOTBg6TWxuzsP6ljOOsKilf4UVVNXjWmX5yqO7t5TsJNVMT36OiNJAZqLqyfDJJpCCgGm X-Received: by 2002:a17:902:aa07:: with SMTP id be7-v6mr16754417plb.109.1532965612909; Mon, 30 Jul 2018 08:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532965612; cv=none; d=google.com; s=arc-20160816; b=n+U6xy63fyKOxduQijOSPCYrx+vLSt+novgpYRb6lDuwC9k8QvZDYKNWDTgdsb70MQ dzRopqgyklo+kT6WD8vBPyzEPGXNIC5R7tHdMIRpiWZYjh14urG/mecVTuHmt0GhPB7/ LsE56Qu9qvDEed6ByFY23UmHu0mRGn7a8tJaoX1qdHzfQ3zlQ39RqpXUBlRqxJUiGqkU C/AaMJeNzz2oT0R8zxsmqPzSAWL97GzO442VQq1Ty7uP/sbtnf3E6yyoZnm3slvzS6CT R6d2Y8tr7b4K7wmAxnRPfWJBdijkDT/LkRq2gqAkqFonZh96pZG0wd9oAHqxAjNiBBXl yY3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=XuCvqIOWAi33mdO15WNBW+3Ma6zJpryb3uU6AW8XLPc=; b=FEcTIWvdLI2SaYSq7g0LReDzCqX76u6UTavFn6AUST9ooyZ22PVJ78LNMQUKTkD8eQ JIKW3PSZpv1A4H/R3VDeeZ2XREHdvvPgj5HffPNOPp2z4wVz8v0F+zdGdUBhhn9yejl2 ri53cDFEV5rJOvsw3TN7OGh5BhvwOtuqz42/uCNNEmskO1k+KJnyQn3VQ/auCtX4Ociw cXskoOp06C69x5B5JhG0sxBKQEwW9yUeHQTu+/W0Ko6sQmScIGGwOBW8tvkvlG20Wbg7 gzV5J1TEsFKhbtY9SYVVrEXWsgkBmXAJ9Qhsgzohqs0e+AdyA9alrjj0NapRgLXv9NlH QRWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=aYkRz2Xs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u184-v6si10050738pgd.31.2018.07.30.08.46.38; Mon, 30 Jul 2018 08:46:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=aYkRz2Xs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731706AbeG3RUf (ORCPT + 99 others); Mon, 30 Jul 2018 13:20:35 -0400 Received: from a9-112.smtp-out.amazonses.com ([54.240.9.112]:57308 "EHLO a9-112.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726758AbeG3RUf (ORCPT ); Mon, 30 Jul 2018 13:20:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1532965501; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=XuCvqIOWAi33mdO15WNBW+3Ma6zJpryb3uU6AW8XLPc=; b=aYkRz2XssjKJqdzFV+Imod/hQvRITTwVHXRdO59588gvZh7SLCzlEV4BCY8YYODa 0gdXktvgRAH9RJmmpXgMMaTRCBD9E2l8nnD7CnmW7x/ik7lK9OI+lqGfIKSek3M1aux HXo3N8uNOozC3kCnvDkkT73QNF3hulJDFNNI6u14= Date: Mon, 30 Jul 2018 15:45:01 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Vlastimil Babka cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Roman Gushchin , Michal Hocko , Johannes Weiner , David Rientjes , Joonsoo Kim , Mel Gorman , Matthew Wilcox Subject: Re: [PATCH v3 3/7] mm, slab: allocate off-slab freelists as reclaimable when appropriate In-Reply-To: <20180718133620.6205-4-vbabka@suse.cz> Message-ID: <01000164ebdd3863-bc2d38db-9d61-442f-a2e4-6196106d5ce4-000000@email.amazonses.com> References: <20180718133620.6205-1-vbabka@suse.cz> <20180718133620.6205-4-vbabka@suse.cz> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SES-Outgoing: 2018.07.30-54.240.9.112 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 18 Jul 2018, Vlastimil Babka wrote: > In SLAB, OFF_SLAB caches allocate management structures (currently just the > freelist) from kmalloc caches when placement in a slab page together with > objects would lead to suboptimal memory usage. For SLAB_RECLAIM_ACCOUNT caches, > we can allocate the freelists from the newly introduced reclaimable kmalloc > caches, because shrinking the OFF_SLAB cache will in general result to freeing > of the freelists as well. This should improve accounting and anti-fragmentation > a bit. Acked-by: Christoph Lameter