Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Very fast writing to NTFS with kernel 5.15

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
Irre
Guru
Guru
Posts: 434
Joined: Sat Nov 09, 2013 10:03 am
Location: Stockholm

Very fast writing to NTFS with kernel 5.15

  • Quote

Post by Irre » Mon Oct 18, 2021 7:20 pm

I have built 5.15.0-rc6 with ntfs3 support. We have no mount command for ntfs3 but /etc/fstab "works":

Code: Select all

Linux localhost 5.15.0-rc6-x86_64 #2 SMP Mon Oct 18 14:21:27 CEST 2021 x86_64 Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz GenuineIntel GNU/Linux

cat /etc/fstab | grep ntfs3
/dev/sda2               /tmp2           ntfs3           noauto,prealloc,noatime,rw       0 0

mount /tmp2

mount -v | grep ntfs3
/dev/sda2 on /tmp2 type ntfs3 (rw,noatime,uid=0,gid=0,iocharset=utf8,prealloc)

Test with new kernel:

Code: Select all

sync; echo 3 >/proc/sys/vm/drop_caches; time ( dd if=/dev/zero of=/tmp2/tempfile bs=1M count=2048; sync )
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB, 2.0 GiB) copied, 0.846204 s, 2.5 GB/s

real    0m4.967s
user    0m0.005s
sys     0m0.847s
Test with old ntfs-3g driver:

Code: Select all

sync; echo 3 >/proc/sys/vm/drop_caches; time ( dd if=/dev/zero of=/tmp2/tempfile bs=1M count=2048; sync )
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB, 2.0 GiB) copied, 16.3061 s, 132 MB/s

real    0m17.862s  
user    0m0.001s
sys     0m2.596s
Really fast with new kernel :D
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

  • Quote

Post by mike155 » Mon Oct 18, 2021 8:52 pm

Hmm. 2.5 GB/s to a SATA device? Please explain!
Top
Irre
Guru
Guru
Posts: 434
Joined: Sat Nov 09, 2013 10:03 am
Location: Stockholm

  • Quote

Post by Irre » Mon Oct 18, 2021 10:28 pm

mike155 wrote:Hmm. 2.5 GB/s to a SATA device? Please explain!
No, 2 GB in 5 s!
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

  • Quote

Post by mike155 » Mon Oct 18, 2021 10:36 pm

Ah! You compare "real 0m17.862s" with "real 0m4.967s". That makes more sense! :)

But it's still a huge difference! Is a filesystem driver in userspace so much slower? Or is it just ntfs3g, which is slower than it could be?

Anyway, thanks for posting your measurement results. Very appreciated! :)
Top
Irre
Guru
Guru
Posts: 434
Joined: Sat Nov 09, 2013 10:03 am
Location: Stockholm

  • Quote

Post by Irre » Mon Oct 18, 2021 10:47 pm

mike155 wrote:Ah! You compare "real 0m17.862s" with "real 0m4.967s". That makes more sense! :)

But it's still a huge difference! Is a filesystem driver in userspace so much slower?
Yes ntfs3 seems to be almost 4 times faster than ntfs-3g! :D
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Tue Oct 19, 2021 1:35 am

Irre wrote:
mike155 wrote:Hmm. 2.5 GB/s to a SATA device? Please explain!
No, 2 GB in 5 s!
Sounds reasonable. I get around 450MB/sec on my SSD's.
NVME is over 1100MB/sec
Top
Atha
Apprentice
Apprentice
User avatar
Posts: 245
Joined: Wed Sep 22, 2004 6:28 pm

  • Quote

Post by Atha » Thu Oct 21, 2021 11:14 am

Well, comparing apples and oranges, because ntfs-3g runs in user mode (FUSE, file system in user mode) and ntfs3 runs in kernel mode. Naturally a file system driver is faster in-kernel...

But is ntfs3 as compatible as ntfs-3g is in a real life scenario?
Think for yourself and let others enjoy the privilege of doing so too. – Voltaire
Top
Irre
Guru
Guru
Posts: 434
Joined: Sat Nov 09, 2013 10:03 am
Location: Stockholm

  • Quote

Post by Irre » Thu Oct 21, 2021 1:26 pm

Atha wrote:Well, comparing apples and oranges, because ntfs-3g runs in user mode (FUSE, file system in user mode) and ntfs3 runs in kernel mode. Naturally a file system driver is faster in-kernel...

But is ntfs3 as compatible as ntfs-3g is in a real life scenario?
Ntfs3 is much better! I tested to write 800 gb data to an external usb disk. Fast and unfragmented result.
Top
dmpogo
Advocate
Advocate
Posts: 3711
Joined: Thu Sep 02, 2004 9:21 pm
Location: Canada

  • Quote

Post by dmpogo » Thu Oct 21, 2021 8:13 pm

Atha wrote:Well, comparing apples and oranges, because ntfs-3g runs in user mode (FUSE, file system in user mode) and ntfs3 runs in kernel mode. Naturally a file system driver is faster in-kernel...

But is ntfs3 as compatible as ntfs-3g is in a real life scenario?
As far as it goes, it is not apple and oranges. It is two alternative tools expected to do the same job. If one is as feature full ( and here is a question mark ) and faster, it is undeniably better.
Top
Atha
Apprentice
Apprentice
User avatar
Posts: 245
Joined: Wed Sep 22, 2004 6:28 pm

  • Quote

Post by Atha » Sun Oct 24, 2021 5:01 pm

Okay, from what I've read now about it, it seems to be true. NTFS3 is a complete rewrite of an NTFS3.1 driver for the Linux kernel by Paragon. (The old driver "ntfs" was never really capable of writing to an NTFS partition, and –the worst part– development had stopped a long time ago... Which was the reason NTFS-3G got developed BTW.)

Paragon in the past had its own proprietary NTFS driver for various operating systems, like Mac OS X. My perception has been that some people had problems with this driver, and I trusted NTFS-3G more than the Paragon NTFS driver.

NTFS3 on the other hand is a complete rewrite... and it will be 100% open source and the Paragon developers already incorporated changes requested by the kernel developers, hence it certainly meets the quality standards for Linux kernel code.

Me, personally, I will stick to the well tested NTFS-3G FUSE implementation for now. Let's see how the new driver performs when it gets tested more thoroughly after the release of 5.15. Also, let's see if the in-kernel driver gets the same useful functions that NTFS-3G has, like hide_dot_files (which I personally just love) and the user mapping.
Think for yourself and let others enjoy the privilege of doing so too. – Voltaire
Top
Post Reply

10 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy