Skip to main content

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

ctop-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file ctop-0.1.0.tar.gz.

File metadata

  • Download URL: ctop-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ctop-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a8a4cc0b6bfd7e2c3d9dac2cea43ecf5468b329c0414ee03884907d3ce624886
MD5 d9d449ba682ceaef3080afde1cc2d4b5
BLAKE2b-256 1ae3969a47641d28d66cb13c3d3395e39ecac0b0913766195a17420b3ef1dc52

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page