Skip to content

thermald generates many udev-worker processes #399

@tm4ig

Description

@tm4ig

On my new laptop with intel core i7-1255U and archlinux when thermald 2.5.2 is launched systemd-udevd has 40 child processes udev-worker with overall memory size 100MB. If turn on debug log in systemd-udevd I see many thermal events

...Jun 21 22:18:34 sinx (udev-worker)[2743]: thermal_zone1: Processing device (SEQNUM=5279, ACTION=change) Jun 21 22:18:34 sinx (udev-worker)[2743]: thermal_zone1: sd-device: Created db file '/run/udev/data/+thermal:thermal_zone1' for '/devices/virtual/thermal/thermal_zone1' Jun 21 22:18:34 sinx (udev-worker)[2743]: thermal_zone1: Device processed (SEQNUM=5279, ACTION=change) Jun 21 22:18:34 sinx (udev-worker)[2743]: thermal_zone1: sd-device-monitor(worker): Passed 238 byte to netlink monitor. Jun 21 22:18:34 sinx (udev-worker)[2743]: thermal_zone1: Processing device (SEQNUM=5280, ACTION=change) Jun 21 22:18:34 sinx (udev-worker)[2743]: thermal_zone1: sd-device: Created db file '/run/udev/data/+thermal:thermal_zone1' for '/devices/virtual/thermal/thermal_zone1' Jun 21 22:18:34 sinx (udev-worker)[2743]: thermal_zone1: Device processed (SEQNUM=5280, ACTION=change) Jun 21 22:18:34 sinx (udev-worker)[2743]: thermal_zone1: sd-device-monitor(worker): Passed 238 byte to netlink monitor. Jun 21 22:18:34 sinx (udev-worker)[2743]: thermal_zone1: Processing device (SEQNUM=5281, ACTION=change) Jun 21 22:18:34 sinx (udev-worker)[2743]: thermal_zone1: sd-device: Created db file '/run/udev/data/+thermal:thermal_zone1' for '/devices/virtual/thermal/thermal_zone1' Jun 21 22:18:34 sinx (udev-worker)[2743]: thermal_zone1: Device processed (SEQNUM=5281, ACTION=change) Jun 21 22:18:34 sinx (udev-worker)[2743]: thermal_zone1: sd-device-monitor(worker): Passed 238 byte to netlink monitor...
There is no this problem on old intel cpus and same system.
I think that so many udev-workers and memory usage by thermald on new cpu it is bug.

Udev-worker's count dependents of cpu cores number so with more performance cpus number of udev-workers maybe even more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions