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

virtme-configkernel: disable lockdep by default #62

Merged
merged 1 commit into from
Jan 31, 2024
Merged

Conversation

kuba-moo
Copy link
Contributor

Sort of an "RFC" posting. We (netdev) use vng to run networking tests in two flavors - normal and debug. I was surprised to see lockdep splats in the "normal" one.

Commit cd3c35c ("virtme-configkernel: enable lockdep by default") enabled lockdep, and no doubt lockdep is a useful tool. But it's a bit surprising that lockdep is enabled on a normal vng build. I would have expected "vanilla vng build" to be pretty close to kvm_guest.config. lockdep slows down the kernel, eats memory and is not exactly free of false positives.

@arighi
Copy link
Owner

arighi commented Jan 31, 2024

Glad to know that you guys are using vng in netdev!

So, the reason why lockdep is enabled by default is mostly because of my typical use case: debugging (that includes catching potential locking issues in advance). And that was added before having the --config option.

Considering that now we can easily do something like this to re-enable lockdep:

$ echo CONFIG_PROVE_LOCKING=y > /tmp/vng.config
$ vng -vb --config /tmp/vng.config

The other thing to consider is performance. People are starting to use vng not just to test kernels, but also to test how a certain software, application, etc. works with a specific kernel, so providing a default config that pays attention to performance can be beneficial.

All that said, I have to admit that I'm not against this change. I left a comment in the review, if you can fix that I'd be happy to merge this. Thanks.

@kuba-moo
Copy link
Contributor Author

GitHub says "No reviews" to me, where do I look?

@arighi
Copy link
Owner

arighi commented Jan 31, 2024

@kuba-moo oh well, I'll just comment here, it looks like your commit is trying to change also virtme-ng-init, I'm expecting to see a change only in configkernel.py, maybe you need to refresh your local git repo and rebase your change.

Commit cd3c35c ("virtme-configkernel: enable lockdep by default")
enabled lockdep, and no doubt lockdep is a useful tool. But it's a bit
surprising that lockdep is enabled on a normal vng build. I would have
expected "vanilla vng build" to be pretty close to kvm_guest.config.
lockdep slows down the kernel, eats memory and is not exactly free of
false positives.

Signed-off-by: Jakub Kicinski <[email protected]>
@kuba-moo
Copy link
Contributor Author

Ah, right, sorry. Fixed.

@arighi arighi merged commit 70b70aa into arighi:main Jan 31, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants