Package: udev
Version: 175-7
Severity: normal

Hi,

when starting and generating the initial events, udevd tries to load
modules kvm and kvm-intel for every running cpu in the system in
parallel.  When loading a module, the kernel first sets up module memory
including per cpu variables, checks symbols and so on and later checks
if a module with the same name has already been loaded.  Only this
final name checking is serialized.  As percpu memory for modules is
limited to 8192 bytes on x86_64 and kvm needs comparatively many 304
bytes, setup for 32 instances of kvm does not fit within the reserved
maximum.  This results in several kernel messages like this and module
loading fails:

PERCPU: allocation failed, size=304 align=32, alloc from reserved chunk failed
Pid: 10288, comm: modprobe Not tainted 3.6.0-rc4-64+ #5
Call Trace:
 [<ffffffff810a7a38>] ? pcpu_alloc+0xa48/0xaa0
 [<ffffffff81071845>] ? find_sec+0x55/0x80
 [<ffffffff810739d3>] ? sys_init_module+0x383/0x1b40
 [<ffffffff8146139b>] ? sysenter_dispatch+0x7/0x1e
kvm: Could not allocate 304 bytes percpu data

Starting udevd with --children-max=1, the problem disappears of course.

If other modules fail to load at the same time for the same reason,
this problem becomes more important, because there might not be several
devices of the same kind and thus there is no "retry" like with kvm and
many cpus.

Maybe udevd should not run commands for individual instances of devices
with the same device id in parallel because i. e. loading a module for
the first instance might actually take care of all the other ones at
the same time.

Regards
Stephan

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (550, 'testing'), (500, 'stable'), (210, 'unstable'), (1, 
'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.6.0-rc4-64+ (SMP w/32 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages udev depends on:
ii  debconf [debconf-2.0]  1.5.46
ii  libc6                  2.13-35
ii  libselinux1            2.1.9-5
ii  libudev0               175-7
ii  lsb-base               4.1+Debian7
ii  procps                 1:3.3.3-2
ii  util-linux             2.20.1-5.1

Versions of packages udev recommends:
ii  pciutils  1:3.1.9-5
ii  usbutils  1:005-3

udev suggests no packages.

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to