-
Notifications
You must be signed in to change notification settings - Fork 516
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
Update Linux kernel version in kernel compile benchmark #2571
base: master
Are you sure you want to change the base?
Update Linux kernel version in kernel compile benchmark #2571
Conversation
On static Ubuntu 18.04 vms with gcc version 7.5.0, the kernel_compile_benchmark fails with: STDERR: arch/x86/Makefile:133: stack-protector enabled but compiler support broken Makefile:668: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler The mainline linux commit that seems to resolve the issue is [82031ea29e454b574bc6f49a33683a693ca5d907](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=82031ea29e454b574bc6f49a33683a693ca5d907). The attached patch updates the kernel version to the closest one that builds without issues. Probably needs some more testing with other setups.
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
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.
Thanks for sending this! Have you tested this change with any PKB-managed VM instances?
LINUX_VERSION = '4.4.35' | ||
URL = 'https://www.kernel.org/pub/linux/kernel/v4.x/linux-%s.tar.gz' %(LINUX_VERSION) | ||
TARBALL = 'linux-%s.tar.gz' %(LINUX_VERSION) | ||
UNTAR_DIR = 'linux-%s' %(LINUX_VERSION) |
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.
Prefer use of f-strings: https://www.python.org/dev/peps/pep-0498/
LINUX_VERSION = '4.4.35'
URL = f'https://www.kernel.org/pub/linux/kernel/v4.x/linux-{LINUX_VERSION}.tar.gz'
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.
No, I have only tested this on static VMs as part of the evaluation of a single local node.
I have pushed the conversion to f-strings on top of my branch.
Hello,
I am testing pkb benchmarks on static vms.
On Ubuntu 18.04 setups with gcc version 7.5.0, the kernel_compile_benchmark fails with:
STDERR: arch/x86/Makefile:133: stack-protector enabled but compiler support broken
Makefile:668: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
The kernel version used for this benchmark is 4.4.25. Looking through versions and diffs, the 4.4.35 version is the closest that builds without issues.
The commits that seem to resolve the issue are:
mainline 82031ea29e454b574bc6f49a33683a693ca5d907
stable 3a868dde1824d4eca277df490d2be99355320095
Probably more testing is needed with other setups.
Thanks,
Emmanouil Maroudas