Public bug reported:

Setup your system to allow for many processes. Then run:

seq 70000 | xargs -P0 -n1 -I {} bash -c 'echo {};sleep {}'

When the number hits 50000 (and you have 100000 processes running on the
system), then `pstree` is much slower than `ps aux`.

    $ time ps aux >/dev/null
    real    0m30.576s
    user    0m6.760s
    sys     0m22.336s

    $ time pstree >/dev/null
    real    14m31.470s
    user    13m15.556s
    sys     0m51.852s

This suggests that the algorithm for `pstree` is suboptimal when you
have many processes.

** Affects: psmisc (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1764458

Title:
  pstree  slower than ps aux

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/psmisc/+bug/1764458/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to