Memory Leak

6 posts / 0 new
Last post
pmiller
Memory Leak

Michael:

I am able to run Virtual Here for about a week and then the daemon crashes. Ounce I restart the PI I am goof for about another week, could it be a memory leak.
I found this in the log;

Nov 12 07:41:44 raspberrypi kernel: [886195.523997] [ 2170] 0 2170 937
0 5 32 0 getty
Nov 12 07:41:44 raspberrypi kernel: [886195.524016] [ 2171] 0 2171 937
0 6 32 0 getty
Nov 12 07:41:44 raspberrypi kernel: [886195.524055] [ 2172] 0 2172 937
0 6 32 0 getty
Nov 12 07:41:44 raspberrypi kernel: [886195.524076] [ 2173] 0 2173 937
0 5 32 0 getty
Nov 12 07:41:44 raspberrypi kernel: [886195.524094] [ 2174] 0 2174 517
0 5 31 0 getty
Nov 12 07:41:44 raspberrypi kernel: [886195.524112] Out of memory: Kill process
2138 (vhusbdpin) score 921 or sacrifice child
Nov 12 07:41:44 raspberrypi kernel: [886195.524137] Killed process 2138 (vhusbdp
in) total-vm:702776kB, anon-rss:423056kB, file-rss:40kB
Nov 12 08:17:01 raspberrypi /USR/SBIN/CRON[6020]: (root) CMD ( cd / && run-par
ts --report /etc/cron.hourly)
Nov 12 09:17:01 raspberrypi /USR/SBIN/CRON[6027]: (root) CMD ( cd / && run-par
ts --report /etc/cron.hourly)
Nov 12 10:17:01 raspberrypi /USR/SBIN/CRON[6034]: (root) CMD ( cd / && run-par

Any information would be appreciated.
Thanks;

Michael
At the moment im guessing

At the moment im guessing that the raspbian kernel is not completing some usb communications so the virtualhere server is left with the uncompleted data. I doubt there is a leak in virtualhere however its not impossible, so i will add some debugging code in the next release of the server to display how many "outstanding URB's" are currently in memory. This value should not be more than 5 or 10, if it shows its more then the raspbian kernel has a bug...

pmiller
Michael:

Michael:

Never thought of the kernel bug but you may be right.
I just ran all the updates just to make sure I am up to date. Let me know when you have the debug version ready and I will test it. Where will I see the counter that you are adding for debug.

Thanks;

Michael
Im almost certain its a

Im almost certain its a kernel issue. Can you do this

sudo apt-get update;sudo apt-get upgrade;sudo rpi-update;sync;sudo reboot

That will fully update all firmware and libraries on the pi.

Then you can download version 2.0.0 from here http://www.virtualhere.com/usb_server_software

Then if you have the time we can attach gdb against that running 2.0.0 binary after 4 days and can print the outstanding urb's that virtualhere is waiting for completion. Email me if you want to do this and i can email debug symbols and instructions. Its pretty easy i ran a test just then and it was only a few commands.

pmiller
Michael:

Michael:
Ok, I have ran all the updates. The Pi should be up to date.
I have downloaded and I am running version 2.0 of the server.
When you get a chance send me the instructions for checking the outstanding urb's and I will check it after a few days of running.

Thanks;

Michael
email sent...

email sent...

Log in or register to post comments