[−][src]Enum dpdk_unix::memory_information::HugePageSize
Commonly supported huge page sizes for modern popular CPU architectures (x86, ARM, PowerPC).
See also https://en.wikipedia.org/wiki/Page_(computer_memory)#Huge_pages.
repr(u64) values are in KiloBytes.
Variants
_1MB1MB.
_2MB2MB.
_4MB4MB.
_16MB16MB.
_256MB256MB.
_512MB512MB.
aarch64 alternative.
_1GB1GB.
_2GB2GB.
_16GB16GB.
Methods
impl HugePageSize[src]
impl HugePageSizepub const PotentiallySupportedHugePageSizesLargestFirst: [HugePageSize; 9][src]
Potentially supported huge page sizes.
pub fn size_in_mega_bytes(self) -> u64 | [src] |
Size in mega bytes.
pub fn size_in_kilo_bytes(self) -> u64 | [src] |
Size in kilo bytes.
pub fn size_in_bytes(self) -> u64 | [src] |
Size in bytes.
pub fn calculate_number_of_huge_pages( | [src] |
Calculate number of huge pages.
pub fn from_proc_mem_info_value(value: u64) -> Option<Self> | [src] |
Converts a value from Linux's /proc/mem pseudo-file into a HugePageSize.
pub fn to_str(&self) -> &'static str | [src] |
String description including unit.
pub fn to_bytes(&self) -> &'static [u8] | [src] |
String description including unit.
pub fn largest_supported_huge_page_size(sys_path: &SysPath) -> Self | [src] |
Supported huge page sizes, sorted smallest to largest.
pub fn supported_huge_page_sizes(sys_path: &SysPath) -> BTreeSet<Self> | [src] |
Supported huge page sizes, sorted smallest to largest.
pub fn unreserve_global_huge_pages(self, sys_path: &SysPath) -> Result<()> | [src] |
Try to unreserve (clear reservations of) global huge pages.
Will only work as root.
pub fn reserve_global_huge_pages( | [src] |
Try to reserve global huge pages.
Will only work as root.
pub fn number_of_global_huge_pages(self, sys_path: &SysPath) -> Result<u64> | [src] |
Read number of global huge pages of self size.
pub fn number_of_free_global_huge_pages(self, sys_path: &SysPath) -> Result<u64> | [src] |
Read number of free global huge pages of self size.
pub fn number_of_surplus_global_huge_pages( | [src] |
Read number of surplus global huge pages of self size.
pub fn number_of_reserved_global_huge_pages( | [src] |
Read number of reserved global huge pages of self size.
pub fn number_of_memory_policy_global_huge_pages( | [src] |
Read number of memory policy global huge pages of self size.
pub fn number_of_overcommit_global_huge_pages( | [src] |
Read number of overcommit global huge pages of self size.
pub fn unreserve_numa_huge_pages( | [src] |
Try to unreserve (clear reservations of) NUMA huge pages.
Will only work as root.
pub fn reserve_numa_huge_pages( | [src] |
Try to reserve NUMA huge pages.
Will only work as root.
pub fn number_of_numa_huge_pages( | [src] |
Read number of NUMA huge pages of self size.
This will fail if this is not a NUMA-based machine or the node is not present.
pub fn number_of_free_numa_huge_pages( | [src] |
Read number of free NUMA node huge pages of self size.
This will fail if this is not a NUMA-based machine or the node is not present.
pub fn number_of_surplus_numa_huge_pages( | [src] |
Read number of surplus NUMA huge pages of self size.
This will fail if this is not a NUMA-based machine or the node is not present.
Trait Implementations
impl Clone for HugePageSize[src]
impl Clone for HugePageSizefn clone(&self) -> HugePageSize | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source. Read more
impl Ord for HugePageSize[src]
impl Ord for HugePageSizefn cmp(&self, other: &HugePageSize) -> Ordering | [src] |
fn max(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the minimum of two values. Read more
impl Eq for HugePageSize[src]
impl Eq for HugePageSizeimpl Copy for HugePageSize[src]
impl Copy for HugePageSizeimpl PartialOrd<HugePageSize> for HugePageSize[src]
impl PartialOrd<HugePageSize> for HugePageSizefn partial_cmp(&self, other: &HugePageSize) -> Option<Ordering> | [src] |
| 1.0.0 [src] |
This method tests less than (for self and other) and is used by the < operator. Read more
| 1.0.0 [src] |
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
| 1.0.0 [src] |
This method tests greater than (for self and other) and is used by the > operator. Read more
| 1.0.0 [src] |
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl PartialEq<HugePageSize> for HugePageSize[src]
impl PartialEq<HugePageSize> for HugePageSizefn eq(&self, other: &HugePageSize) -> bool | [src] |
| 1.0.0 [src] |
This method tests for !=.
impl Debug for HugePageSize[src]
impl Debug for HugePageSizeimpl Hash for HugePageSize[src]
impl Hash for HugePageSizeAuto Trait Implementations
impl Send for HugePageSize
impl Send for HugePageSizeimpl Sync for HugePageSize
impl Sync for HugePageSizeBlanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId | [src] |