{"id":15404614,"url":"https://github.com/k1low/cgrps","last_synced_at":"2025-03-01T10:31:27.314Z","repository":{"id":31906607,"uuid":"129048489","full_name":"k1LoW/cgrps","owner":"k1LoW","description":"cgrps is a set of commands for checking cgroups.","archived":false,"fork":false,"pushed_at":"2024-12-12T03:22:18.000Z","size":3738,"stargazers_count":14,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-23T20:35:02.512Z","etag":null,"topics":["cgroup","cgroups","cli"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/k1LoW.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"k1LoW","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2018-04-11T06:54:16.000Z","updated_at":"2025-02-07T21:59:58.000Z","dependencies_parsed_at":"2023-12-19T03:29:07.449Z","dependency_job_id":null,"html_url":"https://github.com/k1LoW/cgrps","commit_stats":{"total_commits":135,"total_committers":2,"mean_commits":67.5,"dds":0.007407407407407418,"last_synced_commit":"4ce0dca3bc46071f7cbcdbab22d0630c6c6273bb"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fcgrps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fcgrps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fcgrps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fcgrps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k1LoW","download_url":"https://codeload.github.com/k1LoW/cgrps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241353276,"owners_count":19949013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cgroup","cgroups","cli"],"created_at":"2024-10-01T16:13:51.404Z","updated_at":"2025-03-01T10:31:26.392Z","avatar_url":"https://github.com/k1LoW.png","language":"Go","funding_links":["https://github.com/sponsors/k1LoW"],"categories":[],"sub_categories":[],"readme":"# cgrps [![Build Status](https://travis-ci.org/k1LoW/cgrps.svg?branch=master)](https://travis-ci.org/k1LoW/cgrps) [![GitHub release](https://img.shields.io/github/release/k1LoW/cgrps.svg)](https://github.com/k1LoW/cgrps/releases)\n\n`cgrps` is a set of commands for checking cgroups.\n\n![cgrps.gif](cgrps.gif)\n\n## Usage\n\n`cgrps` is supposed to be used with [peco](https://github.com/peco/peco) like following command,\n\n```sh\n$ cgrps stat $(cgrps ls | peco)\n```\n\nor\n\n```sh\n$ cgrps ls | grep user.slice | head -1 |  cgrps stat\n```\n\n### Use with `ps`\n\n```sh\n$ ps u --pid $(cgrps ls | peco | cgrps pids | xargs)\n```\n\n### Use with `pidstat`\n\n```sh\n$ pidstat -dru -h -p $(cgrps ls | peco | cgrps pids | xargs | tr ' ' ',')\n```\n\n### Use with `lsof`\n\n```sh\n$ lsof -Pn -i -a -p $(cgrps ls | peco | cgrps pids | xargs | tr ' ' ',')\n```\n\n## Commands\n\n### `cgrps ls`\n\nlist cgroups.\n\n### `cgrps pids [CGROUP...]`\n\nreport a snapshot of the current cgroups pids.\n\n### `cgrps stat [CGROUP]`\n\nshow current cgroup stats (`CPU` `MEMORY` `BLKIO` `PIDS`).\n\n### `cgrps identify [PID...]`\n\nreport cgroups for processes.\n\n## !!!NOTICE!!!\n\n`cgrps` displays cgroups with the same hierarchies together.\n\nIf you want to check separately, please use `cgroup-tools (Ubuntu)` or `libcgroup-tools (CentOS)` etc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Fcgrps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk1low%2Fcgrps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Fcgrps/lists"}