> I suspect that quite a few failing madvise calls are cheaper than the > those three system calls in __malloc_thp_mode. In addition, > __malloc_thp_mode may fail due to future kernel changes, disabling the > tunable by accident. Please find the new patch which removes the __malloc_thp_mode verification below. Looking forward to your comments. Cupertino