Process is killed

Requests regarding how to set up experiments in ARGoS.
Ryan
Posts: 42
Joined: Wed Oct 23, 2019 3:26 am

Process is killed

Postby Ryan » Mon Mar 23, 2020 5:25 am

Dear Sir,
I have successfully written an RNN algorithm and used the galib to evolve it (420 weights). When I use 15 robots, the process is killed in the 7th generation. But when I use 25 robots, the process is killed in the 4th generation. And I try to know why my process was killed by

Code: Select all

dmesg | egrep -i -B100 'killed process'
. And I got this:

Code: Select all

[232556.977741] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/,task=rnn_pathformati,pid=61766,uid=1000 [232556.977751] Out of memory: Killed process 61766 (rnn_pathformati) total-vm:5096852kB, anon-rss:4877928kB, file-rss:0kB, shmem-rss:0kB

Do you have any suggestions? The cause of this phenomenon is insufficient memory, so should I use another computer with a higher memory to run it, or is there some deficiency in my code?

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: Process is killed

Postby pincy » Tue Mar 24, 2020 2:26 pm

You probably have a memory leak. Use Valgrind or Asan to find the source of memory issues.
I made ARGoS.

Ryan
Posts: 42
Joined: Wed Oct 23, 2019 3:26 am

Re: Process is killed

Postby Ryan » Fri Mar 27, 2020 12:02 pm

Thank you very much for the reminder. I have solved this problem and the reason is as you said memory leak.


Return to “How to... ?”