Hi all, Systemd hardcode page size as 4096(in macro.h), this is not always correct: """ Some architectures support multiple machine types with diffenent page sizes, and some machine types even support multiple page sizes themselves. """
This patch tries to detect page size runtime by sysconf(_SC_PAGESIZE), and uses 4096 as a failsafe value. Note we need memset vec to zero before call mincore(src/readahead-collect.c, 129) -- if the pagesize is not correct, we may randomly record wider range or more ranges to readahead. -- Regards, - cee1
0001-Detect-page-size-runtime.patch
Description: Binary data
_______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel