Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7512

Troubleshooting • Re: pi 3 Buster... Cannot allocate memory ?

$
0
0
Thanks for the replies.

The rc.local kicks off my C++ program...

Code:

#!/bin/sh -e## rc.local## This script is executed at the end of each multiuser runlevel.# Make sure that the script will "exit 0" on success or any other# value on error.## In order to enable or disable this script just change the execution# bits.## By default this script does nothing.# Print the IP address_IP=$(hostname -I) || trueif [ "$_IP" ]; then  printf "My IP address is %s\n" "$_IP"fi# I added everything below/piTT/piTT_Start.sh &exit 0
The piTT_Start.sh file looks like...

Code:

sudo pigpiod -p 12345sudo /piTT/piTT_Main  &exit
So, the pigpio is used to switch the GPIOs that control Solid State Relays for the furnace and A/C controls. Because it's a daemon, maybe it uses theats and sockets? The piTT_Main is a CPP program that further spawns other separate processes that intercommunicate using SYSVIPC message queues. I don't think SYSVIPC uses sockets? But, I don't know!

In any case, as I mentioned, this has been running at least 3 years unchanged; nothing like this ever happened before.

I looked here...

Code:

pi@rPi3-Thermostat:~ $ cat /proc/meminfoMemTotal:         945368 kBMemFree:          800348 kBMemAvailable:     838680 kB
But that's after I rebooted, so, I would have to monitor that. However, even if MemFree goes to 0 that don't tell me where it went. The message about " rc.local cannot allocate memory" doesn't necessarily mean that rc.local is the culprit, maybe a victim?

Statistics: Posted by ronter — Mon May 19, 2025 1:59 am



Viewing all articles
Browse latest Browse all 7512

Trending Articles