From owner-freebsd-stable@freebsd.org Tue Sep 24 17:09:28 2019 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BC05F12BA34 for ; Tue, 24 Sep 2019 17:09:28 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46d72v4Hp6z3DR4 for ; Tue, 24 Sep 2019 17:09:27 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x82f.google.com with SMTP id c21so3008668qtj.12 for ; Tue, 24 Sep 2019 10:09:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iJiW2LUx+PkdNV2P/x6RqqAriBhqbJrwiLTlIsDrSJE=; b=tb6LdnHBwyOKbS/Dij5Or9uY4iPUq49lNfEWW8ecw36mOLbV41EvdEM96tEjgJearI 6jmjyfv3hY/YkSf5yk1/A8lO0IHVSf2IwYfJaLgPAd/1ygnXFR+I3Z1L3uTl7U5W/3JZ EeTHiW79Bb/Poi6B7rUN5Mlm43f+vA5tQUWAJ3Obl3xg8b+M0574tsCogJjNQtqd4EJR DUtUApcdG9PWmdaWmLWaYgqvaLu/X+Hf1YdTkAorfGQiCG8/NGp1Dv8XhyvL+g3XxEQk Qp08SpTA2VK4/+HKqslsCli02zNodweUDgXIHvTvLVdj6/NGTilNl2qieO7hUDVJiMbC ww9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iJiW2LUx+PkdNV2P/x6RqqAriBhqbJrwiLTlIsDrSJE=; b=VW7k1X1m13DbJLoMhgbkuTgcSH9FCIz6zbVXNitR5BMZpsfbz9jgGnmVKuKTsJm0uU S4vP79G2zMb7rkiF7lA4cLeq+CzO9rea91ooP/avw00TYIJcgGyQWinkN16D6ZldWZXg jT9lm3prG8w91S4b8FhR9g0dV43kIRbyKQ+6z0pkJQeUQOtpWumfgUH1HxgzweLJS/jK xhNhDfMqjY/E3p9wM7W0NIvNahkjuqxjefJghATwgBHq3mu8qrqNrWT17K3Y43f/JuTK C5bXq5j1biEClF533uqn1GW69cm4szWNwcHwK9VnWcNp8cVZyaT24KhNN8XI23AX8WVL o2Mw== X-Gm-Message-State: APjAAAWt+qzrfNJjpLDK775nIahe+IP/Fjowb9RWJqLi94um0ruZttk3 EORlkKvFlE2/Ilsq2pqOkL7Z1KbG2eJGGk9YZogcxVJM9/qWzA== X-Google-Smtp-Source: APXvYqx6G7a9hkkRnrXRAUe4W4zcpJRUBB+qAgwt+YpxEizbgeXHGF2amZ1QcRpArBiF6G718pNipEFw8YUp4/xhhV4= X-Received: by 2002:ac8:3564:: with SMTP id z33mr602300qtb.291.1569344966355; Tue, 24 Sep 2019 10:09:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Tue, 24 Sep 2019 19:09:14 +0200 Message-ID: Subject: Re: Question about bottle neck in storage To: John Fleming Cc: FreeBSD-STABLE Mailing List X-Rspamd-Queue-Id: 46d72v4Hp6z3DR4 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=tb6LdnHB; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::82f) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-4.85 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[f.2.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-2.85)[ip: (-9.36), ipnet: 2607:f8b0::/32(-2.63), asn: 15169(-2.20), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Sep 2019 17:09:28 -0000 On Tue, Sep 24, 2019 at 5:46 PM John Fleming wrote: > Is there anyway to see how busy a SAS/Sata controller is vs disks? I > have a R720 with 14 Samsung 860 EVOs in it (its a lab server) in raid > 10 ZFS. > > When firing off a dd I (bs=1G count=10) seems like the disks never go > above %50 busy. I'm trying to figure out if i'm maxing out SATA 3 BW > or if its something else (like terrible dd options). > Two points to consider here. First, NVMe has lots of queues and needs lots of concurrent transactions to saturate, so the 50% busy means you are no where close to saturating the drives. Schedule more I/O too fix that. It's better to do lots and lots of concurrent DD to different parts of the drive, or to use fio with the aio kernel option and posixaio I/O scheduling method. I use the following script, but often need to increase the number of threads / jobs to saturate. ; SSD testing: 128k I/O 64 jobs 32 deep queue [global] direct=1 rw=randread refill_buffers norandommap randrepeat=0 bs=128k ioengine=posixaio iodepth=32 numjobs=64 runtime=60 group_reporting thread [ssd128k] Second, the system's % busy statistics are misleading. They are the %of the time that a command is outstanding on the drive. 100% busy can be a tiny percentage of the total bandwidth you can get from the drive. > my setup is Dell R720 with 2 x LSI 9361 cards. Each card is going to a > dedicated 8 drive board inside the front of the R720. Basically i'm > just saying its not a single SAS cable to 14 drives. > > Don't have cpu info hand.. zeon something. DDR3-1600 (128GB) > > Both controllers are in 8x slots running PCIe gen 3. > > BTW i'm sure this has been asked a million times but what would be > some decent benchmark tests while i'm at it? > See above... :) Warner