Giter VIP home page Giter VIP logo

Comments (4)

Atoptool avatar Atoptool commented on June 16, 2024

Cgroups support will be implemented in steps:

  1. Gather basic cgroups metrics and show interactively.
  2. Store cgroups metrics in the raw file.
  3. Add cgroups related information to the parsable output and json output.
  4. Update manual page.

from atop.

Atoptool avatar Atoptool commented on June 16, 2024

Step 1:

  • The meaning of key/option 'G' and 'X' has been swapped.
  • Key/option 'X' is used now to suppress showing terminated processes.
  • Key/option 'G' is used now to show a hierarchical structure of cgroups and related metrics.
  • With the keys/options 2 till 7 the level depth of the cgroups can be chosen (7 is default).
  • Key/option 8 also shows related active processes, except the kernel processes (usually in the root cgroup).
  • Key/option 9 shows all active processes.
  • With key/option 'a' (toggle) all cgroups and processes are shown instead of only the active cgroups and processes. A cgroup is considered inactive when no processes are assigned to that cgroup nor to the cgroups underneath.
  • With key/option 'C' the output is sorted on CPU consumption.
  • With key/option 'M' the output is sorted on memory consumption.
  • Per cgroup, the number of assigned processes is shown (NPROCS) as well as the number of processes assigned to the cgroups underneath (PBELOW).

from atop.

Atoptool avatar Atoptool commented on June 16, 2024

Step 2:

  • For systems with cgroups version 2 support, cgroups metrics and the accompanying PID list are written in a compressed way to the raw file.
  • When reading raw files, cgroup metrics and PID list are decompressed and additional structures are build again to be able to handle and sort cgroups information again.

from atop.

Atoptool avatar Atoptool commented on June 16, 2024

Step 3:

  • Label 'CGR' has been introduced to print cgroup-related information.
  • Parsable output: one line (marked 'C') is printed per cgroup to show the metrics and one line (marked 'P') is printed to show a list of PIDs related to the cgroup.
  • JSON output: all metrics are printed per cgroup as a dictionary with a specific key to show the list of PIDs.

from atop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.