public final class PageUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_HUGE_PAGE_SIZE |
| Constructor and Description |
|---|
PageUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getPageSize(@NotNull String absolutePath)
Returns page size obtained from auto-scanned hugetlbfs mount points
or OS default page size for a given absolute file path
|
static boolean |
isHugePage(@NotNull String absolutePath)
Whether given file is located on hugetlbfs
|
public static final int DEFAULT_HUGE_PAGE_SIZE
public static int getPageSize(@NotNull
@NotNull String absolutePath)
absolutePath - file pathpublic static boolean isHugePage(@NotNull
@NotNull String absolutePath)
absolutePath - file pathCopyright © 2024. All rights reserved.