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

Function clear_pages

dpdk/usertools/dpdk-hugepages.py:114–123  ·  view source on GitHub ↗

Clear all existing huge page mappings

()

Source from the content-addressed store, hash-verified

112
113
114def clear_pages():
115 '''Clear all existing huge page mappings'''
116 if is_numa():
117 dirs = glob.glob(
118 '/sys/devices/system/node/node*/hugepages/hugepages-*')
119 else:
120 dirs = glob.glob('/sys/kernel/mm/hugepages/hugepages-*')
121
122 for path in dirs:
123 set_hugepages(path, 0)
124
125
126def default_pagesize():

Callers 1

mainFunction · 0.85

Calls 2

is_numaFunction · 0.85
set_hugepagesFunction · 0.85

Tested by

no test coverage detected