FYI: linux process failure from vm.max_map_count overrun

FYI: linux process failure from vm.max_map_count overrun

 

If a process (running with or without Inspector XE) fails with a insufficient memory error while the machine seems to have plenty left, a vm.max_map_count overrun could be the problem.

Here's how to find out what the per process limit is:

sysctl vm.max_map_count
> vm.max_map_count = 65530

And how to estimate how many mappings your process us using

cat /proc/<process id>/maps | wc -l

I've seen the problem occur for a process (Autodesk's maya) that uses the mmap system call directly for many smallish allocations.

 

1 Beitrag / 0 neu
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.