#19971 closed enhancement (fixed)

psutil-6.0.0 (Python module)

Reported by: Bruce Dubbs Owned by: Bruce Dubbs
Priority: normal Milestone: 12.2
Component: BOOK Version: git
Severity: normal Keywords:
Cc:

Description

New major version.

Change History (3)

comment:1 by Bruce Dubbs, 10 months ago

Owner: changed from blfs-book to Bruce Dubbs
Status: newassigned

comment:2 by Bruce Dubbs, 10 months ago

Summary: psutil-6.0.0psutil-6.0.0 (Python module)

6.0.0 2024-06-18

Enhancements

  • maxfile and maxpath fields were removed from the namedtuple returned by disk_partitions()_. Reason: on network filesystems (NFS) this can potentially take a very long time to complete.
  • [Windows]: log debug message when using slower process APIs.
  • [macOS]: provide arm64 wheels. (patch by Matthieu Darbois)
  • process_iter()_ no longer pre-emptively checks whether PIDs have been reused. This makes process_iter()_ around 20x times faster.
  • A new psutil.process_iter.cache_clear() API can be used the clear process_iter()_ internal cache.
  • Support building with free-threaded CPython 3.13.
  • Process.connections()_ was renamed to Process.net_connections()_. The old name is still available, but it's deprecated (triggers a DeprecationWarning) and will be removed in the future.
  • [Linux]: provide aarch64 wheels.

Bug fixes

  • [NetBSD]: Process.cmdline()_ sometimes fail with EBUSY. It usually happens for long cmdlines with lots of arguments. In this case retry getting the cmdline for up to 50 times, and return an empty list as last resort.
  • [Linux]: offline cpus raise NotImplementedError in cpu_freq()
  • Add pickle support to psutil Exceptions.
  • [Windows], [CRITICAL]: pid_exists()_ disagrees with Process_ on whether a pid exists when ERROR_ACCESS_DENIED.
  • [macOS]: can't compile on macOS < 10.13.
  • [macOS]: can't compile on macOS 10.11.
  • [macOS]: can't compile on macOS < 10.9.
  • [OpenBSD]: pid_exists()_ erroneously return True if the argument is a thread ID (TID) instead of a PID (process ID).
  • [macOS]: can't compile on macOS 10.4 PowerPC due to missing MNT_ constants.

Porting notes

Version 6.0.0 introduces some changes which affect backward compatibility:

  • The namedtuple returned by disk_partitions()_' no longer has maxfile and maxpath fields.
  • process_iter()_ no longer pre-emptively checks whether PIDs have been reused. If you want to check for PID reusage you are supposed to use Process.is_running()_ against the yielded Process_ instances. That will also automatically remove reused PIDs from process_iter()_ internal cache.
  • Process.connections()_ was renamed to Process.net_connections()_. The old name is still available, but it's deprecated (triggers a DeprecationWarning) and will be removed in the future.

comment:3 by Bruce Dubbs, 10 months ago

Resolution: fixed
Status: assignedclosed

Fixed at commits

94a4272934 Update to libassuan-3.0.0.
a678234dd3 Update to c-ares-1.31.0.
2ecff2c5c5 Update to psutil-6.0.0 (Python module).
643f1a5f08 Update to uhttpmock-0.11.0.
Note: See TracTickets for help on using tickets.