Skip to content

[branch-2.1](memory) BE memory info compatible with CgroupV2#39799

Merged
yiguolei merged 1 commit intoapache:branch-2.1from
xinyiZzz:branch-2.1_20240822_pick5
Aug 22, 2024
Merged

[branch-2.1](memory) BE memory info compatible with CgroupV2#39799
yiguolei merged 1 commit intoapache:branch-2.1from
xinyiZzz:branch-2.1_20240822_pick5

Conversation

@xinyiZzz
Copy link
Copy Markdown
Contributor

pick #39256

/* Cgroup debugging steps
 * CgroupV1:
 *  sudo cgcreate -t username:username -g memory:test
* sudo sh -c "echo 6000M >
/sys/fs/cgroup/memory/test/memory.limit_in_bytes"
 *  // process started by the current terminal will join Cgroup test
 *  sudo sh -c "echo $$ >> /sys/fs/cgroup/memory/test/cgroup.procs"
 *
 * CgroupV2:
 *  sudo mkdir /sys/fs/cgroup/test
 *  sudo echo 3000M > /sys/fs/cgroup/test/memory.max
 *  // process started by the current terminal will join Cgroup test
 *  sudo sh -c "echo $$ >> /sys/fs/cgroup/test/cgroup.procs"
 *  or
* // only memory allocated after joining the Cgroup is counted in
`memory.current`.
 *  sudo echo pid > /sys/fs/cgroup/test/cgroup.procs

debug string
```
CGroup Info: Process CGroup Memory Info (cgroups path: /sys/fs/cgroup/memory/test, cgroup version: v1): memory limit: 2097152000, memory usage: 500969472
```
@doris-robot
Copy link
Copy Markdown

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@xinyiZzz
Copy link
Copy Markdown
Contributor Author

run buildall

Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

Comment thread be/test/util/cgroup_util_test.cpp
@yiguolei yiguolei merged commit 9d5468d into apache:branch-2.1 Aug 22, 2024
cambyzju added a commit to cambyzju/incubator-doris that referenced this pull request Sep 12, 2024
cambyzju added a commit to cambyzju/incubator-doris that referenced this pull request Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants