Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp114980ybz; Thu, 16 Apr 2020 20:45:57 -0700 (PDT) X-Google-Smtp-Source: APiQypIlOmkLZCTp+RBgNLXH3DHygsV+OWpPpvMA1Wg2y8cw68dGalVfuv0XsjBb0Nwx4DslsuXS X-Received: by 2002:a17:906:18a2:: with SMTP id c2mr1116151ejf.167.1587095157295; Thu, 16 Apr 2020 20:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587095157; cv=none; d=google.com; s=arc-20160816; b=MH1x0waNwuJhiecVoVB15WRTwxnroR+L7CkA7GZrqMzLmrG3cJvtKMFZRS6PC7VHoE mPDApWM8zVhj3l9oYJTu7Mk26W6GaqwWYg24p0MzhDxrdVrZEWFH7d0NVwN3gIdfegwj EZCf17Xs1BQyEIaKcUmFfkKYfOVgwfRqA4xD/H9yh4JHwAIFgRL9JnG+ztkwUjLjvJDu Ybxdfw4hhGFzDMEPK3xZruTEelJVYp9NYhdqcghRlV6uNbRgmwyBz8aq7LJi31gZBe3g qFoYqXwr+DMnFQo6HLbY8sUsp9TSCsqLpLjvXuVQ+sTaB0JjEqUOXGYWaZ2FWBHxnq1c KH/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:references:to:from:subject:dkim-signature; bh=H5qehpEnblBYsJTnXBojOptad2p8lDWkcy3pS5uInZ8=; b=wxUflXidPLOnC4JYZpXAwncQYbpaBQavtUOQa5QhSUptzoJ5+PpdMcw8UKo/G7H++M bF4JCRgJL0400y/8UfYI4685QwS2kpbEaL8EL2LlzrC9y7i0oUhBRhx1WZPzGgEo6rfV p5ii0Wgd0XYuEjuyYx6lmCDYocvb/n0wM3teXFL12DnpCh3jDreo0+UWI4SkpPLQJG3V ypXGf8hTFWU+ZXaOjiP59g098dAP/1BXkLOwWaFk8CU2Jxzta8xN3Uf9gWRsCj0RA2Up xTyVReEBaTD5KDA7N/OksUqzoi4rHHbYdgzN8Myt0lmVbC+3XpFgnCwdyIxH9Ny4Ylcl EQHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microway.com header.s=verified header.b=ozMkwas8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l6si13769639ejd.72.2020.04.16.20.45.34; Thu, 16 Apr 2020 20:45:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@microway.com header.s=verified header.b=ozMkwas8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726444AbgDQDlf (ORCPT + 99 others); Thu, 16 Apr 2020 23:41:35 -0400 Received: from 50-247-197-57-static.hfc.comcastbusiness.net ([50.247.197.57]:35060 "EHLO microway.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726105AbgDQDle (ORCPT ); Thu, 16 Apr 2020 23:41:34 -0400 X-Greylist: delayed 422 seconds by postgrey-1.27 at vger.kernel.org; Thu, 16 Apr 2020 23:41:33 EDT Received: from [10.200.120.6] (openvpn.microway.com [192.168.200.4]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by microway.com (Postfix) with ESMTPSA id 628E73004433 for ; Thu, 16 Apr 2020 23:34:30 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microway.com; s=verified; t=1587094470; bh=ywoe/KWhEbobTRp8t8l9tb7jHYngbY9Kh0XrHhm6E/I=; h=Subject:From:To:References:Date:In-Reply-To; b=ozMkwas8l67k5TV4xTD8QaodsCT9I4D8sv/fylFr4sIfb1R4uAsmc/7I5kMMTd2CX oy7R8Q7f5qBgp7RSa0H+E1VVU+T+MBXHsvPBFGr8oTxL3TOUTPbeiFL7ejIsQclqNB tl1MUPqiBP8FSHVQsMMpgMSXxjsAvBpzvuzW5DT4= Subject: Re: slow write performance with software RAID on nvme storage From: Rick Warner To: linux-kernel@vger.kernel.org References: <0a6373c6-817f-6ead-2a71-7c83c03406be@microway.com> Message-ID: Date: Thu, 16 Apr 2020 23:34:29 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <0a6373c6-817f-6ead-2a71-7c83c03406be@microway.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Additional testing with fio has shown near theoretical write speeds if I test direct to the /dev/md device instead of using either xfs or ext4. I've tested different queue settings without significant changes. Is it possible to get a single XFS or ext4 filesystem performing with >10GB/s write speeds? On 2019-03-29 16:55, Rick Warner wrote: > Hi All, > > We've been testing a 24 drive NVME software RAID and getting far lower > write speeds than expected.  The drives are connected with PLX chips > such that 12 drives are on 1 x16 connection and the other 12 drives use > another x16 link  The system is a Supermicro 2029U-TN24R4T.  The drives > are Intel DC P4500 1TB. > > We're testing with fio using 8 jobs. > > Using all defaults with RAID0 I can only get 4 or 5 GB/s write speeds > but can hit ~24GB/s read speeds.  The drives have over 1GB/s write speed > each, so we should be able to hit at least 20GB/s write speed. > > Testing with RAID6 and defaults got significantly lower (down around > 1.5GB/s).  Using a 64k chunk and increasing the group_thread_cnt > increased the results to ~4GB/s. > > dmesg shows the RAID parity calc speed being ~40GB/s: > [    4.215386] raid6: using algorithm avx512x2 gen() 41397 MB/s > > > I've played around with filesystem queue choices and tuning but haven't > seen any significant improvements. > > What is the bottleneck here? If it's not known, what should I do to > determine it? > > I've done a variety of other tests with this system and am happy to > elaborate further if any other information is needed. > > Thanks, > Rick Warner