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
Linux 4.8+ compatibility fix for vm stats #6528
Linux 4.8+ compatibility fix for vm stats #6528
Conversation
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.
This explains quite a bit.
You'll want to rebase this against master to get a clean test run and we'll cherry-pick it back to the 0.7 release. @dinatale2 is working on extending the buildbot to properly test PRs against the 0.7-release branch but it's still a WIP.
We should add a small test case to the ZFS Test Suite to make sure we catch this kind of thing in the future. Something along the lines of what you originally posted in the issue would be enough.
config/kernel-vm_node_stat.m4
Outdated
| (void) global_node_page_state(0); | ||
| ],[ | ||
| AC_MSG_RESULT(yes) | ||
| AC_DEFINE(ZFS_GLOBAL_PAGE_STATE, global_node_page_state, [using global_node_page_state()]) |
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.
nit: let's wrap this at 80 characters
|
Unfortunately this solves very little in 7.x context, I believe there are 2-3 more issues that still need to be root caused there for it to work properly.
We intend to port our common tests into the ZFS Test Suite, for example the drop cache test that caught the issue in 7.x. Unfortunately, even if we had it ready now it would fail on all branches. |
208a114
to
a1f5c3d
Compare
a1f5c3d
to
3d3debb
Compare
3d3debb
to
08de8c1
Compare
config/kernel-vm_node_stat.m4
Outdated
| (void) global_node_page_state(0); | ||
| ],[ | ||
| AC_MSG_RESULT(yes) | ||
| AC_DEFINE(ZFS_GLOBAL_PAGE_STATE, global_node_page_state, |
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.
Put the marcro definition in a .h file, otherwise it might be hard to find it.
93eff83
to
8c18625
Compare
vm_node_stat must be used instead of vm_zone_stat. Unfortunately the old code still compiles potentially leading to silent failure of arc_evictable_memory() AKAMAI: CR 3816601: Regression in zfs dropcache test Signed-off-by: Debabrata Banerjee <dbanerje@akamai.com>
8c18625
to
effe86c
Compare
vm_node_stat must be used instead of vm_zone_stat. Unfortunately the old code still compiles potentially leading to silent failure of arc_evictable_memory() AKAMAI: CR 3816601: Regression in zfs dropcache test Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Chunwei Chen <tuxoko@gmail.com> Signed-off-by: Debabrata Banerjee <dbanerje@akamai.com> Closes #6528
vm_node_stat must be used instead of vm_zone_stat. Unfortunately the old code still compiles potentially leading to silent failure of arc_evictable_memory() AKAMAI: CR 3816601: Regression in zfs dropcache test Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Chunwei Chen <tuxoko@gmail.com> Signed-off-by: Debabrata Banerjee <dbanerje@akamai.com> Closes openzfs#6528
vm_node_stat must be used instead of vm_zone_stat. Unfortunately the
old code still compiles potentially leading to silent failure of
arc_evictable_memory()
AKAMAI: CR 3816601: Regression in zfs dropcache test
Signed-off-by: Debabrata Banerjee dbanerje@akamai.com
Description
New autoconf script to detect this
Motivation and Context
Upstream changed the variable used without making old code fail compilation
See 11fb998986a72aa7e997d96d63d52582a01228c5
How Has This Been Tested?
Tested with debug code that we're building against stat that works. Waiting for the buildbot to verify builds against everything :-)
Types of changes
Checklist:
Signed-off-by.