Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2942941imm; Thu, 24 May 2018 19:34:23 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqz2gnD6Tmofvb4R3hEKbRS5A2eH0Zno8qUI8gAHPY0CLSqW8zVMj8r+4G1tC693bCGXfd/ X-Received: by 2002:a17:902:2983:: with SMTP id h3-v6mr610613plb.232.1527215663865; Thu, 24 May 2018 19:34:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527215663; cv=none; d=google.com; s=arc-20160816; b=YTsozxtwhfHzVEWsj0LXe9qKLR0TvwBd8vxLbv6ZlncY9c73AhQjfXAnUFjxyNO0xw tredCAeKznrVCJG8VXqWvIZhllahEtTpQv4ud7gMb2ZY309cNnXYQ/Qq7t1vVwLIGwcs RLnPuMT9MPr/VAozsxllHQa+oLl9uXd5KxgZSnGIgyzuPbfcd7US66R7u+ruS9E8AGrk kOuIQyeeHwW9XDHXfxYxgU4RBehyOezoijEXAj8Mh/hAM6OTw7POcw4RetFwR1nN+qqJ NddS60B3XjFmXogd1elI3aw9qIa99K+KfQiCfZBweKwLzOoh/j+12/HJxL8TU06KJg2T 4mXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=/Ep12VWd2RZEhEjrR3aPVft/oWjMWtyFPcpBEsxKtJ0=; b=mJbeKT33S02VoUBt/Ee8Ko/cARyi56jcbxcQhP6JgL9yKbtw7RHWqvRRghsp5OLyo3 xhXt7vCpwyOe8TX5uKylp6gQbfe4J6tWFZmFpWplen8VFZz4lL+K0V/MNORYIRJjUY4e lcJP3E+ZosFGXw4iJ0vtgJNFPltv5/kcmZKUTf/vr8BUTdNTzA6VB+COJB7dvRHRtKWS ZbCc1Tmd7tW/eMRDhDetaO7HYiM7jV9tJXM4STzaZXho1xivddrkXwHwtSSHtAXPsoVv l+iMNF9JvGpjawtkN8NS4SCGRBpsgwKTpztV0JQ6lRMBfh7TdsJZCichR5wt6N52CGLs VGsw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 186-v6si22419836pfg.141.2018.05.24.19.34.09; Thu, 24 May 2018 19:34:23 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967707AbeEXRfI (ORCPT + 99 others); Thu, 24 May 2018 13:35:08 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:44631 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966260AbeEXRfG (ORCPT ); Thu, 24 May 2018 13:35:06 -0400 Received: by mail-oi0-f67.google.com with SMTP id e80-v6so2191736oig.11 for ; Thu, 24 May 2018 10:35:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/Ep12VWd2RZEhEjrR3aPVft/oWjMWtyFPcpBEsxKtJ0=; b=uA2VU42tngRR4MHMjrt9tMm7vt9UXFupwZ9y9/x2iSPCSP4gwyPujSpu6RMtq6W//0 oFlqlfYtuk5JsEZ2WCvkYSg7vdhGT+uh9yMpt8fFIUDBLgsmadecPle6fwY8kHzvfEEh vl2y/t47KkAoc2K539gmC4ZmWy9cbigQ2fn7swO6LRRnsdNq8rzHRA/AX7w1AGHyHyko u+YciQ+s5Su9DvAIDQVDJOCAVJh/0EbcXOvrV9kIyUHGhx5MWWqzvtCpU/qxqsD8kPif K/Dm9XncLojS0DJYlyB3L2FNvlcsWqxrZnVdtbNoZ4DYfbR6IJhyZP/b8fAaRddofZAe 2/pQ== X-Gm-Message-State: ALKqPwcklPtaDPWDvIZ6exSeGUbV6TdAnDCc2ZYt4gqbNrsQ223Iz+al 6rSScNEVlTD8BVdoD4w83WPW3A== X-Received: by 2002:aca:4e43:: with SMTP id c64-v6mr4214737oib.343.1527183306064; Thu, 24 May 2018 10:35:06 -0700 (PDT) Received: from ?IPv6:2601:602:9802:a8dc::d2dd? ([2601:602:9802:a8dc::d2dd]) by smtp.gmail.com with ESMTPSA id x35-v6sm13674276oth.27.2018.05.24.10.35.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 10:35:04 -0700 (PDT) Subject: Re: [RFC PATCH 0/5] kmalloc-reclaimable caches To: Vlastimil Babka , Roman Gushchin Cc: linux-mm@kvack.org, Michal Hocko , Johannes Weiner , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Mel Gorman , Vijayanand Jitta References: <20180524110011.1940-1-vbabka@suse.cz> <20180524121347.GA10763@castle.DHCP.thefacebook.com> From: Laura Abbott Message-ID: <01cbee1d-e5cf-8de1-6610-3043a2c5d5ca@redhat.com> Date: Thu, 24 May 2018 10:35:03 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/24/2018 08:52 AM, Vlastimil Babka wrote: > On 05/24/2018 02:13 PM, Roman Gushchin wrote: >> On Thu, May 24, 2018 at 01:00:06PM +0200, Vlastimil Babka wrote: >>> Hi, >>> >>> - I haven't find any other obvious users for reclaimable kmalloc (yet) >> >> As I remember, ION memory allocator was discussed related to this theme: >> https://lkml.org/lkml/2018/4/24/1288 > > +CC Laura > > Yeah ION added the NR_INDIRECTLY_RECLAIMABLE_BYTES handling, which is > adjusted to page granularity in patch 4. I'm not sure if it should use > kmalloc as it seems to be allocating order-X pages, where kmalloc/slab > just means extra overhead. But maybe if it doesn't allocate/free too > frequently, it could work? > The page pool allocation is supposed to be a slow path but it's one I'd rather not have too much overhead. It also just looks really odd to be allocating higher order pages via kmalloc imho. >>> I did a superset as IIRC somebody suggested that in the older threads or at LSF. >> >> This looks nice to me! >> >> Thanks! >> >