From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1432956AbdDYT3X (ORCPT ); Tue, 25 Apr 2017 15:29:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51398 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1432917AbdDYT3K (ORCPT ); Tue, 25 Apr 2017 15:29:10 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 902827F415 Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=riel@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 902827F415 Message-ID: <1493148546.31102.1.camel@redhat.com> Subject: Re: [patch 2/2] MM: allow per-cpu vmstat_threshold and vmstat_worker configuration From: Rik van Riel To: Marcelo Tosatti , linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Luiz Capitulino , Linux RT Users Date: Tue, 25 Apr 2017 15:29:06 -0400 In-Reply-To: <20170425135846.203663532@redhat.com> References: <20170425135717.375295031@redhat.com> <20170425135846.203663532@redhat.com> Organization: Red Hat, Inc Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 25 Apr 2017 19:29:09 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2017-04-25 at 10:57 -0300, Marcelo Tosatti wrote: > The per-CPU vmstat worker is a problem on -RT workloads (because > ideally the CPU is entirely reserved for the -RT app, without > interference). The worker transfers accumulated per-CPU  > vmstat counters to global counters. > > To resolve the problem, create two tunables: > > * Userspace configurable per-CPU vmstat threshold: by default the  > VM code calculates the size of the per-CPU vmstat arrays. This  > tunable allows userspace to configure the values. > > * Userspace configurable per-CPU vmstat worker: allow disabling > the per-CPU vmstat worker. > > The patch below contains documentation which describes the tunables > in more detail. The documentation says what the tunables do, but not how you should set them in different scenarios, or why. That could be a little more helpful to sysadmins.