Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2792098rdb; Mon, 12 Feb 2024 17:44:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXKN0/slaL9TwI/Q6hfvK3U4WlNKKsmh+iFwVMZTAHExwFS60v0JlzHgXqqF9GAZJpiQdtjG0Jg+qUZtStu93T0wgoLLw0HyMOgKGGVow== X-Google-Smtp-Source: AGHT+IFQMl/0cRbJVoGCZ9Oiyk6dwKNsZHh0up32tijJIznEOwuvpkrTBRhY3PoS2/m3QFiF0pyc X-Received: by 2002:a05:6000:1208:b0:33b:26de:4289 with SMTP id e8-20020a056000120800b0033b26de4289mr5303568wrx.42.1707788682352; Mon, 12 Feb 2024 17:44:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707788682; cv=pass; d=google.com; s=arc-20160816; b=HYMwzRisN1tT9CCrQgl4+Jc+NFN+kXqXbkgZaI6eiaPzse2ylv+K1x2ptFl26xTrWc NvzXyDVPu3JbcsDUVnZYyWXNyIM70hMIVlT7j3KwCcsvYp+lp5j5Uw/lBhIOkSoeYCGQ t96Kc3baCyG5RCHaoIYjXiyCVwCFmoyAR/Cs+rScGVD2kxfM4kywW8nNKL8qZ84Xqp5m 1Hfpv1Flh56r6BfhuU8mC+hML4I50Jv0INd2H7GPQE2MeyaCgeGhEBeWDXt8hzrPj8DJ xkmg+SHDBn9HuYSBWLosa0xVHtY6+VjnQH7YBUx8n/CoaRt/QijbTC6x7jffq6KoGrWU Ma3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=qQANsyCjqee1cdUzOTgLHxwlIOePOIn58bAX2ZnenEM=; fh=yo3zbSlPRDzf7I70APsunZEAn6O5fcdQqG60cwRQImw=; b=eL0Fpbfx+vBYx1CRBGxPN5w29OIETYRUvJoo8choOTpTotZhJHL2uRFO9HIeQNoRRi YAiL2rdVlfBWsr3nvitN+107lo2yhzDrb2LBYwDMyVUoC0bvdZxh99P6IXRjQLjBzfix Lcg3/TxlAnbrvD/37YiiGOhrbtOLi7EOgOkgEWW7NPGSQ2hBxX/dxlQxx7QQ3uwqaWaT oMV5t2NxEcy+sr2UsSosiiuMTL++NaNY+l+5OHXWWLRiOGbLJ0h1TTvWBSbkyhRUFYg2 woQR9Qaa5WYlK2eYN5OCSDFnO253rR+OY8Jh/7y9VoQlayIEIjqhFC/9AxIhYIETtZmK /aXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=F22wHHPl; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-62852-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62852-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCWBWODMuzGrObhxHJr7fMXfH5VdZJadIlMGMa/2tX7pdQRRh5ycOYYz7XI7RTE/F+tiEicmBayS9cZ7IVc/eQCTfvW1r1wGUrxHSI6liw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k24-20020a170906681800b00a3cf4e727b2si305522ejr.616.2024.02.12.17.44.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 17:44:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62852-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=F22wHHPl; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-62852-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62852-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 15E731F25603 for ; Tue, 13 Feb 2024 01:44:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF66D78B6C; Tue, 13 Feb 2024 01:04:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="F22wHHPl" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9176379DB6; Tue, 13 Feb 2024 01:04:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.55.52.88 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707786275; cv=none; b=W8sum9mhpUEmAYhXZYH/6nK2ALGSFuDs/3Nzt1QlRp+Xq57YV6l6sg6i/26bgeNlfGmLAMv/lGMMpGn++cNPPRJvc/LDhAIAy2zRAcC6xpJMZ5Naz/JmA1FH8YjZzIVBWOafwD9LT8xEF5/S1f/KIEwHI5mXYvqMnBJLVqAvJ2I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707786275; c=relaxed/simple; bh=rPkyRn3h/xI5tyHZCWp4P0ZLlst3DRj0eD9GNA7385w=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kxUB/ym7E6BhOITI9e9CD9EDZrH9e5JC0llLxEYtAZZ73/5iCiKRNSgq8d2FPEETEoOIuXqErhzvQCnCOiiYa74who+sa7kOS908w/IkXO5LkC6ljy3V4o3t5HvkT6JdNNSe8YYY+FkKnAfPIFqfbj4lJKg3RrhlrOAd9LqljtA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=F22wHHPl; arc=none smtp.client-ip=192.55.52.88 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707786273; x=1739322273; h=date:from:to:cc:subject:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rPkyRn3h/xI5tyHZCWp4P0ZLlst3DRj0eD9GNA7385w=; b=F22wHHPlYgipUYHDbf6oRD3GhgQO7NR1D1AxvQa/7XlWIQ6RzOSN352u /Mhhm06dUwy91yOlf+LRWPFP1PkuG+SyL4OkN2jj1NRybx18Vk6xeNHjt cZYHCYqFqTQFvUpMIISHVqrFpHTlZzxQcO692a+Nt/kMNz9KkfKF+Zfkj FpBgTGJ9fQyT92Ci7wXFsILSBrcAjcyzvtyD4vzlyTHtyLbf/NCynNl8c K/BKW5lMjbefExriKGp8NVzYcZklE/ItB1VrQbERSI/1DYH1fM5IfUH3F MgC5+tevTh/bi94gRAubaZTshaMncVlSug3+WwPMjxFLCBniXS6f0Wsc/ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10982"; a="436927567" X-IronPort-AV: E=Sophos;i="6.06,155,1705392000"; d="scan'208";a="436927567" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2024 17:04:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10982"; a="911650880" X-IronPort-AV: E=Sophos;i="6.06,155,1705392000"; d="scan'208";a="911650880" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.24.100.114]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2024 17:04:32 -0800 Date: Mon, 12 Feb 2024 17:10:00 -0800 From: Jacob Pan To: Jens Axboe Cc: LKML , X86 Kernel , Peter Zijlstra , iommu@lists.linux.dev, Thomas Gleixner , Lu Baolu , kvm@vger.kernel.org, Dave Hansen , Joerg Roedel , "H. Peter Anvin" , Borislav Petkov , Ingo Molnar , Paul Luse , Dan Williams , Raj Ashok , "Tian, Kevin" , maz@kernel.org, seanjc@google.com, Robin Murphy , jacob.jun.pan@linux.intel.com, "Lantz, Philip" Subject: Re: [PATCH 00/15] Coalesced Interrupt Delivery with posted MSI Message-ID: <20240212171000.253813ee@jacob-builder> In-Reply-To: <2aa290eb-ec4b-43b1-87db-4df8ccbeaa37@kernel.dk> References: <20240126234237.547278-1-jacob.jun.pan@linux.intel.com> <051cf099-9ecf-4f5a-a3ac-ee2d63a62fa6@kernel.dk> <20240209094307.4e7eacd0@jacob-builder> <9285b29c-6556-46db-b0bb-7a85ad40d725@kernel.dk> <20240212102742.34e1e2c2@jacob-builder> <2aa290eb-ec4b-43b1-87db-4df8ccbeaa37@kernel.dk> Organization: OTC X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi Jens, On Mon, 12 Feb 2024 11:36:42 -0700, Jens Axboe wrote: > > For the record, here is my set up and performance data for 4 Samsung > > disks. IOPS increased from 1.6M per disk to 2.1M. One difference I > > noticed is that IRQ throughput is improved instead of reduction with > > this patch on my setup. e.g. BEFORE: 185545/sec/vector > > AFTER: 220128 > > I'm surprised at the rates being that low, and if so, why the posted MSI > makes a difference? Usually what I've seen for IRQ being slower than > poll is if interrupt delivery is unreasonably slow on that architecture > of machine. But ~200k/sec isn't that high at all. Even at ~200k/sec, I am seeing around 75% ratio between posted interrupt notification and MSIs. i.e. for every 4 MSIs, we save one CPU notification. That might be where the savings come from. I was expecting an even or reduction in CPU notifications but more MSI throughput. Instead, Optane gets less MSIs/sec as your data shows. Is it possible to get the interrupt coalescing ratio on your set up? ie. PMN count in cat /proc/interrupts divided by total NVME MSIs. Here is a summary of my testing on 4 Samsung Gen 5 drives: test cases IOPS*1000 ints/sec(MSI)* ================================================= aio 6348 182218 io_uring 6895 207932 aio w/ posted MSI 8295 185545 io_uring w/ post MSI 8811 220128 io_uring poll_queue 13000 0 ================================================ Thanks, Jacob