-
Notifications
You must be signed in to change notification settings - Fork 707
fix: only add '-Ctarget-feature=+sse4.1,+sse4.2' flags for x86_64 #8305
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
Conversation
Thanks for this @pugachAG! Can we somehow make sure that the appropriate flags are still being passed to rocksdb? I.e. we are not getting a repeat of #7648. I believe @marcelo-gonzalez had originally noticed a performance degradation so we could repeat his performance test as well. |
@akhi3030 good point, I've aded my test plan to the PR description, please take a look. |
|
||
[target.'cfg(target_arch = "x86_64")'] | ||
rustflags = ["-Ctarget-feature=+sse4.1,+sse4.2", "-Cforce-unwind-tables=y"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the force-unwind-tables
need to be duplicated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I've explicitly verified the rustc
arguments emitted by cargo build -v
.
also found the confirming issue: rust-lang/cargo#5376
I think what I saw was archival nodes being very slow, and I |
just tried running |
@marcelo-gonzalez thanks for double-checking this on testnet! |
With #8284 we upgraded cargo version to
1.66
, so rust-lang/cargo#11114 is available. This PR is the same as #7130, but we can safely merge it now.See #7650 for more context.
In order to test it I've used the code from
librocksdb-sys/build.rs
as part ofneard/build.rs
:It was was tested on M1 macbook, so I've changed the feature to
neon
(which is enabled by default), my.cargo/config.toml
is as follows:neon
was successfully removed when using1.66
toolchain:while it was still present with
1.65
:This proves that rustflags are passed as env variable to
build.rs
in1.66
, which was not the case in1.65