Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpuset: fix the issue of cannot add task if cpus and mems empty in cp… #11

Open
wants to merge 100 commits into
base: master
Choose a base branch
from

Conversation

lifupan
Copy link

@lifupan lifupan commented Feb 4, 2020

…uset

copy_parent_if_needed makes sure that the parent directory of
current is created and populated with the proper cpus and mems
files copied from it's parent.

Signed-off-by: fupan.lfp [email protected]

@lifupan lifupan requested a review from levex February 4, 2020 16:31
@lifupan lifupan requested a review from tecywiz121 February 25, 2020 16:15
liubin and others added 23 commits August 25, 2020 10:50
Signed-off-by: bin liu <[email protected]>
Signed-off-by: bin liu <[email protected]>
Add SPDX-License-Identifier for all existing codes.

Fixes: levex#2

Signed-off-by: bin liu <[email protected]>
add SPDX-License-Identifier for all source
Signed-off-by: bin liu <[email protected]>
cfs_quota can be set to -1 to indicate no limit

Fixes: levex#5

Signed-off-by: bin liu <[email protected]>
Errors cause should be shared to let anyhow to wrap it.

Fixes: levex#7

Signed-off-by: bin liu <[email protected]>
cpu: change cfs_quota from u64 to i64
…-cause

errors: add sync marker to error cause
c_char is equal to i8 on x86, but it is equal to u8 on arm arch,
so we need to use type c_char instead of i8 to avoid compiling error.

Fixes: levex#9

Signed-off-by: zhanghj <[email protected]>
…-aarch64

lib: fix compiling error for type i8 in aarch64 environment
liubin added a commit to liubin/cgroups-rs that referenced this pull request Sep 22, 2020
Fixes: levex#11

Signed-off-by: bin liu <[email protected]>
liubin added a commit to liubin/cgroups-rs that referenced this pull request Sep 22, 2020
Fixes: levex#11

Signed-off-by: bin liu <[email protected]>
liubin added a commit to liubin/cgroups-rs that referenced this pull request Sep 22, 2020
Fixes: levex#11

Signed-off-by: bin liu <[email protected]>
liubin added a commit to liubin/cgroups-rs that referenced this pull request Sep 22, 2020
Fixes: levex#11

Signed-off-by: bin liu <[email protected]>
liubin added a commit to liubin/cgroups-rs that referenced this pull request Sep 22, 2020
Fixes: levex#11

Signed-off-by: bin liu <[email protected]>
Tim-Zhang and others added 3 commits January 25, 2021 17:32
Display readme on the crate's page.

Signed-off-by: Tim Zhang <[email protected]>
Add field homepage and readme for Cargo.toml
It should remove the child cgroups recursively
and then remove the parent cgroup, otherwise,
it would remove failed.

Signed-off-by: fupan.lfp <[email protected]>
lifupan and others added 23 commits January 25, 2021 17:39
cgroup: fix the issue of remove cgroup
The procinfo library gets all the mount info,
but we don't need all the mount info.

Signed-off-by: quanweiZhou <[email protected]>
Bump version from 0.2.2 to 0.2.3

Signed-off-by: Tim Zhang <[email protected]>
to pull in nix-rust/nix#1372 and get statfs
MAGIC constants on s390x. Additionally, fork() calls in tests now have
to be marked unsafe.

Fixes: #37

Signed-off-by: Jakob Naucke <[email protected]>
For older kernels, it is possible that there is no hierarchical numa
stats.

Fixes: #36
Signed-off-by: Peng Tao <[email protected]>
memory: fix panic when no hierarchical numa stat is available
Bump version from 0.2.3 to 0.2.4

Signed-off-by: Jakob Naucke <[email protected]>
Where the oom control fields might not be present.

Fixes: #36
Signed-off-by: Peng Tao <[email protected]>
memory: fix parse_oom_control panic on older kernels
Fix clippy warnings.

Signed-off-by: Tim Zhang <[email protected]>
Because the existing warnings are all fixed.

Signed-off-by: Tim Zhang <[email protected]>
Clone is useful.

Signed-off-by: Tim Zhang <[email protected]>
Impl Clone for hierarchies:V1, hierarchies:V2
Bump version to 0.2.5

Signed-off-by: Tim Zhang <[email protected]>
There are new lints are added in clippy for rust 1.52

Signed-off-by: Tim Zhang <[email protected]>
cargo-clippy has moved the upper_case_acronyms lint to
pedantic(removed from the default list), but we need
the lint to keep names consistent and follow the rust
naming conventions.

Signed-off-by: Tim Zhang <[email protected]>
When reading from the freezer file, it should trim it
first, and the string may container an '\n'.

Fixes: #48

Signed-off-by: fupan.lfp <[email protected]>
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.

10 participants