mount.ntfs 导致 CPU 使用率高的原因是什么?

ali*_*cef 22 mount cpu-load ntfs cpu ntfs-3g

我在 Ubuntu 14.04 64 位。mount.ntfs使用高 CPU--40%。我有英特尔酷睿 i5-3210M。为什么会这样?

lsblk

NAME   FSTYPE   SIZE MOUNTPOINT        LABEL
sda           465.8G                   
??sda1 ntfs     300M                   Windows RE tools
??sda2 vfat     100M /boot/efi         SYSTEM
??sda3 ntfs     438M                   Windows
??sda4 ntfs    97.7G                   
??sda5 ext4    94.1G /                 
??sda6 ntfs   263.3G /media/user/DATA1 DATA
??sda7          128M                   
??sda8 ntfs     9.5G                   Recovery
sr0            1024M
Run Code Online (Sandbox Code Playgroud)

top

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND     
26199 root      20   0   14712   1940    684 R  45.5  0.0   3:07.80 mount.ntfs  
26268 user      20   0 1255660 385524  49108 S  15.3  4.8   1:01.41 firefox     
28549 root      20   0  483936 130680 109148 S  12.3  1.6  11:06.58 Xorg        
26250 user      20   0  538956  30212  19316 S   6.0  0.4   0:22.58 gnome-syst+ 
29140 user      20   0 1579488 237416  38440 S   5.3  2.9   5:56.58 compiz      
 8311 user      20   0 4833744 253740  25596 S   4.3  3.1   1:26.34 java        
31864 user      20   0  671040  22512  13420 S   1.3  0.3   0:07.73 gnome-term+ 
   10 root      20   0       0      0      0 S   0.3  0.0   0:13.72 rcuos/2
Run Code Online (Sandbox Code Playgroud)

Que*_*tza 9

更改 NTFS 分区的挂载选项将我使用的应用程序从无法使用 100% mount.ntfs CPU 更改为功能齐全。使用的关键是“big_writes”,但我的完整列表是:

windows_names,norecover,big_writes,streams_interface=windows,inherit
Run Code Online (Sandbox Code Playgroud)

你会像这样使用它:

mount -t ntfs -o windows_names,norecover,big_writes,streams_interface=windows,inherit /dev/disk/by-uuid/DISKUUID /mountpoint
Run Code Online (Sandbox Code Playgroud)

ntfs-3g 的 Ubuntu 联机帮助页上的完整选项列表及其含义:https : //manpages.ubuntu.com/manpages/eoan/man8/ntfs-3g.8.html


小智 1

您必须添加行/etc/fstab以自动挂载 ntfs 分区

/dev/sda6   /media/user/DATA1   ntfs    defaults,nls=utf-8,umask=007,gid=46   0   0
Run Code Online (Sandbox Code Playgroud)

有关自动挂载 ntfs 的更多详细信息,请参阅:
如何自动挂载 NTFS 分区?

  • 自动挂载到底是如何降低 mount.nfs 的 CPU 利用率的呢?请解释。我不明白这是如何成为最佳答案的。 (25认同)

ali*_*cef 0

对我来说唯一的解决方案是重新安装操作系统。