High CPU and DISK load on mounting NTFS with hibernated WinXP
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-
------------------
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-
------------------
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-
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-
menv 27223 28807 0 17:15 pts/0 00:00:00 grep winnt
menv@hedgehog-
menv 27591 28807 0 17:15 pts/0 00:00:00 grep winnt
menv@hedgehog-
menv 27821 28807 0 17:15 pts/0 00:00:00 grep winnt
menv@hedgehog-
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-
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-
menv@hedgehog-
-------------
The second NTFS partition (SDA5. not with hiberfil.sys file) is mounted normally during boot process.
-----
menv@hedgehog-
/dev/sda7 on / type ext3 (rw,relatime,
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,
none on /sys/fs/
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/
udev on /dev type tmpfs (rw,mode=0755)
none on /dev/pts type devpts
(rw,noexec,
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,
none on /var/lock type tmpfs (rw,noexec,
none on /lib/init/rw type tmpfs (rw,nosuid,
/dev/sda6 on /boot type ext3 (rw,relatime)
/dev/sda5 on /media/data type fuseblk (rw,nosuid,
/dev/sda8 on /home type ext3 (rw,relatime)
binfmt_misc on /proc/sys/
gvfs-fuse-daemon on /home/menv/.gvfs type fuse.gvfs-
-----------
description: | updated |
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.