Commit f487c965 authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

zdtm/thp_disable: increase memory size to 2M

Somehow in travis tests the mmap of 8K gets "rounded" down and the actual
VMA starts 4K below the returned address. This causes /proc/pid/smaps
parsing to fail.

Increasing the allocation size to 2M seems to resolve the problem and until
the root cause is identified it looks like a viable workaround.
Signed-off-by: 's avatarMike Rapoport <rppt@linux.ibm.com>
parent e9822fc6
......@@ -10,7 +10,7 @@
const char *test_doc = "Test prctl(THP_DISABLE) behaviour";
const char *test_author = "Mike Rapoport <rppt@linux.ibm.com>";
#define MEM_SIZE (8192)
#define MEM_SIZE (2 << 20)
int main(int argc, char **argv)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment