STINNER Victor added the comment: > When oom-killer is trigger
IMHO this is your root problem. > When oom-killer is trigger I see a large number of involuntary context > switches ... The principle of *involuntarty* context switches is that the application is not responsible for them. > I tried the same test using NodeJS/C++ and I could see a lot less involuntary > context switches and major page faults which indicates this could be a Python > issue. Your rationale cannot be good. It is not a Python bug. OOM Killer is not a bug but a feature to limit abuse of resources on Linux. But yeah, in my experience, Linux becomes crazy when it reachs OOM Killer. You can try to tune your kernel, but it's much better to always avoid using all memory ;-) ---------- resolution: -> not a bug status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26562> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com