psutil v5.4.4 Release Notes
-
2018-04-13
β¨ Enhancements
- π§ 1239_, [Linux]: expose kernel
slab
memory field forvirtual_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()
_ withpercpu=True
return fewer CPUs on systems using process groups (> 64 cores). - π 771_, [Windows]:
cpu_stats()
_ andcpu_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
asgetpriority()
doesn't support real-time processes. (patch by Georg Sauthoff) - π 1194_, [SunOS]: fix double
free()
inProcess.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 raiseTimeoutExpired
_. - π§ 1238_, [Linux]:
sensors_battery()
_ may returnNone
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 withIOError
"no such file". - 1255_, [FreeBSD]:
swap_memory()
_ stats were erroneously represented in KB. (patch by Denis KrienbΓΌhl)
Backward compatibility
- π 771_, [Windows]:
cpu_count()
_ withlogical=False
on Windows XP and Vista is no longer supported and returnsNone
.
- π§ 1239_, [Linux]: expose kernel