You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From time to time while I'm running code like for proc in psutil.process_iter(): ... I got: Cannot allocate memory (originated from sysctl)
It happens on many FreeBSD 12.2 and 13.0 installations with 128-196 GB of RAM. Code is running as root with ulimit:
cpu time (seconds, -t) unlimited
file size (512-blocks, -f) unlimited
data seg size (kbytes, -d) 33554432
stack size (kbytes, -s) 524288
core file size (512-blocks, -c) unlimited
max memory size (kbytes, -m) unlimited
locked memory (kbytes, -l) unlimited
max user processes (-u) 34318
open files (-n) 942921
virtual mem size (kbytes, -v) unlimited
swap limit (kbytes, -w) unlimited
socket buffer size (bytes, -b) unlimited
pseudo-terminals (-p) unlimited
kqueues (-k) unlimited
umtx shared locks (-o) unlimited
Traceback:
for proc in psutil.process_iter():
File "/usr/local/lib/python3.8/site-packages/psutil/__init__.py", line 1425, in process_iter
a = set(pids())
File "/usr/local/lib/python3.8/site-packages/psutil/__init__.py", line 1365, in pids
ret = sorted(_psplatform.pids())
File "/usr/local/lib/python3.8/site-packages/psutil/_psbsd.py", line 513, in pids
ret = cext.pids()
OSError: [Errno 12] Cannot allocate memory (originated from sysctl)
The text was updated successfully, but these errors were encountered:
Summary
Description
Hello,
From time to time while I'm running code like
for proc in psutil.process_iter(): ...
I got: Cannot allocate memory (originated from sysctl)It happens on many FreeBSD 12.2 and 13.0 installations with 128-196 GB of RAM. Code is running as root with ulimit:
The text was updated successfully, but these errors were encountered: