Skip to content

Eliminate psutil (memory management) dependency #32656

@orlitzky

Description

@orlitzky

Our psutil dependency cannot be updated (see #26253) because upstream psutil doesn't support cygwin and has no intention to do so. The psutil module is used only to implement the two functions get_memory_usage() and virtual_memory_limit()insage.misc.getusage`. Those functions, in turn, are used only in a few places:

  1. Seting some memory limits on GAP.
  2. Choosing a max stack size for PARI.
  3. Two doctests tests for memory leaks.

None of these applications is critical. Modulo any surprise platform issues, the memory limits that we set are upper limits, and can simply be replaced with large numbers (or no limit).

If they are replaced, and if we forego those two doctests, the entire psutil SPKG can be removed to alleviate the maintenance issues.

CC: @embray @slel @mkoeppe @kiwifb @antonio-rojas @isuruf @dimpase @sagetrac-tmonteil @koffie

Component: packages: standard

Author: Michael Orlitzky

Branch: 056558f

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/32656

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions