psutil v5.4.4 Release Notes

  • 2018-04-13

    ✨ Enhancements

    • 🐧 1239_, [Linux]: expose kernel slab memory field for virtual_memory()_. (patch by Maxime Mouial)

    πŸ› Bug fixes

    • 694_, [SunOS]: Process.cmdline()_ could be truncated at the 15th character when reading it from /proc. An extra effort is made by reading it from process address space first. (patch by Georg Sauthoff)
    • 🏁 771_, [Windows]: cpu_count()_ (both logical and cores) return a wrong (smaller) number on systems using process groups (> 64 cores).
    • 🏁 771_, [Windows]: cpu_times()_ with percpu=True return fewer CPUs on systems using process groups (> 64 cores).
    • 🏁 771_, [Windows]: cpu_stats()_ and cpu_freq()_ may return incorrect results on systems using process groups (> 64 cores).
    • 1193_, [SunOS]: return uid/gid from /proc/pid/psinfo if there aren't enough permissions for /proc/pid/cred. (patch by Georg Sauthoff)
    • 1194_, [SunOS]: return nice value from psinfo as getpriority() doesn't support real-time processes. (patch by Georg Sauthoff)
    • πŸ†“ 1194_, [SunOS]: fix double free() in Process.cpu_num()_. (patch by Georg Sauthoff)
    • 1194_, [SunOS]: fix undefined behavior related to strict-aliasing rules and warnings. (patch by Georg Sauthoff)
    • 🐧 1210_, [Linux]: cpu_percent()_ steal time may remain stuck at 100% due to Linux erroneously reporting a decreased steal time between calls. (patch by Arnon Yaari)
    • 🏁 1216_: fix compatibility with Python 2.6 on Windows (patch by Dan Vinakovsky)
    • 🐧 1222_, [Linux]: Process.memory_full_info()_ was erroneously summing "Swap:" and "SwapPss:". Same for "Pss:" and "SwapPss". Not anymore.
    • 🏁 1224_, [Windows]: Process.wait()_ may erroneously raise TimeoutExpired_.
    • 🐧 1238_, [Linux]: sensors_battery()_ may return None in case battery is not listed as "BAT0" under /sys/class/power_supply.
    • 🏁 1240_, [Windows]: cpu_times()_ float loses accuracy in a long running system. (patch by stswandering)
    • 🐧 1245_, [Linux]: sensors_temperatures()_ may fail with IOError "no such file".
    • 1255_, [FreeBSD]: swap_memory()_ stats were erroneously represented in KB. (patch by Denis KrienbΓΌhl)

    Backward compatibility

    • 🏁 771_, [Windows]: cpu_count()_ with logical=False on Windows XP and Vista is no longer supported and returns None.