Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932429AbbGGRiX (ORCPT ); Tue, 7 Jul 2015 13:38:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50450 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757636AbbGGRiQ (ORCPT ); Tue, 7 Jul 2015 13:38:16 -0400 Date: Tue, 7 Jul 2015 19:36:44 +0200 From: Oleg Nesterov To: Frederic Weisbecker Cc: LKML , Christoph Lameter , Rik van Riel , Andrew Morton Subject: Re: [PATCH 3/3] kmod: Remove unecessary explicit wide CPU affinity setting Message-ID: <20150707173644.GA20422@redhat.com> References: <1436196821-13962-1-git-send-email-fweisbec@gmail.com> <1436196821-13962-4-git-send-email-fweisbec@gmail.com> <20150707163030.GA16647@redhat.com> <20150707171014.GH20498@lerouge> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150707171014.GH20498@lerouge> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1464 Lines: 35 On 07/07, Frederic Weisbecker wrote: > > On Tue, Jul 07, 2015 at 06:30:30PM +0200, Oleg Nesterov wrote: > > > > > Not only useless it even breaks nohz full. The housekeeping work > > > (general kernel internal code that user doesn't care much about) is > > > handled by a reduced set of CPUs in nohz full, precisely those that are > > > not included by nohz_full= kernel parameters. For example unbound > > > workqueues are handled by housekeeping CPUs. > > > > Confused... I do not see how workqueue_attrs->cpumask can depend on > > tick_nohz_full_mask or housekeeping_mask. Could you explain? > > People who want CPU isolation will likely write > /sys/devices/virtual/workqueue/cpumask to a reduced set of CPUs, typically > CPU 0 that is used for housekeeping in nohz full. Well, khelper_wq is not WQ_SYSFS, so I am not sure this is possible. But this doesn't really matter, people can change cpu affinity. But "workqueues are handled by housekeeping CPUs" doesn't look right. > In fact we should add the code which initialize wq_unbound_cpumask > to housekeeping_mask automatically. Perhaps, but until then the changelog above looks really confusing, as if workqueue.c already does this automagically ;) Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/