Raspberry Pi memory

126 views
Skip to first unread message

Remy Lavabre

unread,
Jul 8, 2024, 12:48:50 PM7/8/24
to weewx-user
Good morning,
I use a Raspberry Pi 5 8GB to run Weewx (version 5.x).
This computer is only used for this task.

I notice over time that the amount of memory used increases regularly without ever decreasing (see attached illustration). I tried the command "sudo sysctl -w vm.drop_caches=3"
This command is effective since it indicates to me in response to the "free" command a return to the minimum state of the memory used. However, curiously, when the terminal is closed, the value of the memory used remains identical before the intervention in my WeeWX records and of course continues to increase!
If I reset the raspberry, we find a used memory value of around 1GB (see illustration).

image.png

Is it normal to see this used memory constantly increasing when only using WeeWX?
And how to empty these caches in order to find maximum free memory?

THANKS...

p q

unread,
Jul 8, 2024, 1:26:47 PM7/8/24
to weewx...@googlegroups.com
Why do you care? Especially if Weewx is the only thing running and you're not running out of memory?

As a Weewx is a Python program, Python is in charge of memory allocation. The advice I've seen is to not mess with Python's garbage collection unless you are trying to fix a problem.


--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6f286345-df21-4c4f-9d40-83eff2a4fdfcn%40googlegroups.com.


--
Peter Quinn
(415)794-2264

vince

unread,
Jul 8, 2024, 4:15:23 PM7/8/24
to weewx-user
Yes that happens depending on which skins you have enabled. It is theorized that it is something in the imaging libraries perhaps.  It is never a problem however. The os handles things gracefully.
IMG_4814.png
Reply all
Reply to author
Forward
0 new messages