Skip to content

Conversation

@gaius-qi
Copy link
Member

@gaius-qi gaius-qi commented Feb 2, 2026

Description

This pull request updates the CPU and memory cgroup statistics structures to remove unused fields and reorders field tags for consistency across the codebase and protobuf definitions. The changes affect both the protobuf files and the generated Rust and Go code.

Cgroup CPU and Memory Structure Updates:

  • Removed the shares field from CgroupCPU and renumbered the period and quota fields for consistency in common.proto, common.v2.rs, and generated Go code. [1] [2] [3] [4]
  • Removed the max_usage and failcnt fields from CgroupMemory in common.proto, common.v2.rs, and generated Go code. [1] [2] [3] [4]

Version Update:

  • Bumped the crate version in Cargo.toml from 2.2.15 to 2.2.16 to reflect these changes.

Related Issue

Motivation and Context

Signed-off-by: Gaius <gaius.qi@gmail.com>
@gaius-qi gaius-qi self-assigned this Feb 2, 2026
@gaius-qi gaius-qi added the enhancement New feature or request label Feb 2, 2026
Copy link
Member

@chlins chlins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@gaius-qi gaius-qi enabled auto-merge (squash) February 2, 2026 10:35
@gaius-qi gaius-qi merged commit e745487 into main Feb 2, 2026
5 checks passed
@gaius-qi gaius-qi deleted the feature/cgroups-mem branch February 2, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants