Received: by 10.223.176.5 with SMTP id f5csp2336807wra; Thu, 8 Feb 2018 12:16:43 -0800 (PST) X-Google-Smtp-Source: AH8x226OsVpxdzpdfs2bprotkJ7QniMQXuWzDGC5fSxbgUGsQDGYmGOWbVCEfbR5vbWEv8nfU35x X-Received: by 2002:a17:902:5914:: with SMTP id o20-v6mr221876pli.196.1518121003554; Thu, 08 Feb 2018 12:16:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518121003; cv=none; d=google.com; s=arc-20160816; b=JdTCfEFrN/CQhK/uICbrahIPdewHZ/X/OxYUCJsqV1mqIjple5nyhtEpUujhs2eR6Y ZdZLxvm1levWAMCmvp/OrdE0AIulveSJLgtwe53i8ZhNKsalK0ojDrDgD2LT0+RsQR2s 3NKM/huTJZXYY7bbtyk2jRD55iAiBbEf391dm5RY8VWpFuMNgWcRnKJwW7cS+SblVaBb Yb8cRCwk9VH7ZYf//9XKh6HoXdJ2M2YW577CpYc5BO5AZ3dVAi4MFlpsZbLm5cqkwQvD WEGMQyXlRl67V17TK1kzyp5cw3JRbKlFNBPiDa0ZtNvdK2Fjemn6tl5FLvZGF62N8g+x HkcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature:arc-authentication-results; bh=ojw9XOdzZD0lqfehai5H+TKqrW80MOaj0SdG3IWbsCM=; b=IOio+Uh49noCoN4l/2An5xRpjAK5gytfajFZdVNpsfY6Bpn4QecazfwOZRm2B6p35M ogjavhE1RAqgPOi5H2j8n3jzUqxmqfQbyQt2aPtbAEeEPpJxNzPKE+R1LcaECYF4bLpR hzd+BQ9L77rsTASGt5N2hRSGgZCz0DppuBKXO5/s2vvgVEK5lwutV5XIkVdARmx+foQ+ JlEmOk2Kx5SakXm+wWM5a0WVJ9aNaJSQexjSAPZ6Qt2H8/dBP+qCSTCitlEss4buVLlf uSPuKtaTGg7mZrVIkYp32zWwSIFz3i+zdqZ5LR4jsEs4jtbeGz97tyxKG4H5MpPObfk1 Bjtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arista.com header.s=googlenew header.b=jAlj9hRS; 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=QUARANTINE sp=REJECT dis=NONE) header.from=arista.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q187si356486pga.547.2018.02.08.12.16.28; Thu, 08 Feb 2018 12:16:43 -0800 (PST) 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=@arista.com header.s=googlenew header.b=jAlj9hRS; 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=QUARANTINE sp=REJECT dis=NONE) header.from=arista.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752403AbeBHUPA (ORCPT + 99 others); Thu, 8 Feb 2018 15:15:00 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:56270 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752368AbeBHUO7 (ORCPT ); Thu, 8 Feb 2018 15:14:59 -0500 Received: by mail-wm0-f67.google.com with SMTP id 143so11645116wma.5 for ; Thu, 08 Feb 2018 12:14:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=googlenew; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=ojw9XOdzZD0lqfehai5H+TKqrW80MOaj0SdG3IWbsCM=; b=jAlj9hRSS+cup+NiaPjUpL7a2T6Slkn09C+PbuzBgDVTxGUBxLUOEulXPFdU52qDW/ CfLsNBanOh4je1oHCEzCHTlL+H+vhlMaPFo1DUJmy2qO+bZX9Lvn9+nyWru+g9IPRfdb U3uYceygGOduOTX9/kvgdqFBXNfpFWZwl3rRjmRvKaxL/QuuVeHFt7UGkDbbDAuMPcLc jrGwzJHNKIvyNgIZG9y7vjNnVemWjSfLPUInnjHlAWit3odDzRJ+MNEpOBL6ZMdv2J9j FoI56EPtepXdbQj/s7aWlN0TNV0GKRVMqc487TfxctNlmGsrHYgoXFDpuPf/pX1b1xX5 6k4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=ojw9XOdzZD0lqfehai5H+TKqrW80MOaj0SdG3IWbsCM=; b=foUhRR5IYavrbxW60XsNoA3tHbeRXmJQHofffwbrexSpQzzMyMegFrPaGeMWb6XvfD 4Aw/hcUFmQxvps0E1iE6y5Tf6U401/uLRRiiUPBIsavInhkomx93pJXQdX0V44FlJjb2 gfz5OiZsKmpDb14m0zGzO8eThWQehGGilYybMcMqYU52EYO3krAa/rb8dVrVdO2Xr1mL wkx2Y22tlS0HVdv3MXUmJgnY3u3r2Kwj7ztshpsh29//OwcUR3kuVde+hbHXkI8QUXc1 UQ0tXv/R6CVO8QU4aVs7dvaNnseBrSAwCdECx9DzsOPAxR/1FUn7z9ikdM5qx5d7opp1 oAsw== X-Gm-Message-State: APf1xPBYqNYXrME6pUk55nVRLahPuOkUpOHYRuFj0MqE4FZ7qnAtO0Zs whwa89dYRsNy41tWGnP2MziYiQ== X-Received: by 10.80.134.221 with SMTP id 29mr462209edu.135.1518120897771; Thu, 08 Feb 2018 12:14:57 -0800 (PST) Received: from dhcp.ire.aristanetworks.com ([217.173.96.166]) by smtp.gmail.com with ESMTPSA id d30sm318124edd.90.2018.02.08.12.14.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Feb 2018 12:14:57 -0800 (PST) Message-ID: <1518120895.2849.14.camel@arista.com> Subject: Re: [RFC PATCH 2/4] softirq: Per vector deferment to workqueue From: Dmitry Safonov To: David Miller , bigeasy@linutronix.de Cc: frederic@kernel.org, linux-kernel@vger.kernel.org, alexander.levin@verizon.com, peterz@infradead.org, mchehab@s-opensource.com, torvalds@linux-foundation.org, hannes@stressinduktion.org, paulmck@linux.vnet.ibm.com, wanpeng.li@hotmail.com, tglx@linutronix.de, akpm@linux-foundation.org, pabeni@redhat.com, rrendec@arista.com, mingo@kernel.org, sgruszka@redhat.com, riel@redhat.com, edumazet@google.com Date: Thu, 08 Feb 2018 20:14:55 +0000 In-Reply-To: <20180208.134506.1374787894560277876.davem@davemloft.net> References: <1516376774-24076-1-git-send-email-frederic@kernel.org> <1516376774-24076-3-git-send-email-frederic@kernel.org> <20180208174450.qjvjy752jf4ngt2g@breakpoint.cc> <20180208.134506.1374787894560277876.davem@davemloft.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.24.6 (3.24.6-1.fc26) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-02-08 at 13:45 -0500, David Miller wrote: > From: Sebastian Andrzej Siewior > Date: Thu, 8 Feb 2018 18:44:52 +0100 > > > May I instead suggest to stick to ksoftirqd? So you run in softirq > > context (after return from IRQ) and if takes too long, you offload > the > > vector to ksoftirqd instead. You may want to play with the metric > on > > which you decide when you want switch to ksoftirqd / account how > long a > > vector runs. > > Having read over this stuff for the past few weeks this is how I feel > as well. Just make ksofbitrq do what we want (only execute the > overloaded softirq vectors). > > The more I look at the workqueue stuff, the more complications and > weird behavioral artifacts we are getting for questionable gain. What about creating several ksoftirqd threads per-cpu? Like I did with boot parameter to specify how many threads and which softirqs to serve. -- Thanks, Dmitry