Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2082092pja; Thu, 26 Mar 2020 09:24:52 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuEf3U/SzC761+OVOVtX3pHcFyBvgY4ufvi8surnwbJLltjklN+jd84GgR0t0VOsbWEwEGc X-Received: by 2002:aca:ed4b:: with SMTP id l72mr594567oih.95.1585239892523; Thu, 26 Mar 2020 09:24:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585239892; cv=none; d=google.com; s=arc-20160816; b=wNmY6xPKe7IHCbMYwtqc6WtMWM+T//3Q9oz2gwInWCv7OxkXe8+tDC/SJWQqHswA+4 OjpnUWDuPd0CS9F3oJhB36rhCrTC5V1DJyN+0gyM6jyL54vaF1q3woWkWgWn4g7XT31z VHUikQ5t8l9BiicH6lRBHK0hTCPrTjulcTnkumeGRLRqxY427GGWpx2EX+5zvJbIjxuc SXRss1lVlZIRAqYTYv77UMS0Ny+P3nabYe2rEUUjmln5Apa5AQiZlwPtK1fNJCuQ9DCh LuJFxf6aAcDrmt3b9x4ayAPXwDXLn6pfkRXhr4Od+JDSGaZ9O1nnu7m80vWpn6sfYRpf Q3/w== 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; bh=7sLHXvCJNKCqDU+kcxHN6XaJlDteH/39W6lnJ1AdbB8=; b=wjL4yDvl7AwD1rr1wOxD/v8Wq4sG1SojppWlJc0kSMh8jYJC4FkfqtzqkL9yRApYm6 s1jMZLeDxWSChPRo9Fd49g1FFFVkLK7cHH0Oh5l6Vap7/9t5GKMfDrcwFCJ0MntuZJ5H w2x1SepmmcyinMGsX16bpKXj+xieuWspScyFURyIylKHjZKQIXKKT/0Nj7V2jNMSgo4V CCv3FXLGtOrYqK1yzbnSO8NCj/EiOEPTQb2yJeALHQTb26XmItAWJbiQhtlGNwF589kT q9FzCMN3ktltLs2uU2h6K+oa09c2/ZW7/z1UWvugm4HDSm3mV/SO4Nao7MznwXwWxQ3Q nbXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=B9jVZT+i; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17si1162993oov.44.2020.03.26.09.24.36; Thu, 26 Mar 2020 09:24:52 -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=pass header.i=@kernel.org header.s=default header.b=B9jVZT+i; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728377AbgCZQWW (ORCPT + 99 others); Thu, 26 Mar 2020 12:22:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:39098 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728055AbgCZQWW (ORCPT ); Thu, 26 Mar 2020 12:22:22 -0400 Received: from localhost (lfbn-ncy-1-985-231.w90-101.abo.wanadoo.fr [90.101.63.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C13802083E; Thu, 26 Mar 2020 16:22:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585239741; bh=q3P/MM00/TjaoN0bD6LqkI388ZCVFcS+n4LUIF5KCYo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B9jVZT+iWYixmSOf/Eov6Hd3J/SsuXrwRW1PnRUx6kuaicKfI92SDj17OUPBT5hgn 1PQ6ZbsG9pyJ36A8SfrsR+Mf8L7/esSoh+79l7nCucVCXPeBXlWiuCCDlboUzdNJJ7 JROAd9PVFH/3vwCAIvaNF/w39lnpzfcNfxWjsLYU= Date: Thu, 26 Mar 2020 17:22:19 +0100 From: Frederic Weisbecker To: David Laight Cc: 'Marcelo Tosatti' , Thomas Gleixner , Chris Friesen , "linux-kernel@vger.kernel.org" , Christoph Lameter , Jim Somerville , Andrew Morton , Frederic Weisbecker , Peter Zijlstra Subject: Re: [PATCH v2] isolcpus: affine kernel threads to specified cpumask Message-ID: <20200326162218.GB3946@lenoir> References: <20200323135414.GA28634@fuller.cnet> <87k13boxcn.fsf@nanos.tec.linutronix.de> <87imiuq0cg.fsf@nanos.tec.linutronix.de> <20200324152016.GA25422@fuller.cnet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 25, 2020 at 06:05:27PM +0000, David Laight wrote: > From: Marcelo Tosatti > > Sent: 24 March 2020 15:20 > > > > This is a kernel enhancement to configure the cpu affinity of kernel > > threads via kernel boot option isolcpus=no_kthreads,, > > > > When this option is specified, the cpumask is immediately applied upon > > thread launch. This does not affect kernel threads that specify cpu > > and node. > > > > This allows CPU isolation (that is not allowing certain threads > > to execute on certain CPUs) without using the isolcpus=domain parameter, > > making it possible to enable load balancing on such CPUs > > during runtime > ... > > How about making it possible to change the default affinity > for new kthreads at run time? > Is it possible to change the affinity of existing threads? > Or maybe only those that didn't specify an explicit one?? That's already possible yes, most unbound kthreads are accessible through /proc including kthreadd from which new kthread will inherit their CPU affinity. > > David > > - > Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK > Registration No: 1397386 (Wales) >