--- id: cpuset-py3 version: "1.0.2" license: unclear license_treatment: unclear maintenance: abandoned --- # cpuset-py3 — Fork of cpuset (https://github.com/lpechacek/cpuset) by Alex Tsariounov that works with python3 License: unclear · Maintenance: abandoned · Downloads: 363.9K/mo ## What it is and what it does cpuset-py3 is a Python wrapper around the Linux cpuset kernel facility, which controls CPU and memory resource allocation for processes and groups. It abstracts the low-level filesystem calls needed to create, modify, and manage cpusets—logical groupings of CPUs and memory nodes that constrain process execution. The package is a Python 3 port of the original cpuset utility, intended for system administrators and developers who need programmatic control over CPU affinity and NUMA resource binding on Linux systems. The package has no external dependencies and installs easily, but it is abandoned—the last commit was in 2016 and no releases have been made since 2020. It requires root privileges, a Linux kernel with cpuset support, and the cpuset filesystem to be mounted. The license is stated as GPLv2 in the description but not formally declared in package metadata, creating ambiguity for downstream use. Use it for: - Isolate CPU cores for latency-sensitive workloads by binding processes to specific cpuset groups. - Enforce NUMA-aware memory allocation and CPU binding on multi-socket systems. - Programmatically manage CPU resource limits for containerized or multi-tenant applications. - Restrict process execution to specific CPU cores for performance testing and benchmarking. - Implement CPU affinity policies in system administration scripts on Linux servers. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Wraps Linux cpuset kernel facilities through Python to manage CPU and memory resource allocation on multi-core systems. No—the package is abandoned (last commit 2016-01-21, no releases since 2020-12-01) and will receive no maintenance or security updates. The license is ambiguous in metadata. If you need cpuset control, use the system cpuset command directly, interact with cgroups v2 via standard Python libraries, or adopt a maintained alternative. Install only if you are maintaining legacy code that already depends on it. ## Install pip install cpuset-py3 uv add cpuset-py3 poetry add cpuset-py3 ## Installing cpuset-py3 Before you install: Low install friction with no runtime dependencies, but the project is abandoned—last commit was 2016-01-21 and no releases since 2020-12-01. Expect no maintenance or security updates. License in practice: License treatment is unclear: the description excerpt cites GNU General Public License version 2, but the package metadata does not declare it formally. Verify the actual license terms before use in proprietary or restrictive-license projects. Quickstart: pip install cpuset-py3 import cpuset # Requires root access and Linux cpuset filesystem mounted cpuset.create_cpuset('mygroup', cpus='0-3') Requires Linux kernel with cpuset support enabled, root privileges to modify cpuset filesystem, and /dev/cpuset or /sys/fs/cgroup/cpuset mounted. Verify before relying: - Whether the package works with modern Python 3 versions (last release 2020-12-01, no version constraint specified). - Actual license declaration: description cites GPLv2 but metadata does not formalize it. - Whether the cpuset filesystem API it wraps has changed in recent Linux kernels. ## Package facts - License: not declared (unclear) - Python support: unspecified - Install friction: low - Maintenance: abandoned - Downloads: 363.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags linux cpu affinity management, cpuset kernel wrapper, cpu memory resource allocation, process cpu binding, linux cgroup cpu control, numa node management, cpu core isolation, linux-kernel, system-admin, abandoned [View on SkillFed](https://skillfed.io/packages/cpuset-py3) · [View on PyPI](https://pypi.org/project/cpuset-py3/)