Skip to contentSkip to conversation

2.4.29, e100 and a WOL packet causes keventd going mad

DISCUSSION Michael Gernoth 3 participants 7 messages Jan 28, 2005 – Jan 30, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

we have about 70 P4 uniprocessor machines (some with Hyperthreading capable CPUs) running linux 2.4.29, which are woken up on the weekdays by sending a WOL packet to them. The machines all have a E100 nic with WOL enabled in the bios. The E100 driver is compiled into the kernel and not loaded as a module.

If the machine which should be woken up is already running (because someone switched it on by hand), the WOL packet causes keventd to go mad and "use" 100% CPU:

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

    2 root      15   0     0    0    0 R 99.9  0.0 140:50.94 keventd

This can be reproduced on any of the 70 machines by simply sending a WOL packet to it, when it's already running... No entry is made in the kernel log.

The dmesg of an affected machine can be found at:
http://wwwcip.informatik.uni-erlangen.de/~simigern/cip-dmesg
Our kernel-config is at:
http://wwwcip.informatik.uni-erlangen.de/~simigern/cip-generic-config
lspci -vvv is at:
http://wwwcip.informatik.uni-erlangen.de/~simigern/cip-lspci

We are using a kernel.org linux 2.4.29 kernel patched with the current autofs patch and ACL support.

Regards,
Michael

#1 lore raw
Quoted 29 lines · Michael Gernoth

Hi,

we have about 70 P4 uniprocessor machines (some with Hyperthreading capable CPUs) running linux 2.4.29, which are woken up on the weekdays by sending a WOL packet to them. The machines all have a E100 nic with WOL enabled in the bios. The E100 driver is compiled into the kernel and not loaded as a module.

If the machine which should be woken up is already running (because someone switched it on by hand), the WOL packet causes keventd to go mad and "use" 100% CPU:

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

    2 root      15   0     0    0    0 R 99.9  0.0 140:50.94 keventd

This can be reproduced on any of the 70 machines by simply sending a WOL packet to it, when it's already running... No entry is made in the kernel log.

The dmesg of an affected machine can be found at:
http://wwwcip.informatik.uni-erlangen.de/~simigern/cip-dmesg
Our kernel-config is at:
http://wwwcip.informatik.uni-erlangen.de/~simigern/cip-generic-config
lspci -vvv is at:
http://wwwcip.informatik.uni-erlangen.de/~simigern/cip-lspci

We are using a kernel.org linux 2.4.29 kernel patched with the current autofs patch and ACL support.

Quoted 7 lines

Regards,
Michael
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Do you know the official NIC product name e.g Pro/100B. I need to identify the LAN Controller. There are differences between 557 (not sure if 557 can do WOL), 558 and 559 how they ASSERT the PME# signal. Even the same chip have differences between steppings.

I suspect that PME# is not being DEASSERT after the Wake-up packet is received

#2 lore raw
Quoted 4 lines · Bukie Mabayoje

Do you know the official NIC product name e.g Pro/100B. I need to identify the LAN Controller. There are differences between 557 (not sure if 557 can do WOL), 558 and 559 how they ASSERT the PME# signal. Even the same chip have differences between steppings.

The chip is integrated on the motherboard. Its PCI ID is 8086:1039. lspci says: Intel Corp. 82801BD PRO/100 VE (LOM) Ethernet Controller (rev 81) If you want I can open up one of these machines tomorrow to look on the chip directly.

Regards,
Michael

#3 lore raw
Quoted 6 lines · Michael Gernoth
Quoted 4 lines · Bukie Mabayoje

Do you know the official NIC product name e.g Pro/100B. I need to identify the LAN Controller. There are differences between 557 (not sure if 557 can do WOL), 558 and 559 how they ASSERT the PME# signal. Even the same chip have differences between steppings.

Quoted 7 lines

The chip is integrated on the motherboard. Its PCI ID is 8086:1039. lspci says: Intel Corp. 82801BD PRO/100 VE (LOM) Ethernet Controller (rev 81) If you want I can open up one of these machines tomorrow to look on the chip directly.

Regards,
Michael

Thanks got enough information....

#4 lore raw
In reply to Michael Gernoth
Quoted 11 lines · Michael Gernoth
Quoted 4 lines · Bukie Mabayoje

Do you know the official NIC product name e.g Pro/100B. I need to identify the LAN Controller. There are differences between 557 (not sure if 557 can do WOL), 558 and 559 how they ASSERT the PME# signal. Even the same chip have differences between steppings.

The chip is integrated on the motherboard. Its PCI ID is 8086:1039. lspci says: Intel Corp. 82801BD PRO/100 VE (LOM) Ethernet Controller (rev 81) If you want I can open up one of these machines tomorrow to look on the chip directly.

Quoted 7 lines

Regards,
Michael
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

I can't find the datasheet for 82801BD. 82801 are typically I/O Controller Hub. I need to see how it drives the PCI Interface Signals.

I will try an reproduce it on a different set of chipset. Basically send a WOL packet to a live linux system. And see if keventd consumes excessive CPU time.

#5 lore raw
In reply to Michael Gernoth
Quoted 8 lines · Michael Gernoth

Hi,

we have about 70 P4 uniprocessor machines (some with Hyperthreading capable CPUs) running linux 2.4.29, which are woken up on the weekdays by sending a WOL packet to them. The machines all have a E100 nic with WOL enabled in the bios. The E100 driver is compiled into the kernel and not loaded as a module.

Quoted 6 lines

If the machine which should be woken up is already running (because someone switched it on by hand), the WOL packet causes keventd to go mad and "use" 100% CPU:

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

    2 root      15   0     0    0    0 R 99.9  0.0 140:50.94 keventd

Probably a task event is rescheduling itself repeatedly? e100 does not seem to schedule_task() events directly, so I wonder what is going on.

Can you boot a machine with profile=2, then send the WOL packet causing keventd to go mad and run:

readprofile | sort -nr +2 | head -20

After a few minutes.

Ganesh, Scott, Jeff, any ideas?

Quoted 13 lines

This can be reproduced on any of the 70 machines by simply sending a WOL packet to it, when it's already running... No entry is made in the kernel log.

The dmesg of an affected machine can be found at:
http://wwwcip.informatik.uni-erlangen.de/~simigern/cip-dmesg
Our kernel-config is at:
http://wwwcip.informatik.uni-erlangen.de/~simigern/cip-generic-config
lspci -vvv is at:
http://wwwcip.informatik.uni-erlangen.de/~simigern/cip-lspci

We are using a kernel.org linux 2.4.29 kernel patched with the current autofs patch and ACL support.

#6 lore raw
Quoted 7 lines · Marcelo Tosatti

Probably a task event is rescheduling itself repeatedly? e100 does not seem to schedule_task() events directly, so I wonder what is going on.

Can you boot a machine with profile=2, then send the WOL packet causing keventd to go mad and run:

readprofile | sort -nr +2 | head -20

faui07c:~# readprofile | sort -nr +2 | head -20
  2352 acpi_ns_get_next_valid_node              130.6667
  9577 acpi_os_read_port                        121.2278
  4431 acpi_os_signal_semaphore                 100.7045
  4639 default_idle                              57.9875
  4363 acpi_ns_get_next_node                     57.4079
  5957 acpi_ns_delete_namespace_by_owner         37.7025
  2307 acpi_os_write_port                        34.9545
  4048 acpi_os_wait_semaphore                    18.8279
  1924 acpi_ut_acquire_mutex                     16.8772
   492 __rdtsc_delay                             15.3750
   526 acpi_os_get_thread_id                     15.0286
  1421 acpi_ut_release_mutex                     13.1574
   339 acpi_ns_get_parent_node                   11.6897
  1506 acpi_ut_release_to_cache                  10.9130
  1600 acpi_ut_acquire_from_cache                 9.8160
   909 acpi_ds_method_data_init                   8.4953
   327 acpi_ut_valid_acpi_name                    6.9574
   311 acpi_ns_search_node                        4.7121
   268 acpi_ps_get_opcode_info                    4.0606
    31 acpi_ut_delete_generic_state_cache         3.4444

The machine has an uptime of 10 minutes at that point, and the second WOL packet was sent directly after the machine came up and I was able to ssh into it.

Regards,
Michael