MCPcopy Create free account
hub / github.com/F-Stack/f-stack / _setup_hugepages

Method _setup_hugepages

dpdk/dts/framework/testbed_model/node.py:204–213  ·  view source on GitHub ↗

Setup hugepages on the Node. Different architectures can supply different amounts of memory for hugepages and numa-based hugepage allocation may need to be considered.

(self)

Source from the content-addressed store, hash-verified

202 self.lcores = self.main_session.get_remote_cpus(self.config.use_first_core)
203
204 def _setup_hugepages(self):
205 """
206 Setup hugepages on the Node. Different architectures can supply different
207 amounts of memory for hugepages and numa-based hugepage allocation may need
208 to be considered.
209 """
210 if self.config.hugepages:
211 self.main_session.setup_hugepages(
212 self.config.hugepages.amount, self.config.hugepages.force_first_numa
213 )
214
215 def configure_port_state(self, port: Port, enable: bool = True) -> None:
216 """

Callers 1

set_up_executionMethod · 0.95

Calls 1

setup_hugepagesMethod · 0.45

Tested by

no test coverage detected