Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1030920ybe; Wed, 4 Sep 2019 11:25:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgDsFf5b3H9qp2SlkNbuJH4lrnYjOaVFy+HCelGQlH77BH7FRecsjtClSvjU1jGL1GZcx1 X-Received: by 2002:a63:f926:: with SMTP id h38mr36258884pgi.80.1567621523783; Wed, 04 Sep 2019 11:25:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567621523; cv=none; d=google.com; s=arc-20160816; b=PbhKBXo6BWo8hKN+SHR/K4yHwn9lzHk5Tn6PWG1VnaZnrsdpU1YyH9Ux6V9bjFw+v5 seLtQNQK3NOSYaLF7C7bVTsghR98YLj4Xc4uQo6nLoxYW0N0P1XdslyKHTevbdM0LDKU sbSkzCnYIh4h1qtMY7YUvVr9ayZlq9MRlRjEzqQ/OsHct0KFQI7RpA8unI+0au2np5aO EBsOPd2K6EXaC7gZ4EHfAXND6zv+KHpe/RuXmvMTIvxev6sjRTsAkjGJ1eeoztBG0i89 QkuUVsKAWc+qW8racxwJxaIOfYRMtUE1TFgD21YxE1B1P44xG9W7xjV1JINr+6kvMPKe hYBA== 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=YWE0H+jTpcN/XC6vFgWxU0Ifm430UGtAcUQBmeqFffU=; b=r7bUuk4LNs/sCprEo9RnuozR39kyd+XQJfGBmnS7Cr+UfBuMXpLaXWE7fWogFrf1Z3 RQCDw2EpY8mrkuke1C/57e7vVvZT3HFhorQhLogtUwvEfVjjxOh1bMt7rKfXG3FHleGa eGATKvRRJxLK1z4a/M8NGAgBFjZvAyfPzTK5mpQUYniJh0pZJQ4IFtfa4gb1xxvTN/fP iv0natUMnLhF7/svDMhTX2Jp92hinoLqSyBY1QY6uhODpzzJESk7Z31CcRicS8XA5CuT uv8vK0XkUe9BbCqK2/h/8zM7bMxpgEk4UIAYRL0EMWKh9k7gcc2JFQOp8pp2w5GdG7q/ W35A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=B68GhDH9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h45si1269646pjb.0.2019.09.04.11.25.07; Wed, 04 Sep 2019 11:25:23 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=B68GhDH9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389082AbfIDSXk (ORCPT + 99 others); Wed, 4 Sep 2019 14:23:40 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:56662 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388764AbfIDSCc (ORCPT ); Wed, 4 Sep 2019 14:02:32 -0400 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=YWE0H+jTpcN/XC6vFgWxU0Ifm430UGtAcUQBmeqFffU=; b=B68GhDH9ylcTgqElA2r7zjY7O lE6Rf0/LqJ/dbv7yx7jsCmrYsQoXzrSLpLhPKVcAq09WGGtdvjGxnz3fv+EJhtL7AFUeyL4hUtuyt SO8pIA93xdezldWmlYuoV9FK9U45Phywr2f2VSWHYoZWaGJ6vERLfLEyOxy6AI5yugAjiWfw2SeTE zbIU0h3IF2lpVTqWz7YPsRl3U0CE6wMNg2JLLw7DHSeFIaNu7K1T1oDbBlZnpyhAvdSKmvaSu5HCE Pl8vLB1RU4X/IesTI8jJ4p8o22IevZ5TrXbR/ihKRX90p+CdzzdIVoIQQjW6xLbRAVWLBZKQa/0ga ZRDX5wwYQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i5Zbi-0004qX-Oq; Wed, 04 Sep 2019 18:02:14 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 32C2D3060BF; Wed, 4 Sep 2019 20:01:35 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id CD686201265AF; Wed, 4 Sep 2019 20:02:11 +0200 (CEST) Date: Wed, 4 Sep 2019 20:02:11 +0200 From: Peter Zijlstra To: Bart Van Assche Cc: Daniel Lezcano , Ming Lei , Keith Busch , Hannes Reinecke , Sagi Grimberg , linux-scsi@vger.kernel.org, Long Li , John Garry , LKML , linux-nvme@lists.infradead.org, Jens Axboe , Ingo Molnar , Thomas Gleixner , Christoph Hellwig Subject: Re: [PATCH 1/4] softirq: implement IRQ flood detection mechanism Message-ID: <20190904180211.GX2332@hirez.programming.kicks-ass.net> References: <20190903033001.GB23861@ming.t460p> <299fb6b5-d414-2e71-1dd2-9d6e34ee1c79@linaro.org> <20190903063125.GA21022@ming.t460p> <6b88719c-782a-4a63-db9f-bf62734a7874@linaro.org> <20190903072848.GA22170@ming.t460p> <6f3b6557-1767-8c80-f786-1ea667179b39@acm.org> <2a8bd278-5384-d82f-c09b-4fce236d2d95@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 04, 2019 at 10:38:59AM -0700, Bart Van Assche wrote: > On 9/4/19 10:31 AM, Daniel Lezcano wrote: > > On 04/09/2019 19:07, Bart Van Assche wrote: > > > Only if CONFIG_IRQ_TIME_ACCOUNTING has been enabled. However, I don't > > > know any Linux distro that enables that option. That's probably because > > > that option introduces two rdtsc() calls in each interrupt. Given the > > > overhead introduced by this option, I don't think this is the solution > > > Ming is looking for. > > > > Was this overhead reported somewhere ? > I think it is widely known that rdtsc is a relatively slow x86 instruction. > So I expect that using that instruction will cause a measurable overhead if > it is called frequently enough. I'm not aware of any publicly available > measurement data however. https://www.agner.org/optimize/instruction_tables.pdf RDTSC, Ryzen: ~36 RDTSC, Skylake: ~20 Sadly those same tables don't list the cost of actual exceptions or even IRET :/