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

feat: introduce FTL-like storage engine #22

Merged
merged 4 commits into from
Jun 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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