[systemd-bugs] [Bug 72611] systemctl is-enabled scales poorly with many units

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Dec 11 14:39:37 PST 2013


https://bugs.freedesktop.org/show_bug.cgi?id=72611

--- Comment #7 from David Strauss <david at davidstrauss.net> ---
Okay, so I think I understand the issue now. If you have a ton of units, and
they're mostly enabled, checking is-enabled scales O(2*n).

Here's the problematic path in our case, with units in /etc/systemd/system:
 (1) find_symlinks_fd() iterates through everything in /etc/systemd/system
 (2) When we find the multi-user.target.wants directory, we recursively call
find_symlinks_fd() on it.
 (3) We look for symlinks back to the unit.

This isn't at all unique to recent systemd versions; it's just a new problem
we're seeing with our increasing scale.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20131211/368c2adc/attachment.html>


More information about the systemd-bugs mailing list