Update mpool_hugepage_component.c
Signed-off-by: Hunter Easterday <heasterday@lanl.gov> (cherry picked from commitad0d2c451e
) (cherry picked from commit509380d99f
)
Этот коммит содержится в:
родитель
66c8694039
Коммит
2fc5ab7c8f
@ -264,12 +264,17 @@ static void mca_mpool_hugepage_find_hugepages (void) {
|
|||||||
|
|
||||||
hp->path = strdup (mntent->mnt_dir);
|
hp->path = strdup (mntent->mnt_dir);
|
||||||
hp->page_size = page_size;
|
hp->page_size = page_size;
|
||||||
|
|
||||||
OPAL_OUTPUT_VERBOSE((MCA_BASE_VERBOSE_INFO, opal_mpool_base_framework.framework_output,
|
if(0 == access (hp->path, R_OK | W_OK)){
|
||||||
"found huge page with size = %lu, path = %s, mmap flags = 0x%x",
|
opal_output_verbose (MCA_BASE_VERBOSE_INFO, opal_mpool_base_framework.framework_output,
|
||||||
hp->page_size, hp->path, hp->mmap_flags));
|
"found huge page with size = %lu, path = %s, mmap flags = 0x%x, adding to list",
|
||||||
|
hp->page_size, hp->path, hp->mmap_flags);
|
||||||
opal_list_append (&mca_mpool_hugepage_component.huge_pages, &hp->super);
|
opal_list_append (&mca_mpool_hugepage_component.huge_pages, &hp->super);
|
||||||
|
} else {
|
||||||
|
opal_output_verbose (MCA_BASE_VERBOSE_INFO, opal_mpool_base_framework.framework_output,
|
||||||
|
"found huge page with size = %lu, path = %s, mmap flags = 0x%x, with invalid "
|
||||||
|
"permissions, skipping", hp->page_size, hp->path, hp->mmap_flags);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
opal_list_sort (&mca_mpool_hugepage_component.huge_pages, page_compare);
|
opal_list_sort (&mca_mpool_hugepage_component.huge_pages, page_compare);
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user