Skip to content

Commit 9de1b71

Browse files
committed
fix(cubestore): build with large pagesize support for arm64
1 parent 258be19 commit 9de1b71

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@ jobs:
487487
- os: ubuntu-24.04-arm
488488
target: aarch64-unknown-linux-gnu
489489
platforms: linux/arm64
490-
build-args: WITH_AVX2=0
490+
build-args: |
491+
WITH_LG_PAGESIZE=1
492+
WITH_AVX2=0
491493
postfix: "-arm64v8"
492494
tag: "arm64v8"
493495
# Non AVX build

.github/workflows/rust-cubestore-master.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ jobs:
7676
- os: ubuntu-24.04-arm
7777
target: aarch64-unknown-linux-gnu
7878
platforms: linux/arm64
79-
build-args: WITH_AVX2=0
79+
build-args: |
80+
WITH_LG_PAGESIZE=1
81+
WITH_AVX2=0
8082
postfix: "-arm64v8"
8183
timeout-minutes: 60
8284
steps:

.github/workflows/rust-cubestore.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ jobs:
8080
- os: ubuntu-24.04-arm
8181
target: aarch64-unknown-linux-gnu
8282
platforms: linux/arm64
83-
build-args: WITH_AVX2=0
83+
build-args: |
84+
WITH_LG_PAGESIZE=1
85+
WITH_AVX2=0
8486
timeout-minutes: 60
8587
if: github.ref != 'refs/heads/master'
8688
steps:

rust/cubestore/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,17 @@ COPY cubestore/cubestore/Cargo.toml cubestore/Cargo.toml
1818
RUN mkdir -p cubestore/src/bin && \
1919
echo "fn main() {print!(\"Dummy main\");} // dummy file" > cubestore/src/bin/cubestored.rs
2020

21+
ARG WITH_LG_PAGESIZE=0
2122
ARG WITH_AVX2=1
2223
RUN [ "$WITH_AVX2" -eq "1" ] && export RUSTFLAGS="-C target-feature=+avx2"; \
24+
[ "$WITH_LG_PAGESIZE" -eq "1" ] && export JEMALLOC_SYS_WITH_LG_PAGE="16"; \
2325
cargo build --release -p cubestore
2426

2527
# Cube Store get version from his own package
2628
COPY cubestore/package.json package.json
2729
COPY cubestore/cubestore cubestore
2830
RUN [ "$WITH_AVX2" -eq "1" ] && export RUSTFLAGS="-C target-feature=+avx2"; \
31+
[ "$WITH_LG_PAGESIZE" -eq "1" ] && export JEMALLOC_SYS_WITH_LG_PAGE="16"; \
2932
cargo build --release -p cubestore
3033

3134
FROM debian:bookworm-slim

0 commit comments

Comments
 (0)