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->page_size = page_size;
|
||||
|
||||
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",
|
||||
hp->page_size, hp->path, hp->mmap_flags));
|
||||
|
||||
opal_list_append (&mca_mpool_hugepage_component.huge_pages, &hp->super);
|
||||
|
||||
if(0 == access (hp->path, R_OK | W_OK)){
|
||||
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, adding to list",
|
||||
hp->page_size, hp->path, hp->mmap_flags);
|
||||
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);
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user