I got my Pi3 soon after it was released. I cloned my Raspbian install from my Pi2, renamed the device, booted it and updated it appropriately (including undoing overclocking things not appropriate to the Pi3).
The Pi2 and the Pi3 are both online and are basically identical. However, while the Pi2 will run for weeks at a time (25 days uptime since my last reboot), the Pi3 will drop offline after a few days. I thought it was the WiFi dropping out, causing it to become inaccessible (despite a small WiFi restart script I successfully have running on both devices). However, I don't think that's the problem.
According to 'top', the Pi2 uses a fair amount of memory but that amount has remained stable:
KiB Mem: 883052 total, 401412 used, 481640 free, 108220 buffers
(htop claims 91/862 MB are in use - likewise, stable)
However, the Pi3 memory usage has steadily increased - it's been online just over a day and already:
KiB Mem: 947748 total, 888536 used, 59212 free, 81880 buffers
(htop says 607/925 MB are in use... this has risen by 4 MB in the short time I've been typing this post.)
I suspect a memory leak, but it's not clear what's doing it. Unlike the Pi2, I found the OOM task killer is being activated, shortly before the logs just *stop* (the app happened to be my WiFi shell script, but I believe it triggered it because it happens to run periodically and tried to run when memory was maxed out already - there's nothing prone to memory leakage in it). There is ample "disk" space on each device; swap is available (1023MB) but is currently unused.
I realize this isn't a pristine install, but I don't see why it should be leaking like this either. Thoughts on how I could track down what part of the system is slowly draining my memory? As I've seen other mentions of memory leaks (possibly in the WiFi subsystem itself) it would be useful *and* educational to track down the leak.
Edit: it's 10 minutes later and now swap is getting involved on the Pi3. It's just 1 MB but give it time...
