Received: by 10.213.65.68 with SMTP id h4csp3973257imn; Tue, 10 Apr 2018 07:24:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/i2zSVbEIk0mtkNoqHkJiQ+rgRHOD/hRHNFvera7SZOpx5q1BQ09x/tUnA18R04ptDnQ5I X-Received: by 2002:a17:902:b7c7:: with SMTP id v7-v6mr687124plz.190.1523370284179; Tue, 10 Apr 2018 07:24:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523370284; cv=none; d=google.com; s=arc-20160816; b=CI1zDr+RwtdW75Pme0hch0GueQVbQN8GTyxsC2D0VRwKpfK44iTD+93Oz2ZabZ8Pj3 7nHIXLSrtprrWcDqSfLSOiHkia/G/m6JRtuTh3Blq4ukPQwC2F/1xJ4nrrDWLiz2wyZa lp7j+mV3ZBwDniWZdk5IbS72RZxhJ+lAqSsIfeX1iIpYiwJkKOInFajBtjkfzvVHtv9a eVgf23xrv8r8Li0JaNpd/enXfwQJxq1tB32ZAQ3+wDVDqw9lC1H2PMc9rgEXOst1TRJk 3YLMCC7dDdDYsf9jQ657Z3GA20PbRNTwAhjp/yuS9yZzo+kiQpzGaagXkRhYkvXE7kwQ MP0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=pCnohEvbIam2ICGa3A55PhS3TvoJmckDmzS8zwtFMso=; b=J2uNWQyQC7t23hhiqTcS+b8cghS8eHBNY8717sTsWUUD2JQJSa1UJVsTFF/RHNofnK wh1sp09+mXZoBIS8Q2Zy18frunDfzdHOfGEws9mhXtbTii7lGZWXtT/2o9hkCXnsyBmY m4t3qNPWcI8ws7kXKs8FjsOjtaFvqLzv0plfbilaomzvzOjw2Q+DTn/9WXsiSfUYCKxQ TevwEGFodrFVdewFZNJ6dZu2ynQF0gp1pQPsg1M5+psPd4LGlmOFUu0w2vWE2lx4BT4S bbhjnPncdheW8TNpHX37RuIlkL+IhI5OVoalzHcptXWuDIOqq4+VdjKo4YTOL7cB+URt i4DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=R8JOnp8P; 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 h33-v6si2754782plh.483.2018.04.10.07.24.06; Tue, 10 Apr 2018 07:24:44 -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=fail header.i=@gmail.com header.s=20161025 header.b=R8JOnp8P; 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 S1753120AbeDJORM (ORCPT + 99 others); Tue, 10 Apr 2018 10:17:12 -0400 Received: from mail-yb0-f194.google.com ([209.85.213.194]:39661 "EHLO mail-yb0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752812AbeDJORL (ORCPT ); Tue, 10 Apr 2018 10:17:11 -0400 Received: by mail-yb0-f194.google.com with SMTP id g197-v6so4336371ybf.6 for ; Tue, 10 Apr 2018 07:17:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=pCnohEvbIam2ICGa3A55PhS3TvoJmckDmzS8zwtFMso=; b=R8JOnp8P3QXyt2yOpAukMljINpWT5VMOnZUZYGqG8SNicJ/VDGsNSqXfdV5aPShBIL iv1I9Cqb7/BPjOuZ7WJTXUSGyEX7wswAVN9/mlAZQ2Du6sz7XtwBV6tQWw7IHaLAXdzU L2oK36LYH2hMLFUgIF2vNRTzPdpecO3+N1eRxdxPodtv8Q0oUAp6+L81VGci1SbT4ZxC 6HiUINbZV3l4ozIKVeDznJ8APcMPOyquD6Ut8ADNwJ18LNU5+fdez3nUEMMFQoTkAT/v Xw9TMaCIJ98j0OwBmcwr/Dd/sb263PyfCLEJVfqeNqmYaiLKT1NFaArueTFZ3PH6ET/B qrIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=pCnohEvbIam2ICGa3A55PhS3TvoJmckDmzS8zwtFMso=; b=Z1MqNpQzkyTq1PcdYQzt3QtYdN2VnXQb5WHcfwbQIgY0+v3I/RzmBeUpLpGkyfRgeP worUOLCX89WZj6sTlQtlI4C//k475KqHoIhHeJMMpT67POGaAAfQoknrPiikqjFEThp3 OMLHgRvN0qWvWjwQECfmhbFlHdxy9L5DHp1dTCK43T95x8JG2p2V9CGLFTrl6RYWV8SO Xqg3VkyN3qieAuolgQHQu4DZ67mHnCp4PFs/L6ngfWOQ+rD4d+vI8ja4NqDEnaDrTvc7 P4VWXKEbpTelkI6m2pe5OI06I3LuSVxKrHgE4CnRY/rTKXn6KNTs+NsOnYosGBJsdZMb vmtg== X-Gm-Message-State: ALQs6tDoic6UV0MfWraTgiLa/fUs/+fhLN3YsgkKOJ9OgeyUvrHntSWq kPBjmuhkIYL+cJaR+VCBjaY= X-Received: by 2002:a25:a167:: with SMTP id z94-v6mr390229ybh.147.1523369830646; Tue, 10 Apr 2018 07:17:10 -0700 (PDT) Received: from localhost ([2620:10d:c091:180::1:7486]) by smtp.gmail.com with ESMTPSA id u197sm1336749ywu.27.2018.04.10.07.17.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Apr 2018 07:17:09 -0700 (PDT) Date: Tue, 10 Apr 2018 07:17:07 -0700 From: Tejun Heo To: Christopher Lameter Cc: Vlastimil Babka , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Joonsoo Kim , David Rientjes , Pekka Enberg , Lai Jiangshan , John Stultz , Thomas Gleixner , Stephen Boyd Subject: Re: [RFC] mm, slab: reschedule cache_reap() on the same CPU Message-ID: <20180410141707.GL3126663@devbig577.frc2.facebook.com> References: <20180410081531.18053-1-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 10, 2018 at 09:12:08AM -0500, Christopher Lameter wrote: > > @@ -4074,7 +4086,8 @@ static void cache_reap(struct work_struct *w) > > next_reap_node(); > > out: > > /* Set up the next iteration */ > > - schedule_delayed_work(work, round_jiffies_relative(REAPTIMEOUT_AC)); > > + schedule_delayed_work_on(reap_work->cpu, work, > > + round_jiffies_relative(REAPTIMEOUT_AC)); > > schedule_delayed_work_on(smp_processor_id(), work, round_jiffies_relative(REAPTIMEOUT_AC)); > > instead all of the other changes? Yeah, that'd make more sense. Thanks. -- tejun