I run weewx on a 128 MB RAM system, so perhaps this is a bit unusual, but 
in loading the current forecast extension it 'seems' that it has really 
high memory usage in VSZ. I'm wondering how much this might matter (or not):

Symptoms I saw:

   - added forecast 3.2.4 on my weewx 3.6.1 Dockstar, got it working, left 
   it alone for a couple days
   - eventually got a WU '*your station has not reported*' email, looked 
   into things a bit
   - the system was glacially slow to log into, even though it runs off 
   spinning disk
   - found the VSZ of weewxd was over 600 MB in size (typical 'used' to be 
   around 100 for me)
   - restarted weewx, it jumped back to the high VSZ usage
   - disabled forecast (removed its extensions, commented out its skins 
   etc.) and VSZ was normal again

So I dug into it a little using a ansible provisioner I cooked up to build 
vagrant boxes easily:

   - vanilla weewx 3.6.2 with Simulator using just the standard skin 
   stabilizes at VSZ=166,600 RSS=36,900 after the first run
   - same thing with forecast using WU + NWS + Xtide stabilizes at 
   VSZ=397,000 RSS=46,200 after the first run
   - adding my memory extension to track this stuff into its own db 
   stabilizes at about the same values after the first run
   - rebooting the system and waiting 15 minutes showed it stabilized at 
   VSZ=247,600 RSS=42,800 after a few runs


   - rebuilding the system via 'vagrant destroy && vagrant up' resulted in 
   the same VSS=397,000 RSS=46,200 after a few runs
   - rebooting the system again reverted to VSZ=247,000 RSS=42,000 or so 
   after a few runs

So I guess I have a few questions:

   - Is there anything in such a high VSZ to worry about, given the 
   low+reasonable RSS the weewxd process shows ?
   - Given the difference after a reboot, what does that mean ?
   - Why does a reboot dramatically lower the steady-state VSZ ? Does 
   seeding forecast+tide data the first time use up a bunch of RAM that 
   doesn't free ?

Guess I'm confused at the data at this point.....




-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to