Skip to content

Commit

Permalink
Incease default hugepage size for v2 data engine to 2GiB
Browse files Browse the repository at this point in the history
Longhorn 7606

Signed-off-by: Derek Su <derek.su@suse.com>
  • Loading branch information
derekbit committed Jan 10, 2024
1 parent 1d75596 commit 3cc3af5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deploy/prerequisite/longhorn-spdk-setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
- name: SPDK_OPTION
value: ""
- name: HUGEMEM
value: "1024"
value: "2048"
- name: PCI_ALLOWED
value: "none"
- name: DRIVER_OVERRIDE
Expand Down
4 changes: 2 additions & 2 deletions scripts/environment_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -476,14 +476,14 @@ Usage: $0 [OPTIONS]
Options:
-s, --enable-spdk Enable checking SPDK prerequisites
-p, --expected-nr-hugepages Expected number of 2 MiB hugepages for SPDK. Default: 512
-p, --expected-nr-hugepages Expected number of 2 MiB hugepages for SPDK. Default: 1024
-h, --help Show this help message and exit
EOF
exit 0
}

enable_spdk=false
expected_nr_hugepages=512
expected_nr_hugepages=1024
while [[ $# -gt 0 ]]; do
opt="$1"
case $opt in
Expand Down

0 comments on commit 3cc3af5

Please sign in to comment.