Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kapamaroo
Copy link

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

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.
@google-cla
Copy link

google-cla bot commented Nov 1, 2020

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 @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

Copy link
Collaborator

@bvliu bvliu left a 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)
Copy link
Collaborator

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' 

Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants