psutil v5.9.1 Release Notes

  • 2022-05-20

    โœจ Enhancements

    • ๐Ÿ‘ 1053_: drop Python 2.6 support. (patches by Matthieu Darbois and Hugo van Kemenade)
    • ๐Ÿง 2050_, [Linux]: increase read(2) buffer size from 1k to 32k when reading /proc pseudo files line by line. This should help having more consistent results.
    • ๐Ÿ‘ 2057_, [OpenBSD]: add support for cpu_freq()_.
    • ๐Ÿง 2107_, [Linux]: Process.memory_full_info()_ (reporting process USS/PSS/Swap memory) now reads /proc/pid/smaps_rollup instead of /proc/pids/smaps, which makes it 5 times faster.

    ๐Ÿ› Bug fixes

    • 2048_: AttributeError is raised if psutil.Error class is raised manually and passed through str.
    • ๐Ÿง 2049_, [Linux]: cpu_freq()_ erroneously returns curr value in GHz while min and max are in MHz.
    • ๐Ÿง 2050_, [Linux]: virtual_memory()_ may raise ValueError if running in a LCX container.