Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ps performance acorn32 (was Re: Panic on acorn32 current)






Take back the performance comment. Something is monumentally wrong with the 8.0-BETA ps. It takes ages to run:

For comparison:
# file /bin/ps
/bin/ps: ELF 32-bit LSB executable, ARM, version 1, dynamically linked (uses shared libs), for NetBSD 6.99.40, compiled for: arm, not stripped
# time ps>/dev/null
         0.22 real         0.02 user         0.18 sys

And in a chroot with the 8.0-BETA userland:

# file /bin/ps
/bin/ps: ELF 32-bit LSB shared object, ARM, version 1 (ARM), dynamically linked, interpreter /libexec/ld.elf_so, for NetBSD 8.0, compiled for: arm, not stripped
# time ps >/dev/null
         8.19 real         1.25 user         6.62 sys
#

I'd guess the bug is in the libraries as running the 8.0 ps with the 6.99.40 libraries performs at the same speed as the native 6.99.40 binary.

Not a bug. ktrace showed what was going on. Massive repeated lstats of /dev. I'd not run /etc/rc.d/sysdb start in the chroot. Once that was done ps worked entirely sensibly with no odd performance issues. :).

Apologies for the false alarm.

Mike



Home | Main Index | Thread Index | Old Index