We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77d4028 + eeac1c0 commit adf9107Copy full SHA for adf9107
codeflash/verification/pytest_plugin.py
@@ -39,11 +39,10 @@ class UnexpectedError(Exception):
39
import platform
40
if platform.system() == 'Linux' or platform.system() == 'Darwin':
41
import resource
42
- import psutil
+ import os
43
44
# Get total system memory
45
- total_memory = psutil.virtual_memory().total
46
- # Set memory limit to 80% of total system memory
+ total_memory = os.sysconf('SC_PAGE_SIZE') * os.sysconf('SC_PHYS_PAGES') # Set memory limit to 80% of total system memory
47
memory_limit = int(total_memory * 0.8)
48
49
# Set both soft and hard limits
0 commit comments