[Pkg-utopia-maintainers] Bug#781456: udisks2: udisksd eats 100% cpu while looping through all devices on md0

Jaakko Niemi liiwi at debian.org
Sun Mar 29 15:06:12 UTC 2015


Package: udisks2
Version: 2.1.5-1
Severity: important

ps shows udisksd eating 100% cpu:

15849 root      20   0  378856   9084   6752 R  99,3  0,1 134:13.88 udisksd

strace shows that it's just looping throug all devices that are part of md0 array:

readlink("/sys/devices/virtual/block/md0/md/dev-sdd1/block", "../../../../../pci0000:00/0000:0"..., 4095) = 84
lstat("/sys", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
lstat("/sys/devices", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/virtual", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/virtual/block", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/virtual/block/md0", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/virtual/block/md0/md", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/virtual/block/md0/md/dev-sdd1", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/pci0000:00", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/pci0000:00/0000:00:1f.2", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/pci0000:00/0000:00:1f.2/ata4", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/pci0000:00/0000:00:1f.2/ata4/host3", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd/sdd1", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
open("/sys/devices/virtual/block/md0/md/dev-sdd1/state", O_RDONLY) = 16
fstat(16, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
read(16, "in_sync\n", 4096)             = 8
read(16, "", 4088)                      = 0
close(16)                               = 0
open("/sys/devices/virtual/block/md0/md/dev-sdd1/slot", O_RDONLY) = 16
fstat(16, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
read(16, "0\n", 4096)                   = 2
read(16, "", 4094)                      = 0
close(16)                               = 0
open("/sys/devices/virtual/block/md0/md/dev-sdd1/errors", O_RDONLY) = 16
fstat(16, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
read(16, "0\n", 4096)                   = 2
read(16, "", 4094)                      = 0
close(16)                               = 0
readlink("/sys/devices/virtual/block/md0/md/dev-sde1/block", "../../../../../pci0000:00/0000:0"..., 4095) = 84
lstat("/sys", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
lstat("/sys/devices", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/virtual", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/virtual/block", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/virtual/block/md0", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/virtual/block/md0/md", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/virtual/block/md0/md/dev-sde1", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/pci0000:00", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/pci0000:00/0000:00:1f.2", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/pci0000:00/0000:00:1f.2/ata5", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/pci0000:00/0000:00:1f.2/ata5/host4", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/pci0000:00/0000:00:1f.2/ata5/host4/target4:0:0", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/pci0000:00/0000:00:1f.2/ata5/host4/target4:0:0/4:0:0:0", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/pci0000:00/0000:00:1f.2/ata5/host4/target4:0:0/4:0:0:0/block", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/pci0000:00/0000:00:1f.2/ata5/host4/target4:0:0/4:0:0:0/block/sde", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/sys/devices/pci0000:00/0000:00:1f.2/ata5/host4/target4:0:0/4:0:0:0/block/sde/sde1", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
open("/sys/devices/virtual/block/md0/md/dev-sde1/state", O_RDONLY) = 16
fstat(16, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
read(16, "in_sync\n", 4096)             = 8
read(16, "", 4088)                      = 0
close(16)                               = 0
open("/sys/devices/virtual/block/md0/md/dev-sde1/slot", O_RDONLY) = 16
fstat(16, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
read(16, "2\n", 4096)                   = 2
read(16, "", 4094)                      = 0
close(16)                               = 0
open("/sys/devices/virtual/block/md0/md/dev-sde1/errors", O_RDONLY) = 16
fstat(16, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
read(16, "0\n", 4096)                   = 2
read(16, "", 4094)                      = 0
close(16)

and md0 is:

md0 : active raid5 sde1[3] sdc1[1] sdd1[0]
      3906764800 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU]
      bitmap: 0/15 pages [0KB], 65536KB chunk

This happens with both versions in ustable and exprerimental.

What other information is needed?



-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.0.0-rc3+ (SMP w/8 CPU cores)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages udisks2 depends on:
ii  dbus                   1.8.16-1
ii  libacl1                2.2.52-2
ii  libatasmart4           0.19-3
ii  libc6                  2.19-17
ii  libglib2.0-0           2.42.1-1
ii  libgudev-1.0-0         215-13
ii  libpam-systemd         215-13
ii  libpolkit-agent-1-0    0.110-2
ii  libpolkit-gobject-1-0  0.110-2
ii  libsystemd0            215-13
ii  libudisks2-0           2.1.3-5
ii  parted                 3.2-7
ii  udev                   215-13

Versions of packages udisks2 recommends:
ii  dosfstools   3.0.27-1
ii  eject        2.1.5+deb1+cvs20081104-13.1
ii  gdisk        0.8.10-2
ii  ntfs-3g      1:2014.2.15AR.3-1
ii  policykit-1  0.105-8

Versions of packages udisks2 suggests:
ii  btrfs-tools     3.17-1.1
ii  cryptsetup-bin  2:1.6.6-5
ii  exfat-utils     1.1.0-2
ii  mdadm           3.3.2-5
pn  reiserfsprogs   <none>
pn  xfsprogs        <none>

-- no debconf information



More information about the Pkg-utopia-maintainers mailing list