From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752863AbbC3PnA (ORCPT ); Mon, 30 Mar 2015 11:43:00 -0400 Received: from resqmta-ch2-08v.sys.comcast.net ([69.252.207.40]:56241 "EHLO resqmta-ch2-08v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752743AbbC3Pm7 (ORCPT ); Mon, 30 Mar 2015 11:42:59 -0400 Date: Mon, 30 Mar 2015 10:42:55 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: Michal Hocko cc: Peter Zijlstra , Viresh Kumar , Andrew Morton , hannes@cmpxchg.org, Linaro Kernel Mailman List , Linux Kernel Mailing List , vinmenon@codeaurora.org, shashim@codeaurora.org, mgorman@suse.de, dave@stgolabs.net, koct9i@gmail.com, Linux Memory Management List , Suresh Siddha , Thomas Gleixner Subject: Re: [RFC] vmstat: Avoid waking up idle-cpu to service shepherd work In-Reply-To: <20150330150818.GE3909@dhcp22.suse.cz> Message-ID: References: <359c926bc85cdf79650e39f2344c2083002545bb.1427347966.git.viresh.kumar@linaro.org> <20150326131822.fce6609efdd85b89ceb3f61c@linux-foundation.org> <20150327091613.GE27490@worktop.programming.kicks-ass.net> <20150327093023.GA32047@worktop.ger.corp.intel.com> <20150328095322.GH27490@worktop.programming.kicks-ass.net> <20150330150818.GE3909@dhcp22.suse.cz> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 30 Mar 2015, Michal Hocko wrote: > Why cannot we do something like refresh_cpu_vm_stats from the IRQ > context? Especially the first zone stat part. The per-cpu pagesets is > more costly and it would need a special treatment, alright. A simple > way would be to splice the lists from the per-cpu context and then free > those pages from the kthread context. That would work. > I am still wondering why those two things were squashed into a single > place. Why kswapd is not doing the pcp cleanup? They were squashed together by me for conveniences sake. They could be separated. AFAICT the pcp cleanup could be done only on demand and we already have logic for that when flushihng via IPI.