ok - I'm not seeing a memory leak on f37 on a pi4 in a couple hours of 
uptime.  I installed 4.9.1 in setup.py mode using the Simulator driver and 
am wifi only for networking.  I might add that I followed the instructions 
for using a python venv that Tom posted in the wiki so my python stuff is 
installed into the venv via pip.  Once I set setenforce=0 to disable 
selinux (ugh) it starts fine via systemd.

(wild thought - I wonder if the rpms you installed are where the leak is. 
 Note that I used 'pip' to compile+install all the modules)

If you want to watch your memory growth you can add my memory extension 
(https://github.com/vinceskahan/vds-weewx-v3-mem-extension) which logs to a 
separate db and sets up a quickie webpage to view as well.

For a quick cli check, I'm running this script to output some data...edit 
the path to your index.html to match of course...

     while true; do echo ''; free -m ; ps axu|grep weewx; grep minutes 
/home/weewx/public_html/index.html | grep -v grep; echo ' '; sleep 360; done

Hit ^C to stop it.  Example output looks like:

               total        used        free      shared  buff/cache   
available
Mem:            3808         775         901          11        2131       
 2833
Swap:           3807           0        3807
fedora     12153  1.0  1.2 351688 48124 ?        Ss   12:12   1:15 
/home/weewx/weewx_venv/bin/python3 /home/weewx/bin/weewxd 
/home/weewx/weewx.conf
      <td class="data">0 days, 2 hours, 25 minutes</td>
      <td class="data">0 days, 1 hour, 52 minutes</td>

So my VSS is 351688 and RSS is 48124 for my weewx process.  It's rock solid 
here in the Simulator FWIW once it reached that size after a few minutes.

On Monday, November 28, 2022 at 11:49:58 AM UTC-8 vince wrote:

> Your lowest blood pressure option is likely to just run RaspiOS on it, 
> which doesn't leak almost at all.
>
> I just got f37 on a spare pi4 so I'll see if I can duplicate your problem 
> (using a Simulator driver).
> Geez what an awful experience trying to bring up a fedora pi in comparison 
> to RaspiOS.
> But wifi works so that's good once I found the right nmcli incantation. 
>  Ugh.
>
> Stay tuned - let me spin up weewx on it and let it run for a bit.
>
> On Monday, November 28, 2022 at 10:13:54 AM UTC-8 [email protected] wrote:
>
>> I fiddled around with tracemalloc, but I didn't get anything. I know 
>> programming, but my python is rudimentary; I think I'd need someone to send 
>> me what to do or a patch.
>>
>>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/bd4e8dbe-ab61-4f7e-ac59-c558d2802a46n%40googlegroups.com.

Reply via email to