Did some profiling with Go's 'pprof' tool, and according to that, memory usage isn't all that high, certainly no where near what ps is reporting.
Currently, ps is reporting 30m allocated, and pprof is reporting ~5MB (it was around 7-8MB, but the garbage collector seems to be cleaning up...).
I wonder if the issue is indeed an OOM? And if so, maybe it's more around allocations rather than total memory required by KU?
EDIT: if your interested, here's a version with 'pprof' enabled. You will need Go installed to make use of it. Simply install it to your Kobo as normal, and run KU. Once KU is running, you can get memory snapshots by running go tool pprof -web http://<kobo-ip>:6060/debug/pprof/heap. This will open your default web browser with an SVG image showing memory usage at the time called.
Last edited by sherman; 01-01-2021 at 10:27 PM.
Reason: Remove outdated test version
|