A lightweight top like monitor for linux CGroups
Project description
A lightweight top like monitor for linux CGroups
Introduction
Linux Control Groups aka CGroups is a lighweight Linux mechanism to control resources, typically cpu and memory for a logical group of processes.
Where traditional use of computers usualy involved managing resources on a per-user basis, cgroups allows to constrints resources at a much thiner granularity. For example, it possible to bound Firefox memory usage and run a Blender rendering job at a lower priority without involving multiple users neither tracking manually a bunch of PIDs.
This mechanism is at the heart of Docker, LXC and Systemd isiolation layers to name only a few.
While is common and easy to monitor resources at a task level and system, there were no tools widely available to monitor theses resources at a logical, intermediary level, namely CGroups
CTOP is the tool that is solving this specific issue.
It is completely agnostic of the underlying containerization technique used. Your cgroups could be managed by cgmanager, system and by hand, it is flexible enough to adapt to any scenario. The only requirement is to have at least one active cgroup hierarchie.
Installation
pip install ctop
ctop
OR
git clone https://github.com/yadutaf/ctop.git
cd ctop
pip install -r requirements.txt
./ctop.py
Requirements
python 2.7.x
pip
at least one cgroup hierarchie mounted
Licence
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ctop-0.3.0.tar.gz
.
File metadata
- Download URL: ctop-0.3.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76557a8019e0a5d6106d792075f35179da6efea4a375150641f40e0663434ae7 |
|
MD5 | c7dff67927e1203c0ab4c57def5ec4a7 |
|
BLAKE2b-256 | 4c0520f1f37803cc6a882a653237192a5841faa354e18c15b4adad25385bce8e |