From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B0E931382C5 for ; Tue, 30 Mar 2021 18:26:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B1129E0BF1; Tue, 30 Mar 2021 18:26:15 +0000 (UTC) Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 28A0BE0BEB for ; Tue, 30 Mar 2021 18:26:15 +0000 (UTC) Received: by mail-ot1-x336.google.com with SMTP id k14-20020a9d7dce0000b02901b866632f29so16525555otn.1 for ; Tue, 30 Mar 2021 11:26:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=wIGuZdDrTtQF2pvoN7MikxhUn7iduoWZLt5NaTKtCfs=; b=eBbHpI55Z8LhaIKfrEDNHjgwxFmPjKhRh5BJwvktt/TRgkZR3a122ZbnumAlgey5fy fNgH1BvzRTJbZB1mJt9MGEek7q8gHZD3cA+HQnEYiHToinpkSoBWY3/QeuN5FhEXXq3j oRWYW0ENbvLEWg/rx5Mk5689hXe5uz7qK+0lhGOdj88oNxg57DQjllv8He5Gkd9AMqnq Jj0OnlYFXpxrDPYvqGYKbQPLX7HyyPzDXeXRtWTcwCI2VF6kIOw0/COwi7ywxZaw+FGe YB3CNCz+2c6ZZC7D4f8XRFIUpiG/XEWCx9NYvyy9UV6s5U3fESs63DlcZEg3kfeCXV+/ ue1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding; bh=wIGuZdDrTtQF2pvoN7MikxhUn7iduoWZLt5NaTKtCfs=; b=E9Z66IC+jeqEGRcrvVxON22YNvyTYdWhEMEOe5XwoRpLiPiTnuyXwkWj6lpBgOZgn+ gyClvUYmpfmdm/7xbDILPJvE5U65hsGeieJSu777rrQi0NCuNIovJOowuKWibd9D7rQK KVqE6NmZCMAo3FEP9T6jQVhiPNV4X4NOPjj3Zq/7o7KmKuVz9pdBJIr64nog88fQlUn1 p5m9FnGI3q3vClu7KzbvNttYAjWsI/H52Qap8O1inl6pnqfkOaX/CPGPvOGQTMyWWQmq Pqv6yZitvrwbLzjhxySCxoBYbwzqwQ6eTSlfjJ34T2YnlEoY4OZy1NfpD9nlVbChEJrQ Bpyg== X-Gm-Message-State: AOAM531uKiXzOD0r9rIhlArGsc7ZVwrLJ1niQYEWZoXpMRE1AkptpIM7 6cevrhu7j2c7WAeFd2cGvZA= X-Google-Smtp-Source: ABdhPJzF+aF0qXLhfNZ2Ywh3pQLcaB3bNWQHpZ9Ko9p38tfyZhdAQjUvwXW/KdpAwm43ZTSiubpS1g== X-Received: by 2002:a9d:37b4:: with SMTP id x49mr28402792otb.237.1617128774154; Tue, 30 Mar 2021 11:26:14 -0700 (PDT) Received: from [192.168.0.100] (adsl-074-188-247-155.sip.asm.bellsouth.net. [74.188.247.155]) by smtp.gmail.com with ESMTPSA id y11sm4127620oiv.19.2021.03.30.11.26.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Mar 2021 11:26:11 -0700 (PDT) Subject: Re: [gentoo-user] Is there a way to misconfigure USB ports in the kernel? To: gentoo-user@lists.gentoo.org References: <24510.38475.914653.374734@tux.speedport.ip> <1811573.taCxCBeP46@lenovo.localdomain> <24513.8921.552468.210937@tux.speedport.ip> <1704314.3VsfAaAtOV@lenovo.localdomain> <24523.52343.49602.311308@tux.speedport.ip> <24675.23516.469155.831394@tux.local> From: Dale Openpgp: preference=signencrypt Autocrypt: addr=rdalek1967@gmail.com; prefer-encrypt=mutual; keydata= mQINBFxc7MgBEAC+zrgEdqJJiDe/UDAB+ScmferXWfJTVjbVT2T4DQ7jiLrgP9aNUo1HioNF mrU3JPOCR32gvZyTbY1+niO5+VSo/+pSqQ785h6ZDj1klMkrg6tEzGnf2MNBpBj4houZwxQ+ WDKKTg2M9F+lv8wTIdR/JQn+hSviktLMtrghQlyLhpapsLXWLA6gMFebpQYwxUwemvan8ddX lQvJe9FGyFYvBi0dp1gl10F2O+DVZJxvX8xkX+yImVlhVJiC31gXHRcj+Qlo7gprlU7TIieF Uow6/ZvYKJ26pztVdFCg5w0rMJkF/x8Zd4A6wnuptiAPmWaQ1+YKgYDonbDUgwqFSx5/lN5z DGZ4LlioxeUTTPVvZsqBIeDz6jNFA583OYbo1/S26dqrvTFf2DKlsvoDpVfAhNlwJPjoixs0 X3FNqPv+M10n4kq5Iz7Q9E3O4s/nfFIYGocEslVka7zZPkXSaHbsn+KJlY8XV6qxtCEdh0/V XX1+1aU2J74M0JikWhpwxTZ1dP5aOyWSPPEgFFIRW6xwwC02SoRH9a7mggfGYp/YjPlONNaT SCL8sgRfvmq3D0XTbLyTjSbExxkfKDmbePQagawDE3TlI/oivHf1JaAcbwMb3LZuU4TGcOIl 5D+x7q0MUIeCop0ZFOwAnqW3AVVNvsBkv2KN+IHJryWAf0/iMQARAQABtBtEYWxlIDxyZGFs ZWsxOTY3QGdtYWlsLmNvbT6JAk4EEwEIADgWIQTZ7suruPBaS60bCYXvEM/XWu+ZnAUCXFzs yAIbIwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRDvEM/XWu+ZnN+7D/4/1dNG4aCz0+v+ 0dcjV5tY1feYEWCdHKyDzxWBxlCpd/0NPRQeNY4VMjbCl/sq7GkXi/c2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0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.7 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: <24675.23516.469155.831394@tux.local> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: d0742f43-565a-4918-abf2-8f7d9c817f8c X-Archives-Hash: f9be134f0ab773bc9061603a6cef1669 Dr Rainer Woitok wrote: > > Well, it's been quite a while, due to my being almost permanently con- > fronted with more pressing tasks ... :-( > > To sum up my experience with my new 128 GB Philips USB 3.0 sticks: while > the Philips sticks are significantly faster for reading operations than > my old 64 GB Verbatim ones (probably USB 2.0), writing operations to the > Philips sticks are unbearably slow, regardless of whether I created a > normal unencrypted NTFS filesystem on them or an encrypted NTFS filesys- > tem using VeraCrypt. Writing to the USB stick while at the same time > reading from it in a different terminal window caused commands like "cd" > or "ls" to simply stall. Thus while running > > $ cp --preserve=timestamps -ru $source_dir . > > in one terminal window, I ran > > $ while true > > do n=$(ps -ef|g 'cp --preserve'|g -v grep) > > if [[ "$n" = "${o-}" ]] > > then sleep 10 > > else o="$n" > > echo "$n" > > fi > > done > > in another, to get the wall clock times when copying a new file began. > That way I found that copying a 30 MB file took about 40 minutes. > > So what are my options? > > - Stay away from Philips USB 3.0 sticks? > > - Stay away from Philips USB sticks in general? > > - Stay away from USB 3.0 sticks in general? > > - Stay away from Filesystem in User Space using a non-stable 5.10 or > 5.11 kernel (currently I'm using stable 5.4.97)? > > - Stay away from Gentoo? > > - Stay away from Linux in general and go back to OTOS (aka the Only > True Operating System aka Windoze)? > > - ...? > > Any ideas and comments welcome ... > > Sincerely, > Rainer > > Have you tried using dd to test the speed?  It doesn't even need a file system as it writes directly to the device.  I've done this in the past and it tells if it is a file system issue or a hardware issue.  One thing here, it will destroy ANY and ALL data on it if you let it run until it finishes.  Make sure you have nothing you want to save on it when doing this.  I might add, I like this over rsync --progress because it doesn't have a file system in the middle.  Commands I use to test this.  dd if=/dev/zero of=/dev/sd bs=4k conv=notrunc oflag=direct  #disables cache Don't forget to complete the disk device in the "of=" section and you can leave off the comment as well when typing it in.  You may also want to adjust the other settings or leave out some to test things.  See if you can figure out a way to tweek it a bit.  Sometimes you can add those to the mount options to make it work better, so I've read anyway. To monitor the speed, I found this years ago and it still worked a few months ago when I was testing a stick that was giving me problems.  Turned out, the stick was dying a slow death.  The dd test finished it, with errors.  watch -n 10 kill -USR1 I use Konsole here which has tabs but you may use something similar that will work just as well.  I start the dd command in one tab, then go to other tab and find the process number for dd there with ps and grep.  I then use the above and replace "" with the number, leave out the <> as well, just the number itself.  When you go to the tab where dd is running, it updates about every ten seconds with speed and other info.  I've found it normal to start out fast and then slow down as it goes. Since it has no moving parts, no clue why it does that.  Someone else may see this and have a much better method but that has worked for me in the past.  As we know, some USB stick and other memory type cards can get fussy or go bad.  Hope that helps or at least gives some ideas. Dale :-)  :-) P. S.  I just copy what folks post, I don't claim to understand the inner workings of this.  LOL  I do know, it destroys data tho.  Always be careful with dd and if and 0.