From owner-freebsd-usb@freebsd.org Thu Nov 5 09:27:38 2020 Return-Path: Delivered-To: freebsd-usb@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 D03C2463400 for ; Thu, 5 Nov 2020 09:27:38 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4CRdTk47Rqz4QkJ for ; Thu, 5 Nov 2020 09:27:38 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm1-x32f.google.com with SMTP id k18so852217wmj.5 for ; Thu, 05 Nov 2020 01:27:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=RrPXZBT85h9OIV43VWpOJzNsO6Q4t7DL3mV0+QoGgdM=; b=kmmSYGY+WkVdENt60PHa9ZcNnYfr03fiFRGbOfSN8y8lIIzjYD0xfDL2ujIw4g3AXN +MMOTq8b2KepOntAUiQlfLZAgcL4t/yAqiBJeAIbP4vbk0VaN+T8JlBVcnCgQqy9cJUz 7hMRKADheqfsNrH1uxeZyqjbP6Xd+Tc5eXpSgv+osW5DX9k+12HrI6a3oaKqj11E7DWA cwYxuhSewE5IvXssukkpkBGFZ77fxIS9Ix8YHS6kHrkTX+JCXjLAcpquLW1KTH7leu0T M4Ll/eJzvB2Rd/dDqzAjS0isj2/9/fUPLGrJvv+GZezz6egE5LbasF9/323cdgs5vrAy FVWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=RrPXZBT85h9OIV43VWpOJzNsO6Q4t7DL3mV0+QoGgdM=; b=pO96y6BhCsFFG/+TMvEmVLdjnI5+Oz4NASLwSEhy2t+R0c4AoUhF/fvoMukPRtIvA3 ay1F70+za/FQ2QbeZ0F59XDQR89yLAJdncqL/vNzKtR21Pzbsu7ZThWtzL/1gH9JjjrB CO+dpTccaclI/LTrGRDLGSdZ5cQMNXj46JqhGvtTt1usLZzv/9K361LkCpq2EB03pYpP oTuZbo4c6+RIK/nHKH8Q+ZE+QREce45T+WFw72Pc4tYNhdKnJol5yOp/7rFVfVq+8RLh q66BiW18HM/sMC1f5JNN4weoswBxsJpB5+gyhXiCcaDH6m1NiUSJgg1rqxbhisB37OGf fG+A== X-Gm-Message-State: AOAM531TtCzRx7y0K9JmKNizyZjjD+gfWVeAK33fc1l1T2FJTD5LrQ9p /kNNxpi432syWTnnHjZI2yhxEHQlDoI= X-Google-Smtp-Source: ABdhPJz+N/F61SvrzGnNEDxq+I5mtRgftuQbDBWaRTNFRw57/Te/3m1LsD9k87NdEdv2WcMJPzRlwg== X-Received: by 2002:a1c:7418:: with SMTP id p24mr1671266wmc.36.1604568457167; Thu, 05 Nov 2020 01:27:37 -0800 (PST) Received: from ernst.home (pd9e23482.dip0.t-ipconnect.de. [217.226.52.130]) by smtp.gmail.com with ESMTPSA id y201sm1857159wmd.27.2020.11.05.01.27.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 01:27:36 -0800 (PST) Date: Thu, 5 Nov 2020 10:27:33 +0100 From: Gary Jennejohn To: vermaden Cc: freebsd-usb@freebsd.org Subject: Re: mSATA SSD over USB adater: 300MB/s @ Linux versus 100MB/s @ FreeBSD Message-ID: <20201105092733.30d6d2a9@ernst.home> In-Reply-To: References: Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4CRdTk47Rqz4QkJ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Nov 2020 09:27:38 -0000 On Thu, 05 Nov 2020 10:13:51 +0100 vermaden wrote: > Hi. > > After this tweet: > https://twitter.com/ed_maste/status/1323635634221756416 > > Ed Maste suggested that I should post here some details about it. This is what I am doing right now. > > The case is/was: > > Dell XPS 12 with Intel i5-3317U CPU from 2012 and internal mSATA SSD (typical 500MB/s read/write SSD). > > This one to be precise: > https://arstechnica.com/gadgets/2012/12/review-dells-acrobatic-xps-12-is-the-windows-8-convertible-to-beat/ > > Then with this USB<>mSATA adapter (probably some noname from China: > https://allegro.pl/oferta/pendrive-ssd-mini-pci-e-msata-do-usb-3-0-6016971433 > > I attached another mSATA SSD (typical 500MB/s read/write SSD) to the one of the USB 3.0 ports. > > Then I executed this command: > > // FROM INTERNAL TO EXTERNAL @ Linux > # dd < /dev/sda > /deb/sdb bs=8M status=progress > > // FROM INTERNAL TO EXTERNAL @ FreeBSD > # dd < /dev/ada0 > /deb/da0 bs=8m status=progress > > Average speed of that operation was: > > Linux: 300MB/s > > FreeBSD: 100MB/s > > Here are the detailed logs of dmesg/pciconf/usbconfig commands: > http://athena.zia.io/~vermaden/dell.xps.12.logs.tar.gz > > For this operation I booted from the FreeBSD 12.2-RELEASE 'memstick' image on USB pendrive. > > Not sure how else I can help. > FreeBSD does transfers with a maximum size of 128kB. Try repeating both tests with bs=128k to have a level playing field. -- Gary Jennejohn