Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp228388pxk; Thu, 24 Sep 2020 04:21:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJMYEfc6pKMx4YGv6Befhkcu/D7o2ylBYDlS981n7CQoFkzNydaSSvACV/RiERXJmvKMOD X-Received: by 2002:a17:906:118d:: with SMTP id n13mr473258eja.162.1600946462633; Thu, 24 Sep 2020 04:21:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600946462; cv=none; d=google.com; s=arc-20160816; b=08nawVF8y0atvs4UWWm2/qYNUGZV40Hqq6WQ8CTauxTI6TOuKJYypzVb7YSuv/V3pl lF5zs/bZEZRpguvzaFz32kKIkfsZtEhh+RdDJ27dTcUDxhyANOnZj18zXbYfwzqOmNCG 0JBd3H0UOPC/9756MgdSf2hcRfqpEZU6ebaWSdQbk+5LSxVl1M5C/lZ0Mjm5ahUOdypB pMrOXI6dH19H4Q+mABjQ8SNPhredAL138lZM+fNfpAAenOOiitmXS1z3OD9uoR4xatTJ 3Flv0ksfsLtEhtVHqEMIWG+xJm9xyCmi6YoGkebWOQSQ7OYhqTH+wW5rf1q6zNPXI8OJ ComA== 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=xqlwroC0ti6SZtly8XWUIPDjGy4hLoHAIsho3lQ0o/s=; b=rC5sR2tKRS7d87eUFTZiANRrIOfSIAQrNe+VVWBmcuwbmNosS5I0DrpLl6yVsGdCE1 52GH1wam8C+WYb60CpkbWKNGpGghSmcryn6gXlfVbylU6xsKxQW39UoFnKp9P5o1jyfM zfpO2/XwnaHLariNMWHQjAxjgY0G0Xq/7d4/Y1t7fokeCjBu6wBrCtAmdYa7wr5sDpfv 1FLafOCP1zwtCkUu17E8iZLJATi4SnDXbxTyTH9pqs15/lV6defPkh1qFmpailbnteog YYgT7sa7/5zodUWs88pr8WMT2VuFMv3cyTDuxd5EoGVSVnPbIWOuJOaOKi1rrZVOMTMG 3XsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=k8+teQds; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s24si2153794edr.379.2020.09.24.04.20.39; Thu, 24 Sep 2020 04:21:02 -0700 (PDT) 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=@infradead.org header.s=casper.20170209 header.b=k8+teQds; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727440AbgIXLTU (ORCPT + 99 others); Thu, 24 Sep 2020 07:19:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726701AbgIXLTT (ORCPT ); Thu, 24 Sep 2020 07:19:19 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B39D4C0613CE; Thu, 24 Sep 2020 04:19:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=xqlwroC0ti6SZtly8XWUIPDjGy4hLoHAIsho3lQ0o/s=; b=k8+teQdsNC7qK5PdZXoGPRYCLa cBlVyfaSePz1y3nZ9iLA7O2VOegTBcHVk6YgGwHuAZN2L3v2D3b8uhIyaI02bM1F7/DROVNUMT6E9 aqaKaUQ4UgwsuTcwTC9Snrr7xFw/voABeb9fXzxzT/1/UrrszjLeJ+2pWYL9w89dO4GH+KkmiTmg/ L1bZvX6sTfju8bElLob694WDYLqfT3+AiJS7fxHauF8YDI2M0SqSt11hNXAwpXCwmR3kjgNfQAKms kHlfy8z6h5EYkANfjXBn3fuR0CSMWCn7aEBxSW7FIUS/8ok/j77p6ulYCCvIiaArD02YYTmPb9SF9 Xv5Jxadg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kLPHI-0001As-5Z; Thu, 24 Sep 2020 11:19:08 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id A695B300DB4; Thu, 24 Sep 2020 13:19:07 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 93D6A203161DB; Thu, 24 Sep 2020 13:19:07 +0200 (CEST) Date: Thu, 24 Sep 2020 13:19:07 +0200 From: Peter Zijlstra To: Uladzislau Rezki Cc: Mel Gorman , "Paul E. McKenney" , Michal Hocko , LKML , RCU , linux-mm@kvack.org, Andrew Morton , Vlastimil Babka , Thomas Gleixner , "Theodore Y . Ts'o" , Joel Fernandes , Sebastian Andrzej Siewior , Oleksiy Avramchenko , Mel Gorman Subject: Re: [RFC-PATCH 2/4] mm: Add __rcu_alloc_page_lockless() func. Message-ID: <20200924111907.GE2628@hirez.programming.kicks-ass.net> References: <20200921074716.GC12990@dhcp22.suse.cz> <20200921154558.GD29330@paulmck-ThinkPad-P72> <20200921160318.GO12990@dhcp22.suse.cz> <20200921194819.GA24236@pc636> <20200922075002.GU12990@dhcp22.suse.cz> <20200922131257.GA29241@pc636> <20200923103706.GJ3179@techsingularity.net> <20200923154105.GO29330@paulmck-ThinkPad-P72> <20200923232251.GK3179@techsingularity.net> <20200924081614.GA14819@pc636> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200924081614.GA14819@pc636> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 24, 2020 at 10:16:14AM +0200, Uladzislau Rezki wrote: > The key point is "enough". We need pages to make a) fast progress b) support > single argument of kvfree_rcu(one_arg). Not vice versa. That "enough" depends > on scheduler latency and vague pre-allocated number of pages, it might > be not enough what would require to refill it more and more or we can overshoot > that would lead to memory overhead. So we have here timing issues and > not accurate model. IMHO. I'm firmly opposed to the single argument kvfree_rcu() idea, that's requiring memory to free memory.