From 5c2f9b8239e41595d5ceddb145fd93edc0ee0347 Mon Sep 17 00:00:00 2001 From: Balazs Gerofi Date: Thu, 26 Sep 2019 12:28:11 +0900 Subject: [PATCH] pager: prefetch all shared libraries Change-Id: Ic62e1284d540362df817098b3926ac223245e3b6 --- executer/kernel/mcctrl/syscall.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/executer/kernel/mcctrl/syscall.c b/executer/kernel/mcctrl/syscall.c index 4b00b99d..f6111ed5 100644 --- a/executer/kernel/mcctrl/syscall.c +++ b/executer/kernel/mcctrl/syscall.c @@ -1050,7 +1050,7 @@ static int pager_req_create(ihk_os_t os, int fd, uintptr_t result_pa) pager = newpager; newpager = NULL; - /* Intel MPI library and shared memory "prefetch" */ + /* Shared libraries prefetch */ { char *pathbuf, *fullpath; @@ -1058,15 +1058,7 @@ static int pager_req_create(ihk_os_t os, int fd, uintptr_t result_pa) if (pathbuf) { fullpath = d_path(&file->f_path, pathbuf, PATH_MAX); if (!IS_ERR(fullpath)) { - if (!strncmp("/dev/shm/Intel_MPI", fullpath, 18)) { - mf_flags = (MF_PREMAP | MF_ZEROFILL); - dprintk("%s: filename: %s, premap & zerofill\n", - __FUNCTION__, fullpath); - } - else if (strstr(fullpath, "libmpi") || - strstr(fullpath, "libiomp") || - strstr(fullpath, "libpthread") || - strstr(fullpath, "libc.so")) { + if (strstr(fullpath, ".so")) { mf_flags = MF_PREFETCH; dprintk("%s: filename: %s, prefetch\n", __FUNCTION__, fullpath);