Skip to content

Commit

Permalink
chore(releasing): Use large pages for better OS compatibility (#18481)
Browse files Browse the repository at this point in the history
* chore(releasing): Try large pages for better OS compatibility

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>

* Turns out the `env` block in Cargo.toml is unstable

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>

* Move env config to .cargo/config.toml

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>

---------

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
  • Loading branch information
jszwedko authored Sep 14, 2023
1 parent 1ac19dd commit e23941c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
[alias]
vdev = "run --quiet --package vdev --"

[env]
# Build with large pages so that Vector runs on systems with 64k pages or less (e.g. 4k) to support
# CentOS 7, 8, and a few other Linux distributions.
JEMALLOC_SYS_WITH_LG_PAGE = "16"

[target.'cfg(all())']
rustflags = [
"-Dclippy::print_stdout",
Expand Down

0 comments on commit e23941c

Please sign in to comment.