[][src]Struct dpdk_unix::android_linux::WarningsToSuppress

pub struct WarningsToSuppress {
    pub suppress_warnings_for_cpu_features: HashSet<String>,
    pub suppress_warnings_for_kernel_features: HashSet<String>,
    pub suppress_warnings_for_miscellany: HashSet<String>,
}

CPU and Kernel missing feature warnings to suppress.

Fields

suppress_warnings_for_cpu_features: HashSet<String>

Missing CPU features whose warnings should be supressed.

Current names (and typical warning messages) are:-

  • spectre_v2_google: "Kernel has spectre_v2=retpoline,google; this is probably not the best choice".
  • has_rep_movsb_stosb: "Your CPU does not support the REP MOVSB and REP STOSB instructions, which are optimal for some memory moves and copies".
  • has_prefetchw: "Your CPU does not support the PRETFCHW instruction, which is optimal for some memory moves and copies".
  • has_ss: "Your CPU does not support self-snoop of the cache (which nearly all should), which is important for efficient cache mamangement in this application".
  • has_working_xsave: "CPU architecture either lacks XSAVE support or the Linux kernel has disabled XSAVE support".
  • has_invpcid: "Your CPU does not support the INVPCID instruction, which is important for efficient mitigation of the Meltdown and Spectre security vulnerabilities".
  • has_smap: "Your CPU does not support the Supervisor-Mode Access Prevention (SMAP) instructions CLAC and STAC, which are important for securing modern Linux systems".
suppress_warnings_for_kernel_features: HashSet<String>

Missing Kernel features whose warnings should be supressed.

Current names (and typical warning messages) are:-

  • hashdist: Warnings about hashdist=0.
  • noaliencache: "Kernel has noaliencache enabled; this is likely to hurt performance".
  • numa_zonelist_order: "Kernel has noaliencache enabled; this is likely to hurt performance".
  • skew_tick: "Kernel should have skew_tick=1 for maximum performance at the cost of power consumption".
  • idle_poll: "Warnings about idle!=poll".
  • noxsaveopt: "Kernel has noxsaveopt enabled; this is likely to hurt performance".
suppress_warnings_for_miscellany: HashSet<String>

Miscellaneous warnings which should be supressed.

Current names (and typical warning messages) are:-

  • too_many_shared_hyper_threads: "There are more than 2 shared hyper threads".
  • too_few_shared_hyper_threads: "There is only 1 shared hyper thread (which will be shared with the master logical core and control threads)".
  • overlapping_shared_hyper_threads: "More than one (actually, {}) hyper threads of the group '{:?}' are present in the shared hyper threads".
  • too_many_numa_nodes_shared_hyper_threads: "More than one (actually, {:?}) NUMA nodes are present in the shared hyper threads".

Trait Implementations

impl Clone for WarningsToSuppress[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for WarningsToSuppress[src]

impl Debug for WarningsToSuppress[src]

impl Serialize for WarningsToSuppress[src]

impl<'de> Deserialize<'de> for WarningsToSuppress where
    WarningsToSuppress: Default
[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]