Enum dpdk_unix::HugePageSize[][src]

#[repr(u64)]
pub enum HugePageSize { _1MB, _2MB, _4MB, _16MB, _256MB, _512MB, _1GB, _2GB, _16GB, }

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

1MB.

2MB.

4MB.

16MB.

256MB.

512MB.

aarch64 alternative.

1GB.

2GB.

16GB.

Methods

impl HugePageSize
[src]

PotentiallySupportedHugePageSizesLargestFirst: [HugePageSize; 9] = [HugePageSize::_16GB, HugePageSize::_2GB, HugePageSize::_1GB,
 HugePageSize::_512MB, HugePageSize::_256MB, HugePageSize::_16MB,
 HugePageSize::_4MB, HugePageSize::_2MB, HugePageSize::_1MB]

Potentially supported huge page sizes.

Size in mega bytes.

Size in kilo bytes.

Size in bytes.

Calculate number of huge pages.

Converts a value from Linux's /proc/mem pseudo-file into a HugePageSize.

String description including unit.

Supported huge page sizes, sorted smallest to largest.

Supported huge page sizes, sorted smallest to largest.

Try to unreserve (clear reservations of) global huge pages.

Will only work as root.

Try to reserve global huge pages.

Will only work as root.

Read number of global huge pages of self size.

Read number of free global huge pages of self size.

Read number of surplus global huge pages of self size.

Read number of reserved global huge pages of self size.

Read number of memory policy global huge pages of self size.

Read number of overcommit global huge pages of self size.

Try to unreserve (clear reservations of) NUMA huge pages.

Will only work as root.

Try to reserve NUMA huge pages.

Will only work as root.

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.

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.

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 Debug for HugePageSize
[src]

Formats the value using the given formatter. Read more

impl Copy for HugePageSize
[src]

impl Clone for HugePageSize
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for HugePageSize
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for HugePageSize
[src]

impl PartialOrd for HugePageSize
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for HugePageSize
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for HugePageSize
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations