High CPU and DISK load on mounting NTFS with hibernated WinXP

Bug #475329 reported by Hedgehog_57
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ntfs-3g (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: ntfs-3g

System: IBM Thinkpad T61P
OS: Dual boot WinXP SP3/Ubuntu 9.10
Reproductable: yes

Boot to winXP.
Hibernate it.
Boot Ubuntu.

menv@hedgehog-book:~$ iotop -o
------------------
Total DISK READ: 39.27 M/s | Total DISK WRITE: 0.00 B/s
  TID PRIO USER DISK READ DISK WRITE SWAPIN IO>
   COMMAND
------------------
As you can see no process use the disk, but something reads
40 M/s
menv@hedgehog-book:~$ top
------------------
top - 17:13:56 up 22 min, 3 users, load average: 0.96,0.95, 0.86
Tasks: 174 total, 11 running, 163 sleeping, 0 stopped,  0 zombie
Cpu(s): 37.1%us, 24.1%sy, 0.0%ni, 13.5%id, 21.6%wa, 2.0%hi, 1.7%si, 0.0%st
Mem: 2040444k total, 956252k used, 1084192k free,   18444k buffers
Swap: 4558640k total, 0k used, 4558640k free,  257432k cached

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
21040 root 20 0 54580 14m 2364 R 19 0.7  2:46.93 devkit-disks-da
 1419 root 20 0 248m 35m 18m R 16 1.8  0:48.16 Xorg
-----------------
This is top output. Nothing interesting.

And now the problem:

menv@hedgehog-book:~$ ps -Af|grep winnt
root 26027 474 0 17:15 ? 00:00:00 mount -a -t ntfs -o defaults /dev/sda1 /media/winnt
root 26028 26027 0 17:15 ? 00:00:00 /sbin/mount.ntfs /dev/sda1 /media/winnt -o rw
menv 26030 28807 0 17:15 pts/0 00:00:00 grep winnt

menv@hedgehog-book:~$ ps -Af|grep winnt
menv 27223 28807 0 17:15 pts/0 00:00:00 grep winnt

menv@hedgehog-book:~$ ps -Af|grep winnt
menv 27591 28807 0 17:15 pts/0 00:00:00 grep winnt

menv@hedgehog-book:~$ ps -Af|grep winnt
menv 27821 28807 0 17:15 pts/0 00:00:00 grep winnt

menv@hedgehog-book:~$ ps -Af|grep winnt
root 28210 474 0 17:15 ? 00:00:00 mount -a -t ntfs -o defaults /dev/sda1 /media/winnt
root 28211 28210 0 17:15 ? 00:00:00 /sbin/mount.ntfs /dev/sda1 /media/winnt -o rw
menv 28213 28807 0 17:15 pts/0 00:00:00 grep winnt

This is infinite process. One mount die and new one is created.

This how to stop it. After this high CPU and DISK utilization are off.
--------------
menv@hedgehog-book:~$ sudo mount /media/winnt
Windows is hibernated, refused to mount.
Failed to mount '/dev/sda1': Operation not permitted
The NTFS partition is hibernated. Please resume and shutdown Windows
properly, or mount the volume read-only with the 'ro' mount option, or
mount the volume read-write with the 'remove_hiberfile' mount option.
For example type on the command line:

            mount -t ntfs-3g -o remove_hiberfile /dev/sda1 /media/winnt

menv@hedgehog-book:~$ sudo mount -o ro /media/winnt
menv@hedgehog-book:~$ sudo umount /media/winnt
-------------
The second NTFS partition (SDA5. not with hiberfil.sys file) is mounted normally during boot process.

-----
menv@hedgehog-book:~$ mount
/dev/sda7 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
none on /dev/pts type devpts
(rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
/dev/sda6 on /boot type ext3 (rw,relatime)
/dev/sda5 on /media/data type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda8 on /home type ext3 (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/menv/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=menv)
-----------

Hedgehog_57 (hedgehog57)
description: updated
Revision history for this message
Dominik Stadler (dominik-stadler) wrote :

It would be interesting which process constantly tries to mount the partition here, i.e. the parent process id 474 in above example (it will be a different one now most likely).

Maybe you can provide the ps -aef | grep <parentid> as many times until the parent-id is 1 so we can see which of the services tries to mount the partition here.

Changed in ntfs-3g (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ntfs-3g (Ubuntu) because there has been no activity for 60 days.]

Changed in ntfs-3g (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.