Check that THP is not set to always (madvise is ok) (#4001)
THP can also be set to madvise, in which case it shouldn't cause problems for Redis since redis (or the allocator) doesn't use madvise to activate it. (cherry picked from commit b2419c31c166bd2d73f7af3d089859795c0e3506)
This commit is contained in:
parent
3c8b394511
commit
8b0d797ecd
@ -71,7 +71,7 @@ int THPIsEnabled(void) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
return (strstr(buf,"[never]") == NULL) ? 1 : 0;
|
return (strstr(buf,"[always]") != NULL) ? 1 : 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user