Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp1914312ybb; Fri, 29 Mar 2019 14:05:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQwBDsKjft/Zs/QKpHkKBE6E6QrSiq/ihUjRqRal1j5rYthHr5ezeeFzEIEcwAYncexL28 X-Received: by 2002:a62:5797:: with SMTP id i23mr49027543pfj.12.1553893537002; Fri, 29 Mar 2019 14:05:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553893536; cv=none; d=google.com; s=arc-20160816; b=nTqWyci6EtA8kBF2d2oqLtZfdyEqSOf1MsbYBoswm7dsOBgHsxVfGFlugp09jB88Ys BDkSe6tsaABXUUOxjCBpoEgXZcUbsbWFFi7d3tpCaThk/6AtCJG2bmf8oThkf5Dc0y6X c0Bp5933/8cQ2CR5QNmcgHGYKR1WBGktkB6MoZ6t2OrexsYE8CtYZQVEc9cs3IZtvKvM /ho6zBqX8BN9VPjYPskGS3YcshwtC7PBykMrUn/NuwqfdQXmYmw47WHZ2Zui75chb8zS ZAlR+nhnnUYjGcEJhBnJZby7yO9CDl0Y5EK+dtx3NZ8R+HxY9E/K3VaKsCLQurZTwAHa tmUg== 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:mime-version:user-agent:date:message-id :subject:from:to:dkim-signature; bh=QCQzVG2sUntXA8MXNP3KqZ89g49LV/B5QQI/rW0v9T4=; b=IoEsegP5sul1G3UsPekwlHVSKc9gtiXPywlXNBno9a3LMBA1V0mYZaHKyxOdb42AT6 riY9/r9YZnoSC+TQbMFJ2nHkffegPX5c6MmtBcdI3gHrEqVmxLo+82MfWznJkgsdFnRT 0u+PhRZlb3X2/eVSbx5krxhAExYZODCG28WDzx5pLP95RYAv2ZsRmdajWWMz2fPD/1Qg nf5UO7xNcR0GUmOPuTMMPgyHNR0aMCTn5OLkyHKFkoLkbBoOms331QVPolRhN9w/GBWC uTUdA/nVLXn1xQLQ35kL7aisfekQkhTIWo/sK5PUGQQSO24v8VNO9ZcHAyskSyvLy2jS v4vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microway.com header.s=verified header.b=HzF+lC2V; 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 v25si2724646pgo.317.2019.03.29.14.05.21; Fri, 29 Mar 2019 14:05:36 -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=pass header.i=@microway.com header.s=verified header.b=HzF+lC2V; 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 S1730310AbfC2VDN (ORCPT + 99 others); Fri, 29 Mar 2019 17:03:13 -0400 Received: from mail1.microway.com ([50.245.10.177]:44094 "EHLO microway.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730190AbfC2VDN (ORCPT ); Fri, 29 Mar 2019 17:03:13 -0400 X-Greylist: delayed 442 seconds by postgrey-1.27 at vger.kernel.org; Fri, 29 Mar 2019 17:03:12 EDT Received: from [10.200.120.6] (openvpn.microway.com [192.168.200.4]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by microway.com (Postfix) with ESMTPSA id 026CA9F9F6 for ; Fri, 29 Mar 2019 16:55:46 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microway.com; s=verified; t=1553892946; bh=QCQzVG2sUntXA8MXNP3KqZ89g49LV/B5QQI/rW0v9T4=; h=To:From:Subject:Date; b=HzF+lC2VRVv1aqeohpnunofkZBsu0+Y40Lyyn8To8oBmt/4VsNh0CrLAG6BYO6MJQ PPd4Deg7Kai4UPYXJ6CjsrHjHnxvHUiWLlQvkvspuzzUEnNtnz8R/piJiBeRg248zq jANbdu0/Lxoi30yDZup3h4KjmAcFaFnCzNSfYU9c= To: linux-kernel@vger.kernel.org From: Rick Warner Subject: slow write performance with software RAID on nvme storage Message-ID: <0a6373c6-817f-6ead-2a71-7c83c03406be@microway.com> Date: Fri, 29 Mar 2019 16:55:44 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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 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