From owner-freebsd-arm@freebsd.org Thu Mar 8 10:20:17 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 152B2F492E6; Thu, 8 Mar 2018 10:20:17 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [IPv6:2a02:21e0:16e0:fe::101:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "raven.bwct.de", Issuer "raven.bwct.de" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7C5B872C2F; Thu, 8 Mar 2018 10:20:16 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.15.2/8.15.2) with ESMTPS id w28AKDPS001769 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 8 Mar 2018 11:20:14 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id w28AKBdp008201 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 8 Mar 2018 11:20:11 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.15.2/8.15.2) with ESMTPS id w28AKAs0084498 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 8 Mar 2018 11:20:10 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.15.2/8.15.2/Submit) id w28AKAR8084497; Thu, 8 Mar 2018 11:20:10 +0100 (CET) (envelope-from ticso) Date: Thu, 8 Mar 2018 11:20:10 +0100 From: Bernd Walter To: Ronald Klop Cc: freebsd-fs@freebsd.org, "freebsd-arm@freebsd.org" Subject: Re: gstat more writes per seconds than there are seconds per write Message-ID: <20180308102010.GB80981@cicely7.cicely.de> Reply-To: ticso@cicely.de References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely7.cicely.de 11.0-STABLE amd64 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.001 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Mar 2018 10:20:17 -0000 On Thu, Mar 08, 2018 at 11:06:23AM +0100, Ronald Klop wrote: > Hello, > > I'm confused by this output. > w/s = 5, but ms/w is 1108; how can I put 5 writes in a second if the > average write takes more than a second? It is the time a request has to wait until it is done. But your L(q) says that 17 are queued. > Is my SD card super parallel? :-) Maybe, maybe not, flash device vendors don't tell how they work internally, which is a shame, but you can only request a single transaction with an SD card. On USB sticks you might be able to do tagged command queuing, not that many support that... Nevertheless you can always queue more than one request at the OS layer. > Sometimes the numbers are even higher. > > dT: 1.010s w: 1.000s > L(q) ops/s r/s kBps ms/r w/s kBps ms/w %busy Name > 17 5 0 0 0.0 5 420 1108 81.7 mmcsd0 > 0 0 0 0 0.0 0 0 0.0 0.0 da0 > 0 0 0 0 0.0 0 0 0.0 0.0 mmcsd0s1 > 17 5 0 0 0.0 5 420 1108 81.7 mmcsd0s2 > 0 0 0 0 0.0 0 0 0.0 0.0 msdosfs/MSDOSBOOT > 17 5 0 0 0.0 5 420 1108 81.7 mmcsd0s2a > 17 5 0 0 0.0 5 420 1108 81.7 ufs/rootfs > > [root@rpi2 ~]# uname -a > dmesg | grep mmc > FreeBSD rpi2 11.1-RELEASE-p6 FreeBSD 11.1-RELEASE-p6 #0 r328567: Tue Jan > 30 20:10:37 CET 2018 > root@rpi2:/mnt/usbdisk/usr/obj/mnt/usbdisk/usr/src/sys/RPI2 arm > > [root@rpi2 ~]# dmesg | grep mmc > mmc0: on sdhci_bcm0 > mmc0: CMD8 failed, RESULT: 1 > mmcsd0: 2GB at mmc0 > 41.6MHz/4bit/65535-block > > Regards, > Ronald. > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.