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.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to