Sounds like your BB AI ran out of memory not disk space. Is the Python script you are running part of the Cloud9 apps or your own creation? Python has a tendency to consume all the available memory on a system if you let it and not delete variables or objects when no longer being used.
You can see the available memory in multiple ways: Ex: - top - free - cat /proc/mem Or from Python as in this example: https://stackoverflow.com/questions/1204378/getting-total-free-ram-from-within-python Cheers, Jon On Thu, Nov 7, 2019 at 7:14 AM Jianzhong Xu <[email protected]> wrote: > I was trying to run a Python code. It failed and gave me error message > "Killed". Looks like this message means the Python program is out of > memory: > https://stackoverflow.com/questions/1811173/why-does-my-python-script-randomly-get-killed > . > > Then I opened /var/log/syslog and saw the following: > > Nov 6 14:26:56 beaglebone kernel: [ 3072.894508] Out of memory: Kill > process 28376 (python3) score 525 or sacrifice child > Nov 6 14:26:56 beaglebone kernel: [ 3072.919653] Killed process 28376 > (python3) total-vm:491332kB, anon-rss:322104kB, file-rss:6724kB, > shmem-rss:0kB > > Below is what df reports: > debian@beaglebone:~/neo-ai-dlr/tests/python/integration$ df -h > Filesystem Size Used Avail Use% Mounted on > udev 199M 0 199M 0% /dev > tmpfs 62M 7.0M 55M 12% /run > /dev/mmcblk0p1 30G 4.2G 24G 15% / > tmpfs 306M 8.0K 306M 1% /dev/shm > tmpfs 5.0M 4.0K 5.0M 1% /run/lock > tmpfs 306M 0 306M 0% /sys/fs/cgroup > tmpfs 62M 4.0K 62M 1% /run/user/1000 > > Why did the Python code run out of memory and how can I solve it? > > Thanks and regards, > Jianzhong > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beagleboard/be61ca7f-139c-4c6c-9414-b700f0ca031f%40googlegroups.com > <https://groups.google.com/d/msgid/beagleboard/be61ca7f-139c-4c6c-9414-b700f0ca031f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAG99bkpD-tvv-rfN6Nt52zzfofNZGTuoQ1MA_-1BysoGiG5iwA%40mail.gmail.com.
