Struct dpdk_unix::HyperThread[][src]

pub struct HyperThread(_);

Represents a logical hyper thread, which in Operating System terms is usually a logical CPU (core).

These usually map 1:1 with LogicalCores

Methods

impl HyperThread
[src]

Sets workqueue hyper thread affinity.

We ignore failures as the /proc for this is brittle.

Should not be needed if nohz_full was specified on the Linux command line.

Last hyper thread.

The complement of hyper_threads.

Remove as offline hyper_threads.

CPUs (hyper threaded logical cores) that are present and that could become online.

Consider using libnuma instead of this call.

See https://www.kernel.org/doc/Documentation/cputopology.txt.

Hyper threaded logical cores that are online at some point.

Consider using libnuma instead of this call.

See https://www.kernel.org/doc/Documentation/cputopology.txt.

Hyper threaded logical cores that are offline.

The maximum CPU index in this list can exceed the kernel's maximum in self.kernel_maximum_index.

Close to useless.

See https://www.kernel.org/doc/Documentation/cputopology.txt.

Hyper threaded logical cores that could possibly be online at some point.

Close to very useless.

See https://www.kernel.org/doc/Documentation/cputopology.txt.

Disable (offline) this hyper thread.

Requires root.

Hyper thread (CPU) zero (0) is special on x86 / x86-64 and can not ordinarily be offlined.

See https://www.kernel.org/doc/Documentation/core-api/cpu_hotplug.rst.

Enable (online) this hyper thread.

Requires root.

See https://www.kernel.org/doc/Documentation/core-api/cpu_hotplug.rst.

Hyper threaded logical cores that are siblings of this one.

Will include self.

See https://www.kernel.org/doc/Documentation/cputopology.txt.

Hyper threaded logical cores that are hyper-thread-siblings of this one.

Will include self.

Usually wrong on virtual machines (eg Parallels Desktop).

See https://www.kernel.org/doc/Documentation/cputopology.txt.

Hyper threaded logical cores grouped as hyper thread groups (eg HT 0 and 1, 2 and 3, etc).

Tries to find this hyper thread's NUMA node, if this is a NUMA machine.

Hyper threaded logical cores that are thread-siblings of this one according to the level 1 cache.

Will include self.

Usually reliable.

Hyper threaded logical cores that are thread-siblings of this one according to the level 1 cache.

Will exclude self.

Usually reliable.

Underlying hardware, not Linux, core identifier.

See https://www.kernel.org/doc/Documentation/cputopology.txt.

Underlying hardware, not Linux, socket identifier.

See https://www.kernel.org/doc/Documentation/cputopology.txt.

Simply reports the maximum identifier that could be used by the Linux kernel upto the CONFIG_ number of CPUs.

Add one to this to get the exclusive maximum.

Consider using libnuma instead of this call.

Current hyper thread index that this thread is running on.

Unless this thread has been scheduled to only run on this hyper thread, then the result is close to useless.

Topology is not available on FreeBSD; value will always be zero.

Trait Implementations

impl Default for HyperThread
[src]

Returns the "default value" for a type. Read more

impl Debug for HyperThread
[src]

Formats the value using the given formatter. Read more

impl Copy for HyperThread
[src]

impl Clone for HyperThread
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Ord for HyperThread
[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 PartialOrd for HyperThread
[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 Eq for HyperThread
[src]

impl PartialEq for HyperThread
[src]

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

This method tests for !=.

impl Hash for HyperThread
[src]

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

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

impl From<u16> for HyperThread
[src]

Performs the conversion.

impl Into<u16> for HyperThread
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for HyperThread

impl Sync for HyperThread