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 2E6951382C5 for ; Fri, 27 Nov 2020 19:07:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2700DE0848; Fri, 27 Nov 2020 19:07:36 +0000 (UTC) Received: from mail-gw.thundermail.uk (mail-gw.thundermail.uk [149.255.60.74]) (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 A742BE0817 for ; Fri, 27 Nov 2020 19:07:35 +0000 (UTC) Received: from mailgw01.thundermail.uk (mail-gw.thundermail.uk [149.255.60.66]) by mail-gw.thundermail.uk (Postfix) with ESMTPS id 8A76F60000B6 for ; Fri, 27 Nov 2020 19:07:33 +0000 (GMT) X-ASG-Debug-ID: 1606504052-0554130f6615ebae0001-LfjuLa Received: from cloud307.thundercloud.uk (cloud307.thundercloud.uk [149.255.58.40]) by mailgw01.thundermail.uk with ESMTP id 33STdi80YGa4zYqu (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Fri, 27 Nov 2020 19:07:32 +0000 (GMT) X-Barracuda-Envelope-From: confabulate@kintzios.com X-Barracuda-Effective-Source-IP: cloud307.thundercloud.uk[149.255.58.40] X-Barracuda-Apparent-Source-IP: 149.255.58.40 Received: from lenovo.localdomain (230.3.169.217.in-addr.arpa [217.169.3.230]) by cloud307.thundercloud.uk (Postfix) with ESMTPSA id 7215DC1DC6C for ; Fri, 27 Nov 2020 19:07:31 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kintzios.com; s=default; t=1606504051; bh=Nxh0tPR/+hmn+ayoFaF3kND0dz3/t+dXVlkl2+nzhuM=; h=From:To:Subject; b=FqvLKy2RAGTgwymee/EL3Pv3c6/C4p9S68LZkEBtY/KyeVKAbBqJ6WK7j8T+48yQn ibi72Pi1ma4MvAMz6u2YwQdZn4LkDybGqEOYmse1XrOC66dTvcIiC7DgHVHGBG2K9D OjnYxkLoVjgNcerxffISeMQlXqmXTCPU/KXl0QVE= Authentication-Results: cloud307.thundercloud.uk; spf=pass (sender IP is 217.169.3.230) smtp.mailfrom=confabulate@kintzios.com smtp.helo=lenovo.localdomain Received-SPF: pass (cloud307.thundercloud.uk: connection is authenticated) From: Michael To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Is there a way to misconfigure USB ports in the kernel? Date: Fri, 27 Nov 2020 19:07:17 +0000 X-ASG-Orig-Subj: Re: [gentoo-user] Is there a way to misconfigure USB ports in the kernel? Message-ID: <1704314.3VsfAaAtOV@lenovo.localdomain> In-Reply-To: <24513.8921.552468.210937@tux.speedport.ip> References: <24510.38475.914653.374734@tux.speedport.ip> <1811573.taCxCBeP46@lenovo.localdomain> <24513.8921.552468.210937@tux.speedport.ip> 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 Content-Type: multipart/signed; boundary="nextPart3054501.AJdgDx1Vlc"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <20201127190731.18190.43645@cloud307.thundercloud.uk> X-PPP-Vhost: kintzios.com X-Barracuda-Connect: cloud307.thundercloud.uk[149.255.58.40] X-Barracuda-Start-Time: 1606504052 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://149.255.60.66:443/cgi-mod/mark.cgi X-ASG-Orig-Subj: Re: [gentoo-user] Is there a way to misconfigure USB ports in the kernel? X-Virus-Scanned: by bsmtpd at thundermail.uk X-Barracuda-Scan-Msg-Size: 1638 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=1.9 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.86165 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Archives-Salt: d973ba0c-877e-4528-944d-85296853286e X-Archives-Hash: 0e352922e9a3afd76859af4f7d6c6862 --nextPart3054501.AJdgDx1Vlc Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Michael To: gentoo-user@lists.gentoo.org Reply-To: confabulate@kintzios.com Subject: Re: [gentoo-user] Is there a way to misconfigure USB ports in the kernel? Date: Fri, 27 Nov 2020 19:07:17 +0000 Message-ID: <1704314.3VsfAaAtOV@lenovo.localdomain> In-Reply-To: <24513.8921.552468.210937@tux.speedport.ip> References: <24510.38475.914653.374734@tux.speedport.ip> <1811573.taCxCBeP46@lenovo.localdomain> <24513.8921.552468.210937@tux.speedport.ip> Hi Rainer, On Friday, 27 November 2020 16:01:29 GMT Dr Rainer Woitok wrote: > Since the USB sticks contain symbolic links and have to be accessible > from both, Linux and Windows they are NTFS formatted, and according to > "mkntfs(8)" the sector size can be at most 4096, while the cluster size > is limited to 2097152, that is 2G. However, when NTFS formatting an USB > stick from within TrueCrypt/VeraCrypt or directly in Windows the maximum > cluster size is 64K, with the only difference that Windows calls it > "allocation unit size". Ohh! STOP RIGHT THERE! :-) I mistakenly thought you were using FAT. NTFS on linux uses the ntfs-3g driver, which relies on FUSE. This 'Filesystem in Userspace' is inevitably slower than kernel filesystem drivers, because it has to jump through hoops and libs, acting as a virtual filesystem. CPU usage will also be higher as a result, than when using a native kernel filesystem driver. A 4k block size is recommended for ntfs-3g which is the default sector created by fdisk and friends on Linux these days. This will align your partition optimally. In addition, mkfs.ntfs will use 4096 bytes as the default cluster size, so you should be good in that respect. Another setting you may want to try is mounting the USB with 'big_writes' - check the man page. This should help particularly with large files, which will use larger blocks up to 128KB when copying data to the NTFS. Also, read the FAQs under the heading "Performance" for more useful information: https://www.tuxera.com/community/ntfs-3g-faq/ Hope this helps. --nextPart3054501.AJdgDx1Vlc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAl/BTmUACgkQseqq9sKV Zxl8mw/+IZrcMvydKJSXlMeLL2yf/6+SREAKMjJpUaektU1el7UBFPSg351/dhb3 YuodMjlGP9CZYCLfowaX+3oTT++KI3yquanV9QjSzfBMP/EhSxGi2yU5wxXQgghW FNtZHKB6UHaLQyJcZJ6NOhdOX0/v+WUj13CbpBg382/k9Xbt/VqgDZRKRxNLP15y We98g3RxToPPO2bcCs31ziObKkNSDKuU8Av9prj48AqoIOifUgDb5jVQfZiICqjd dHTNTTk7POe/FGYa7pVxPJC3AJ+6n7whTh2nkOFiSPxyBMkGzenTuXsNDlZQ1kPw XOQZKYe4xkB5/ej89VAQOzIiwNflk37TRhzfIXxkubDhnjpR3/i/mlLVQO9FqkLa YU8hzPuC1Um+Jgq1RdL593YHDs5REYpMRhRkSgerAUIcouFxuprKArjyqJ8qekUA ZAb5tzaw3rFF5dZBrr4AK6o62JXNTFVt7oHaVrUWvn+eZlzSOQ4JAslM+UBpConU x6ndDeq5mbdzAYzlcKeQLlE1+/tZvFI4FG5EknWKS5tYY7AQYwIN9e12UNMAQMBm 6rI4riHVooUxmtlcmBUav4ky2LZwdziYCYCcmXPyo7wKUz6lXHyykuiGTQd212CQ MvCkBpqvPgM9CpibSGpFtyz07sK+Xw8Geij6hWEmSpPJONUm45A= =db86 -----END PGP SIGNATURE----- --nextPart3054501.AJdgDx1Vlc--