MemoryΒΆ
- class jtop.core.memory.MemoryΒΆ
Bases:
GenericInterface
This class get the output from your memory, this class is readable like a dictionary, please read the documentation on
memory
but is also usable to enable, disable swap on your devicewith jtop() as jetson: if jetson.ok(): jetson.memory.swap_set(10, on_boot=False)
or if you want to deactivate a swap you can use this command
with jtop() as jetson: if jetson.ok(): jetson.memory.swap_deactivate()
Below all methods available using the
memory
attribute- clear_cache()ΒΆ
Clear the memory cache
- swap_deactivate(path='')ΒΆ
Deactivate a swap from a path or from default location /
- Parameters:
path (str, optional) β Path swap
- swap_is_enable(path)ΒΆ
Check if a swap is on list
- swap_set(value, path='', on_boot=False)ΒΆ
Create a new swap on a default path.
swap_path()