From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933533AbcIAMsp (ORCPT ); Thu, 1 Sep 2016 08:48:45 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:60882 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932383AbcIAMsn (ORCPT ); Thu, 1 Sep 2016 08:48:43 -0400 Date: Thu, 1 Sep 2016 14:48:39 +0200 From: Peter Zijlstra To: Jesper Dangaard Brouer Cc: Eric Dumazet , David Miller , Rik van Riel , Paolo Abeni , Hannes Frederic Sowa , linux-kernel , netdev , Jonathan Corbet Subject: Re: [PATCH] softirq: let ksoftirqd do its job Message-ID: <20160901124839.GU10153@twins.programming.kicks-ass.net> References: <20160831164216.2901190c@redhat.com> <1472661956.14381.335.camel@edumazet-glaptop3.roam.corp.google.com> <1472665349.14381.356.camel@edumazet-glaptop3.roam.corp.google.com> <20160831214043.2f44cf08@redhat.com> <1472676150.14381.363.camel@edumazet-glaptop3.roam.corp.google.com> <20160831235116.33b1946b@redhat.com> <20160901130231.58355405@redhat.com> <20160901115356.GT10153@twins.programming.kicks-ass.net> <20160901142925.63a5031b@redhat.com> <20160901143859.730826ed@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160901143859.730826ed@redhat.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 01, 2016 at 02:38:59PM +0200, Jesper Dangaard Brouer wrote: > On Thu, 1 Sep 2016 14:29:25 +0200 > Jesper Dangaard Brouer wrote: > > > On Thu, 1 Sep 2016 13:53:56 +0200 > > Peter Zijlstra wrote: > > > > > On Thu, Sep 01, 2016 at 01:02:31PM +0200, Jesper Dangaard Brouer wrote: > > > > PID S %CPU TIME+ COMMAND > > > > 3 R 50.0 29:02.23 ksoftirqd/0 > > > > 10881 R 10.7 1:01.61 udp_sink > > > > 10837 R 10.0 1:05.20 udp_sink > > > > 10852 S 10.0 1:01.78 udp_sink > > > > 10862 R 10.0 1:05.19 udp_sink > > > > 10844 S 9.7 1:01.91 udp_sink > > > > > > > > This is strange, why is ksoftirqd/0 getting 50% of the CPU time??? > > > > > > Do you run your udp_sink thingy in a cpu-cgroup? > > > > That was also Paolo's feedback (IRC). I'm not aware of it, but it > > might be some distribution (Fedora 22) default thing. > > Correction, on the server-under-test, I'm actually running RHEL7.2 > > > > How do I verify/check if I have enabled a cpu-cgroup? > > Hannes says I can look in "/proc/self/cgroup" > > $ cat /proc/self/cgroup > 7:net_cls:/ > 6:blkio:/ > 5:devices:/ > 4:perf_event:/ > 3:cpu,cpuacct:/ > 2:cpuset:/ > 1:name=systemd:/user.slice/user-1000.slice/session-c1.scope > > And that "/" indicate I've not enabled cgroups, right? Mostly so. I think RHEL/Fedora has SCHED_AUTOGROUP enabled, and you can find that through: cat /proc/self/autogroup And disable with the noautogroup boot param, or: echo 0 > /proc/sys/kernel/sched_autogroup_enabled although this latter will leave the current state intact while avoiding creation of any further autogroups iirc.