Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934329AbeAKTnl (ORCPT + 1 other); Thu, 11 Jan 2018 14:43:41 -0500 Received: from mail-it0-f50.google.com ([209.85.214.50]:35546 "EHLO mail-it0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753163AbeAKTnk (ORCPT ); Thu, 11 Jan 2018 14:43:40 -0500 X-Google-Smtp-Source: ACJfBov4jeavMZXcqWMhDl/bJ7ORsx9OY0HQ24XkSJ3IL/feNF6iXpBlceny23k92Mm9dXhZcfoMQfMJRCyhow/3PWM= MIME-Version: 1.0 In-Reply-To: References: <20180109133623.10711-1-dima@arista.com> <20180109133623.10711-2-dima@arista.com> <1515620880.3350.44.camel@arista.com> <20180111032232.GA11633@lerouge> <20180111044456.GC11633@lerouge> <1515681091.3039.21.camel@arista.com> <20180111163204.GE6176@hirez.programming.kicks-ass.net> From: Linus Torvalds Date: Thu, 11 Jan 2018 11:43:23 -0800 X-Google-Sender-Auth: Sfs9GK6Os9wsdw7peua48iwIH0c Message-ID: Subject: Re: [RFC 1/2] softirq: Defer net rx/tx processing to ksoftirqd context To: Eric Dumazet Cc: Peter Zijlstra , Dmitry Safonov , Frederic Weisbecker , LKML , Dmitry Safonov <0x7f454c46@gmail.com>, Andrew Morton , David Miller , Frederic Weisbecker , Hannes Frederic Sowa , Ingo Molnar , "Levin, Alexander (Sasha Levin)" , Paolo Abeni , "Paul E. McKenney" , Radu Rendec , Rik van Riel , Stanislaw Gruszka , Thomas Gleixner , Wanpeng Li Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Thu, Jan 11, 2018 at 11:15 AM, Eric Dumazet wrote: > > How are we supposed to know this particular workload is problematic > for innocent user threads on the same cpu ? Put that question another way: how is the _softirq_ code supposed to know? If you can't know, then the softirq code definitely can't know either. It has even less information. It doesn't know about NAPI, it doesn't know about irq steering, it doesn't know anything at all. Linus