Skip to content

Commit

Permalink
feat: introduce FTL-like storage engine (#22)
Browse files Browse the repository at this point in the history
* feat: introduce FTL-like storage engine

Signed-off-by: MrCroxx <[email protected]>

* update ci

Signed-off-by: MrCroxx <[email protected]>

* sort cargo file

Signed-off-by: MrCroxx <[email protected]>

* fix memory leak

Signed-off-by: MrCroxx <[email protected]>

---------

Signed-off-by: MrCroxx <[email protected]>
  • Loading branch information
MrCroxx authored Jun 30, 2023
1 parent 506f3ef commit e9714c5
Show file tree
Hide file tree
Showing 49 changed files with 3,652 additions and 152 deletions.
Empty file removed .github/template/asan.yml
Empty file.
15 changes: 12 additions & 3 deletions .github/template/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,16 @@ jobs:
RUST_BACKTRACE: 1
RUSTFLAGS: '-Zsanitizer=address --cfg tokio_unstable'
EXTRA_CARGO_ARGS: '--verbose -Zbuild-std --target x86_64-unknown-linux-gnu'
run: |
run: |-
cargo build --all --target x86_64-unknown-linux-gnu &&
mkdir -p $GITHUB_WORKSPACE/foyer-data/foyer-bench &&
./target/x86_64-unknown-linux-gnu/debug/foyer-bench --dir $GITHUB_WORKSPACE/foyer-data/foyer-bench --capacity 256
- name: Run foyer-storage-bench With Address Sanitizer
env:
RUST_BACKTRACE: 1
RUSTFLAGS: '-Zsanitizer=address --cfg tokio_unstable'
EXTRA_CARGO_ARGS: '--verbose -Zbuild-std --target x86_64-unknown-linux-gnu'
run: |-
cargo build --all --target x86_64-unknown-linux-gnu &&
mkdir -p $GITHUB_WORKSPACE/foyer-data &&
./target/x86_64-unknown-linux-gnu/debug/foyer-bench --dir $GITHUB_WORKSPACE/foyer-data --capacity 256
mkdir -p $GITHUB_WORKSPACE/foyer-data/foyer-storage-bench &&
./target/x86_64-unknown-linux-gnu/debug/foyer-storage-bench --dir $GITHUB_WORKSPACE/foyer-data/foyer-storage-bench --capacity 256 --region-size 16 --buffer-pool-size 256 --lookup-range 1000
13 changes: 11 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,17 @@ jobs:
EXTRA_CARGO_ARGS: '--verbose -Zbuild-std --target x86_64-unknown-linux-gnu'
run: |-
cargo build --all --target x86_64-unknown-linux-gnu &&
mkdir -p $GITHUB_WORKSPACE/foyer-data &&
./target/x86_64-unknown-linux-gnu/debug/foyer-bench --dir $GITHUB_WORKSPACE/foyer-data --capacity 256
mkdir -p $GITHUB_WORKSPACE/foyer-data/foyer-bench &&
./target/x86_64-unknown-linux-gnu/debug/foyer-bench --dir $GITHUB_WORKSPACE/foyer-data/foyer-bench --capacity 256
- name: Run foyer-storage-bench With Address Sanitizer
env:
RUST_BACKTRACE: 1
RUSTFLAGS: '-Zsanitizer=address --cfg tokio_unstable'
EXTRA_CARGO_ARGS: '--verbose -Zbuild-std --target x86_64-unknown-linux-gnu'
run: |-
cargo build --all --target x86_64-unknown-linux-gnu &&
mkdir -p $GITHUB_WORKSPACE/foyer-data/foyer-storage-bench &&
./target/x86_64-unknown-linux-gnu/debug/foyer-storage-bench --dir $GITHUB_WORKSPACE/foyer-data/foyer-storage-bench --capacity 256 --region-size 16 --buffer-pool-size 256 --lookup-range 1000
# ================= THIS FILE IS AUTOMATICALLY GENERATED =================
#
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,17 @@ jobs:
EXTRA_CARGO_ARGS: '--verbose -Zbuild-std --target x86_64-unknown-linux-gnu'
run: |-
cargo build --all --target x86_64-unknown-linux-gnu &&
mkdir -p $GITHUB_WORKSPACE/foyer-data &&
./target/x86_64-unknown-linux-gnu/debug/foyer-bench --dir $GITHUB_WORKSPACE/foyer-data --capacity 256
mkdir -p $GITHUB_WORKSPACE/foyer-data/foyer-bench &&
./target/x86_64-unknown-linux-gnu/debug/foyer-bench --dir $GITHUB_WORKSPACE/foyer-data/foyer-bench --capacity 256
- name: Run foyer-storage-bench With Address Sanitizer
env:
RUST_BACKTRACE: 1
RUSTFLAGS: '-Zsanitizer=address --cfg tokio_unstable'
EXTRA_CARGO_ARGS: '--verbose -Zbuild-std --target x86_64-unknown-linux-gnu'
run: |-
cargo build --all --target x86_64-unknown-linux-gnu &&
mkdir -p $GITHUB_WORKSPACE/foyer-data/foyer-storage-bench &&
./target/x86_64-unknown-linux-gnu/debug/foyer-storage-bench --dir $GITHUB_WORKSPACE/foyer-data/foyer-storage-bench --capacity 256 --region-size 16 --buffer-pool-size 256 --lookup-range 1000
concurrency:
group: environment-${{ github.ref }}
cancel-in-progress: true
Expand Down
204 changes: 199 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ members = [
"foyer-common",
"foyer-intrusive",
"foyer-policy",
"foyer-storage",
"foyer-storage-bench",
"foyer-utils",
]

Expand Down
Loading

0 comments on commit e9714c5

Please sign in to comment.