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

[WIP] Memory cgroup v2 #95

Closed
wants to merge 106 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
0e2972e
time to test
tsturzl Jun 18, 2021
c0cb444
hella tests
tsturzl Jun 18, 2021
57a080e
time to test
tsturzl Jun 18, 2021
f099a34
hella tests
tsturzl Jun 18, 2021
8a59a72
Merge branch 'ts-memory-v2' of github.com:tsturzl/youki into ts-memor…
tsturzl Jun 18, 2021
6a38a5d
Add cgroup v1 freezer controller
lizhemingi Jun 17, 2021
25bd08b
Add a test for applying CpuAcct.
yjuba Jun 18, 2021
b7d6390
Merge pull request #96 from yjuba/add-cpuacct-test
utam0k Jun 18, 2021
5714fc4
improve build time in CI
utam0k Jun 18, 2021
181518b
Check if rootless container is required and ensure prerequisites
Furisto Jun 15, 2021
16687c4
Ensure map binaries are available
Furisto Jun 15, 2021
5f36c6e
Implement protocol for identifier mapping
Furisto Jun 15, 2021
f9b7229
Ensure root directory can be written by non root user
Furisto Jun 15, 2021
427e726
Identifier mapping names were not correct
Furisto Jun 17, 2021
373c457
Only one mapping needs to match
Furisto Jun 17, 2021
e207735
Prevent panic when resources are not specified
Furisto Jun 17, 2021
8e1621e
Fix wrong mapping
Furisto Jun 18, 2021
bc7fd5d
Clippy and fmt
Furisto Jun 18, 2021
58e33bb
Merge pull request #93 from duduainankai/add-freezer
Furisto Jun 18, 2021
726c06c
remove the cargo-when dependency.
utam0k Jun 19, 2021
4909c3b
Address review comments
Furisto Jun 19, 2021
1afde70
Merge pull request #98 from Furisto/rootless
utam0k Jun 19, 2021
a0da537
Add unit tests for tty module
Jun 20, 2021
b209181
Extend info cmd with version and os
Furisto Jun 19, 2021
4f6e8e9
Merge pull request #102 from constreference/tty
utam0k Jun 20, 2021
2f3d806
Merge pull request #101 from Furisto/info-ex
Furisto Jun 20, 2021
4e4dcb8
Use `assert!` instead of `assert_eq!` when comparing a boolean.
utam0k Jun 21, 2021
f9d5458
Merge pull request #104 from utam0k/fix-clippy
Furisto Jun 21, 2021
8abb9f5
Add support for systemd managed cgroups
nimrodshn Jun 6, 2021
37bcf46
Merge pull request #46 from nimrodshn/add_support_for_systemd_cgroups
Furisto Jun 22, 2021
886ec5d
update README.md
utam0k Jun 22, 2021
6304a6d
Merge pull request #105 from utam0k/update-README
Furisto Jun 22, 2021
68ca2ae
Fix README.md Fedora & Centos instructions
nimrodshn Jun 23, 2021
a105e11
Merge pull request #107 from nimrodshn/fix_readme
utam0k Jun 23, 2021
9d785aa
Add list command
Furisto Jun 23, 2021
7578bac
Merge pull request #108 from Furisto/list-cmd
utam0k Jun 24, 2021
c64522e
fix conflicts.
utam0k Jun 25, 2021
ec3f32e
Merge pull request #97 from utam0k/actions-cache
utam0k Jun 25, 2021
cd38390
split the subcommands into their own files.
utam0k Jun 26, 2021
ee4e3a6
Merge pull request #110 from utam0k/refactor-cli-commands
Furisto Jun 26, 2021
b43aae0
Seperate adding tasks and applying resource restrictions
Furisto Jun 25, 2021
8f872d7
Shorten names
Furisto Jun 26, 2021
80e9670
Update README.md
bkochendorfer Jun 26, 2021
fcfff8b
Address review comments
Furisto Jun 26, 2021
295f68e
Merge pull request #112 from bkochendorfer/patch-1
Furisto Jun 26, 2021
0f91dca
Merge pull request #111 from Furisto/cg-add
utam0k Jun 27, 2021
99342d1
Require only cgroups that are needed to fullfill the resource restric…
Furisto Jun 28, 2021
843c75a
Merge pull request #114 from Furisto/cg-only-required
utam0k Jun 29, 2021
6b1bfa4
force delete container if it is running or created
bobsongplus Jun 29, 2021
86011af
Merge pull request #115 from TinySong/main
utam0k Jun 29, 2021
d71833f
add comments in intergration_test.sh about test case that runc no paas
bobsongplus Jun 30, 2021
f583d4e
Merge pull request #116 from TinySong/main
utam0k Jun 30, 2021
61758bd
remove unnecessary clone() in create.rs
utam0k Jun 30, 2021
d68e49e
Merge pull request #117 from utam0k/refactor-create-remove-unnecessar…
Furisto Jun 30, 2021
3d509e0
Allow wider range of arguments for spec loading
Furisto Jul 1, 2021
8a13f82
Rename command
Furisto Jul 1, 2021
9e7b13c
Provide context in case of errors during dir creation
Furisto Jul 1, 2021
a46faff
Ensure file info is captured
Furisto Jul 2, 2021
a387a43
Modularize create code
Furisto Jul 2, 2021
6c1de20
add cgroup v2 pid controller
bobsongplus Jul 2, 2021
c22f73e
Merge pull request #119 from TinySong/main
utam0k Jul 3, 2021
123c2f6
make String to signal conversion more user friendly by using a Trait.
utam0k Jul 4, 2021
6e5eee0
add tests for the signal.
utam0k Jul 4, 2021
53c9b73
Split container builder into dedicated init and tenant builders
Furisto Jul 4, 2021
5146d0e
Add documentation
Furisto Jul 5, 2021
9be94d9
Remove tests
Furisto Jul 5, 2021
1643dd2
Renaming
Furisto Jul 5, 2021
d2ff085
Fix kill cmd test failures
Furisto Jul 5, 2021
0eaa906
Execute doc tests
Furisto Jul 5, 2021
0b8d378
Merge pull request #122 from utam0k/refactor-signal
utam0k Jul 6, 2021
e76360b
Review feedback and fmt
Furisto Jul 6, 2021
3dd98c5
Reduce binary size
Furisto Jul 6, 2021
59d9b83
Merge pull request #124 from Furisto/release
utam0k Jul 7, 2021
d16136f
Add cgroup v2 freezer controller
Jun 23, 2021
474ba71
Merge pull request #123 from duduainankai/add-freezer-v2
utam0k Jul 8, 2021
67972fe
Merge pull request #121 from Furisto/builder
utam0k Jul 9, 2021
7e02cb8
fix the warnings shown by cargo clippy
utam0k Jul 10, 2021
aadfe59
support cgroupv2 io controller
bobsongplus Jul 7, 2021
3ebbc27
Merge pull request #128 from TinySong/cgroupv2-io-controller
utam0k Jul 10, 2021
5633ff8
Merge pull request #127 from utam0k/cargo-clippy-2
nimrodshn Jul 10, 2021
599676e
Add code format check in CI
Jul 11, 2021
f8b08c0
format code to pass CI check
Jul 11, 2021
d87020c
Merge pull request #129 from duduainankai/add-format-check-ci
utam0k Jul 11, 2021
92a5a11
Fix spec path in delete
Jul 11, 2021
4d86b25
Merge pull request #130 from duduainankai/fix-path-in-delete
Furisto Jul 11, 2021
560247c
Document Capabilities and refactor its drop_privileges function
YJDoc2 Jul 11, 2021
699df64
Merge branch 'main' of github.com:containers/youki into comment-capab…
YJDoc2 Jul 11, 2021
d3e2f57
Fix same tmp dir in freezer v2 tests
lizhemingi Jul 12, 2021
2a7f907
Merge pull request #133 from duduainankai/fix-tmp-dir-in-test
utam0k Jul 12, 2021
0c40908
Merge pull request #131 from YJDoc2/comment-capabilities
utam0k Jul 12, 2021
21a7686
cgroupsv2 hugetlb
kmpzr Jul 12, 2021
4549309
remove regex usage from hugetlb v2
kmpzr Jul 12, 2021
c1686c6
use different temp dir for hugetlbv2 tests
kmpzr Jul 12, 2021
6be6769
Document Info module
YJDoc2 Jul 13, 2021
e5119a0
Update doc-draft.md
YJDoc2 Jul 13, 2021
886e9e8
Merge pull request #136 from YJDoc2/main
utam0k Jul 13, 2021
d66bc1b
Merge pull request #135 from 0xdco/cgroups-v2-hugetlb
utam0k Jul 14, 2021
ac7d1c0
systemd dependency as a build feature
tsturzl Jul 15, 2021
4cbdbdc
systemd dependency as a build feature
tsturzl Jul 15, 2021
6932e08
Merge branch 'main' of github.com:tsturzl/youki
tsturzl Jul 15, 2021
287de24
time to test
tsturzl Jun 18, 2021
1efdefc
hella tests
tsturzl Jun 18, 2021
314a7a9
time to test
tsturzl Jun 18, 2021
8cba204
hella tests
tsturzl Jun 18, 2021
db0b203
libsystemd is optional for builds and runtime errors if you try to use
tsturzl Jul 16, 2021
ac1254c
Merge branch 'ts-memory-v2' of github.com:tsturzl/youki into ts-memor…
tsturzl Jul 16, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 40 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,68 @@ on:
- main

jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: rustup component add rustfmt
- name: Check formatting
run: cargo fmt --all -- --check
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: rustup component add clippy
- run: sudo apt-get -y update
- run: sudo apt-get install -y pkg-config libsystemd-dev libdbus-glib-1-dev
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
- run: cargo install cargo-when
- name: Build
run: ./build.sh
- name: Run tests
run: cargo test
- name: Run doc tests
run: cargo test --doc
integration_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo install cargo-when
- run: sudo apt-get -y update
- run: sudo apt-get install -y pkg-config libsystemd-dev libdbus-glib-1-dev
- name: Build
run: ./build.sh
- uses: actions/setup-go@v2
Expand Down
Loading