Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1617845

Re: net/sched: latent livelock in dev_deactivate_many() due to yield() usage

Path csiph.com!weretis.net!feeder4.news.weretis.net!news.redatomik.org!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: net/sched: latent livelock in dev_deactivate_many() due to yield() usage
Date Thu, 06 Apr 2017 12:30:03 +0200
Message-ID <ttcPV-7fO-29@gated-at.bofh.it> (permalink)
References <trFjj-40B-3@gated-at.bofh.it> <tt3CW-1eT-5@gated-at.bofh.it>
X-Original-To Stephen Hemminger <stephen@networkplumber.org>
Dkim-Signature v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=pFWLW3FHk2aKlAW4EuJhQ8QdQLHPLJOPhEOf6JyQe6g=; b=l3s4vvBesYDLEPDIua+8/Oed8 SdGzZwfoaQaScITT4ejy5L14NzmLMWBnynX51cJxUdcG/PtzQ5NeV3lMnIJib/DnNccuhcRNJ1UsS 0GX6o9czW+DC5sXqFCJlO34pW4SgpLRPwutI80mPvI6RsgcRJ3ijqD7Jgkbuu5zYn4hGCRuF/qfRW 2u9xS1VZFOX1OTmCbDpgHyVAeHaVCedhVOyvmSsc6k6ERzghbGtYZmduFze40GwJlU/SC/WAE3SD8 hqTRkpe5x5xypRDqo2w4bFdUSLwbxfHmiq7ue+xlblVtJmYiSmDpROoOcSf0UcNNmim+MOFpxw4M1 3NnA//f8Q==;
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent NeoMutt/20170113 (1.7.2)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 19
Organization linux.* mail to news gateway
X-Original-Cc Mike Galbraith <efault@gmx.de>, netdev <netdev@vger.kernel.org>, LKML <linux-kernel@vger.kernel.org>
X-Original-Date Thu, 6 Apr 2017 12:28:44 +0200
X-Original-Message-ID <20170406102844.jr66tcf4qfmlj3wm@hirez.programming.kicks-ass.net>
X-Original-References <1491107321.13631.33.camel@gmx.de> <20170405173105.7f41d7fc@plumbers-lap.home.lan>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1617845

Show key headers only | View raw


On Wed, Apr 05, 2017 at 05:31:05PM -0700, Stephen Hemminger wrote:
> On Sun, 02 Apr 2017 06:28:41 +0200
> Mike Galbraith <efault@gmx.de> wrote:
> 
> > Livelock can be triggered by setting kworkers to SCHED_FIFO, then
> > suspend/resume.. you come back from sleepy-land with a spinning
> > kworker.  For whatever reason, I can only do that with an enterprise
> > like config, my standard config refuses to play, but no matter, it's
> > "Typical broken usage".
> > 
> > (yield() should be rendered dead)
> 
> The kernel is not normally built to have kworkers run at SCHED_FIFO.
> The user has do some action to alter the process priorities.
> 
> I classify this as user error. We don't support killing kworker threads
> either.

PI can boost anybody to FIFO, all you need is to be holding a lock.

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

net/sched: latent livelock in dev_deactivate_many() due to yield()  usage Mike Galbraith <efault@gmx.de> - 2017-04-02 06:30 +0200
  Re: net/sched: latent livelock in dev_deactivate_many() due to  yield() usage Cong Wang <xiyou.wangcong@gmail.com> - 2017-04-05 00:40 +0200
    Re: net/sched: latent livelock in dev_deactivate_many() due to  yield() usage Mike Galbraith <efault@gmx.de> - 2017-04-05 05:30 +0200
      Re: net/sched: latent livelock in dev_deactivate_many() due to  yield() usage Cong Wang <xiyou.wangcong@gmail.com> - 2017-04-05 07:30 +0200
        Re: net/sched: latent livelock in dev_deactivate_many() due to  yield() usage Mike Galbraith <efault@gmx.de> - 2017-04-05 08:20 +0200
          Re: net/sched: latent livelock in dev_deactivate_many() due to  yield() usage Cong Wang <xiyou.wangcong@gmail.com> - 2017-04-06 02:00 +0200
            Re: net/sched: latent livelock in dev_deactivate_many() due to  yield() usage Mike Galbraith <efault@gmx.de> - 2017-04-06 03:10 +0200
        Re: net/sched: latent livelock in dev_deactivate_many() due to  yield() usage Peter Zijlstra <peterz@infradead.org> - 2017-04-06 12:30 +0200
  Re: net/sched: latent livelock in dev_deactivate_many() due to  yield() usage Stephen Hemminger <stephen@networkplumber.org> - 2017-04-06 02:40 +0200
    Re: net/sched: latent livelock in dev_deactivate_many() due to  yield() usage Mike Galbraith <efault@gmx.de> - 2017-04-06 03:30 +0200
    Re: net/sched: latent livelock in dev_deactivate_many() due to  yield() usage Peter Zijlstra <peterz@infradead.org> - 2017-04-06 12:30 +0200
      Re: net/sched: latent livelock in dev_deactivate_many() due to  yield() usage Peter Zijlstra <peterz@infradead.org> - 2017-04-06 13:10 +0200

csiph-web