reef-pi :: An opensource reef tank controller based on Raspberry Pi.

That Crusso Kid

10K Club member
View Badges
Joined
Oct 21, 2018
Messages
15,499
Reaction score
78,822
Location
SW, FL, USA
Rating - 0%
0   0   0
I might not be running headless.....

@DirtDiggler2823 @dmolavi @LionHeart2017 @Tom Bishop

I ran headless once. Scared all the neighbors!

Ok, seriously, if you're running 3 B+ you should have more than enough resources to run a full reef-pi system using the UI and all.

It seems to me that maybe there might some additional background service(s)/programs running. Maybe you guys downloaded the same version of the software used and therein lies the issue. Since you all appear to be having the same issue, I would think there has to be a commonality between all of you. Yeah, I realize this logic may be erroneous as we are dealing with different base models but it might be a good start for you guys to post your SPi model and the software downloaded. I mean, we have to start somewhere, right?

Or maybe I'll just continue to run around the neighborhood headless!
 

rushbattle

Valuable Member
View Badges
Joined
Oct 19, 2016
Messages
1,347
Reaction score
1,628
Location
Equality
Rating - 0%
0   0   0
Here we go:
1. After you flash the image to the micro-SD card, open the /boot/ partition in your file manager.
2. Enable SSH by placing a file named “ssh” (without any extension) onto the /boot partition of the SD card.
3. In order to connect to a wifi network, create and edit wpa_supplicant.conf (in your /boot partition) and add the following lines:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
ssid="my-network-name"
psk="my-network-pass"
key_mgmt=WPA-PSK
}

Save the file, eject/unmount the micro-SD card and use it to boot up your Pi. From your wireless router, you can find the IP address assigned to "raspberrypi" and do:

ssh pi@<ipaddress>
Thanks for this, I keep forgetting to post it up!

Also, I did install Lite via terminal and I still needed to disable the GUI in raspi-config. It lowered mem and cpu usage quite a bit. No idea why or how that might be.
 
Last edited:

stefanm

Active Member
View Badges
Joined
Oct 11, 2017
Messages
360
Reaction score
394
Location
Sweden
Rating - 0%
0   0   0
I got the chance earlier to test the PCA 9685 again for the dosing, still not working properly, I then tried one of the pwm outputs on the pi and working as it should.
I then tested the pwm output on the PCA and it was as always on showing 3.79 volts, so after all it did get damaged on the Arduino when the rtc caught fire!

So I'm ordering a replacement, hopefully by the weekend I'll get it.

The only other thing I need to configure is the 8 channel relay, as I'll be using a separate PSU for it do I still need to tie the grounds, I had one hooked up to an Arduino and pretty sure I didn't tie the grounds, I believe the idea behind this is to completely isolate the microcontroller incase of failure, I guess it'll either work or not.

Just one question is the output active high or low, the board i have has a jumper selection for this?
 

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
I have been experienceing the growing memory usage for a while as well. I am running a custom release that was sent me a while back from @Ranjib so that I could address my PCA9685 (Version 2.0-2-gae06032).
I am running headless on a Pi Zero with the Adafruit Motor Control Hat. Running 2 lights, 2 temp probes, 1 float switch/ATO, 8 outlets with 5 timers.
I was able to restart through through terminal with
Code:
sudo systemctl restart reef-pi.service
Otherwise I would get the same error about not being able to allocate memory.

CPU is percentage , memory is in MB.
I know I shouldn't ask, but are you 100% on RAM being MB?
When my system was running high before this reboot, ps aux showed %RAM to be nearly the same that reef-pi was showing (~80%).
upload_2019-1-22_9-14-22.png
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
I have been experienceing the growing memory usage for a while as well. I am running a custom release that was sent me a while back from @Ranjib so that I could address my PCA9685 (Version 2.0-2-gae06032).
I am running headless on a Pi Zero with the Adafruit Motor Control Hat. Running 2 lights, 2 temp probes, 1 float switch/ATO, 8 outlets with 5 timers.
I was able to restart through through terminal with
Code:
sudo systemctl restart reef-pi.service
Otherwise I would get the same error about not being able to allocate memory.


I know I shouldn't ask, but are you 100% on RAM being MB?
When my system was running high before this reboot, ps aux showed %RAM to be nearly the same that reef-pi was showing (~80%).
upload_2019-1-22_9-14-22.png
You are right, the memory usage is in percentage, I was wrong I’m saying it’s in mb. I just crosschecked my code , and it’s in %. Do you mind sharing a summary of all the things you are running ? I’ll try to diagnose the issue. I am running couple of temperature controller , ato, light and 8 equipment and have around 25% memory usage at max.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Tried a sudo reboot, but nothing changed, so I did a hard reboot
Screenshot_20190122-122131_Remote%20Desktop.jpeg
This definitely looks like a memory leak :-( . Will it be possible to share some details on your setup? If I can recreate this then I should be able to track it down easily and fix it
 

DirtDiggler2823

If I can't break it, it doesn't exist
View Badges
Joined
Jul 31, 2018
Messages
1,667
Reaction score
2,075
Location
Gambrills
Rating - 0%
0   0   0
This definitely looks like a memory leak :-( . Will it be possible to share some details on your setup? If I can recreate this then I should be able to track it down easily and fix it
What information do you need? I can get everything for you when I get home.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
What information do you need? I can get everything for you when I get home.
Enough to recreate this issue. For example how many equipment , frequency and number of temperature , ato , light controllers etc. that chart will be tremendously useful as it provides the rate of memory utilization.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Someone was asking before , what the profile option does under configuration section :-) , it allows us to debug performance issues like this. I’ll be using that option with the details from the reported issues to recreate and investigate this issue
 

DirtDiggler2823

If I can't break it, it doesn't exist
View Badges
Joined
Jul 31, 2018
Messages
1,667
Reaction score
2,075
Location
Gambrills
Rating - 0%
0   0   0
Enough to recreate this issue. For example how many equipment , frequency and number of temperature , ato , light controllers etc. that chart will be tremendously useful as it provides the rate of memory utilization.
No light controllers, no dosing pumps. I was using one outlet for the heaters, but I split them to two this morning during troubleshooting. I also had a 30 second interval for the heaters before this morning and I changed them to 120 seconds. I have an ON timer for the fuge light, and an OFF timer for the fuge light.
Screenshot_20190122-125915_Remote%20Desktop.jpeg
Screenshot_20190122-125930_Remote%20Desktop.jpeg
Screenshot_20190122-125951_Remote%20Desktop.jpeg
Screenshot_20190122-130014_Remote%20Desktop.jpeg
Screenshot_20190122-130035_Remote%20Desktop.jpeg
Screenshot_20190122-130052_Remote%20Desktop.jpeg
Screenshot_20190122-130104_Remote%20Desktop.jpeg
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,679
Reaction score
2,227
Location
Columbia MD
Rating - 0%
0   0   0
@Ranjib I always feel bad asking questions pointing out issues. I have no idea how you have to time to keep up with all of us yahoo's from all different levels of experience and maintain your patience level lol

I have dosers set up as follows. I set up a timer to dose 5 ml throughout the day then made a separate timer as an adjustment that would vary between 1-5 ml depending on demand. "Calc adjustment" intermittently does not seem to show up on the dashboard. I need to run downstairs at 7 am tomorrow morning to see if it is actually running or not but as of now it does not show up on my dashboard and manually running via calibrate it does not show up either. The first timer I set up "calc" works and shows up just fine.


46841001091_615b012081_b.jpg
 

DirtDiggler2823

If I can't break it, it doesn't exist
View Badges
Joined
Jul 31, 2018
Messages
1,667
Reaction score
2,075
Location
Gambrills
Rating - 0%
0   0   0
@Ranjib I always feel bad asking questions pointing out issues. I have no idea how you have to time to keep up with all of us yahoo's from all different levels of experience and maintain your patience level lol

I have dosers set up as follows. I set up a timer to dose 5 ml throughout the day then made a separate timer as an adjustment that would vary between 1-5 ml depending on demand. "Calc adjustment" intermittently does not seem to show up on the dashboard. I need to run downstairs at 7 am tomorrow morning to see if it is actually running or not but as of now it does not show up on my dashboard and manually running via calibrate it does not show up either. The first timer I set up "calc" works and shows up just fine.


46841001091_615b012081_b.jpg
I imagine it takes a lot of mental resources to track everything that goes on in this thread, but @Ranjib has been in the game for a while and knows how to parse through the info we provide.
 

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
You are right, the memory usage is in percentage, I was wrong I’m saying it’s in mb. I just crosschecked my code , and it’s in %. Do you mind sharing a summary of all the things you are running ? I’ll try to diagnose the issue. I am running couple of temperature controller , ato, light and 8 equipment and have around 25% memory usage at max.
For timers I have 1 turning my lights on in the morning and another turning them off at night. A simultaneous timer turns the fuge light off and on accordingly. Only one other timer running intermittently
upload_2019-1-22_12-33-2.png

All pins 16 of the PCA9685 defined as jacks, but only a few are running.
I have two pins running my whites and blues on a ramp up/down cycle. I currently have 3 other pins defined but at fixed values.

I have one inlet for the ATO float (checking every 60 seconds) and 8 outlets for relay control.

I have two temp probes connected, 1 updates at 300 seconds the other is at 180 seconds
Here is a snapshot from the journal
Code:
pi@raspberrypi:~ $ sudo journalctl -fu reef-pi.service
-- Logs begin at Mon 2019-01-21 23:04:31 CST. --
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 lighting-subsystem: Setting PWM value: 78.41666666666667  at channel: 0
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 Setting pwm driver: pca9685 pin: 0 value: 78.41666666666667
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 lighting-subsystem: Setting PWM value: 55.25  at channel: 1
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 Setting pwm driver: pca9685 pin: 1 value: 55.25
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 lighting-subsystem: Setting PWM value: 0  at channel: 8
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 Setting pwm driver: pca9685 pin: 8 value: 0
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 lighting-subsystem: Setting PWM value: 0  at channel: 9
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 Setting pwm driver: pca9685 pin: 9 value: 0
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 lighting-subsystem: Setting PWM value: 99  at channel: 10
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 Setting pwm driver: pca9685 pin: 10 value: 99
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 lighting-subsystem: Setting PWM value: 78.41666666666667  at channel: 0
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 Setting pwm driver: pca9685 pin: 0 value: 78.41666666666667
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 lighting-subsystem: Setting PWM value: 55.25  at channel: 1
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 Setting pwm driver: pca9685 pin: 1 value: 55.25
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 lighting-subsystem: Setting PWM value: 0  at channel: 8
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 Setting pwm driver: pca9685 pin: 8 value: 0
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 lighting-subsystem: Setting PWM value: 0  at channel: 9
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 Setting pwm driver: pca9685 pin: 9 value: 0
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 lighting-subsystem: Setting PWM value: 99  at channel: 10
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 Setting pwm driver: pca9685 pin: 10 value: 99
Jan 22 12:38:37 raspberrypi reef-pi[25725]: 2019/01/22 12:38:37 ato sub-system:  sensor Float Switch value: 1
Jan 22 12:38:37 raspberrypi reef-pi[25725]: 2019/01/22 12:38:37 Setting GPIO Pin: 19 State: 1
Jan 22 12:38:37 raspberrypi reef-pi[25725]: 2019/01/22 12:38:37 Reading temperature from device: 28-0000062c1181
Jan 22 12:38:38 raspberrypi reef-pi[25725]: 2019/01/22 12:38:38 health check: Used memory: 8.21  Load5: 0.03
Jan 22 12:38:38 raspberrypi reef-pi[25725]: 2019/01/22 12:38:38 temperature sub-system:  sensor Stand Temp value: 72.05
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 lighting-subsystem: Setting PWM value: 78.375  at channel: 0
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 Setting pwm driver: pca9685 pin: 0 value: 78.375
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 lighting-subsystem: Setting PWM value: 55.125  at channel: 1
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 Setting pwm driver: pca9685 pin: 1 value: 55.125
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 lighting-subsystem: Setting PWM value: 0  at channel: 8
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 Setting pwm driver: pca9685 pin: 8 value: 0
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 lighting-subsystem: Setting PWM value: 0  at channel: 9
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 Setting pwm driver: pca9685 pin: 9 value: 0
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 lighting-subsystem: Setting PWM value: 99  at channel: 10
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 Setting pwm driver: pca9685 pin: 10 value: 99
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 lighting-subsystem: Setting PWM value: 78.375  at channel: 0
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 Setting pwm driver: pca9685 pin: 0 value: 78.375
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 lighting-subsystem: Setting PWM value: 55.125  at channel: 1
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 Setting pwm driver: pca9685 pin: 1 value: 55.125
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 lighting-subsystem: Setting PWM value: 0  at channel: 8
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 Setting pwm driver: pca9685 pin: 8 value: 0
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 lighting-subsystem: Setting PWM value: 0  at channel: 9
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 Setting pwm driver: pca9685 pin: 9 value: 0
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 lighting-subsystem: Setting PWM value: 99  at channel: 10
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 Setting pwm driver: pca9685 pin: 10 value: 99
Jan 22 12:39:37 raspberrypi reef-pi[25725]: 2019/01/22 12:39:37 ato sub-system:  sensor Float Switch value: 1
Jan 22 12:39:37 raspberrypi reef-pi[25725]: 2019/01/22 12:39:37 Setting GPIO Pin: 19 State: 1
Jan 22 12:39:37 raspberrypi reef-pi[25725]: 2019/01/22 12:39:37 Reading temperature from device: 28-00000a88c0da
Jan 22 12:39:38 raspberrypi reef-pi[25725]: 2019/01/22 12:39:38 health check: Used memory: 8.18  Load5: 0.03
Jan 22 12:39:38 raspberrypi reef-pi[25725]: 2019/01/22 12:39:38 temperature sub-system:  sensor Sump Temp value: 77
Jan 22 12:39:38 raspberrypi reef-pi[25725]: 2019/01/22 12:39:38 temperature subsystem: Current temperature is within range switching off heater/cooler
Jan 22 12:39:38 raspberrypi reef-pi[25725]: 2019/01/22 12:39:38 Setting GPIO Pin: 12 State: 1

Let me know if you need any more info.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
@Ranjib I always feel bad asking questions pointing out issues. I have no idea how you have to time to keep up with all of us yahoo's from all different levels of experience and maintain your patience level lol

I have dosers set up as follows. I set up a timer to dose 5 ml throughout the day then made a separate timer as an adjustment that would vary between 1-5 ml depending on demand. "Calc adjustment" intermittently does not seem to show up on the dashboard. I need to run downstairs at 7 am tomorrow morning to see if it is actually running or not but as of now it does not show up on my dashboard and manually running via calibrate it does not show up either. The first timer I set up "calc" works and shows up just fine.


46841001091_615b012081_b.jpg
You should never feel bad in reporting things that can impact others, in fact I thank you for reporting this as this helps us making sure reef-pi is up for the job. I’ll be prioritizing work when I get overwhelmed, but this is not that day :-) .
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
For timers I have 1 turning my lights on in the morning and another turning them off at night. A simultaneous timer turns the fuge light off and on accordingly. Only one other timer running intermittently
upload_2019-1-22_12-33-2.png

All pins 16 of the PCA9685 defined as jacks, but only a few are running.
I have two pins running my whites and blues on a ramp up/down cycle. I currently have 3 other pins defined but at fixed values.

I have one inlet for the ATO float (checking every 60 seconds) and 8 outlets for relay control.

I have two temp probes connected, 1 updates at 300 seconds the other is at 180 seconds
Here is a snapshot from the journal
Code:
pi@raspberrypi:~ $ sudo journalctl -fu reef-pi.service
-- Logs begin at Mon 2019-01-21 23:04:31 CST. --
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 lighting-subsystem: Setting PWM value: 78.41666666666667  at channel: 0
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 Setting pwm driver: pca9685 pin: 0 value: 78.41666666666667
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 lighting-subsystem: Setting PWM value: 55.25  at channel: 1
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 Setting pwm driver: pca9685 pin: 1 value: 55.25
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 lighting-subsystem: Setting PWM value: 0  at channel: 8
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 Setting pwm driver: pca9685 pin: 8 value: 0
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 lighting-subsystem: Setting PWM value: 0  at channel: 9
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 Setting pwm driver: pca9685 pin: 9 value: 0
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 lighting-subsystem: Setting PWM value: 99  at channel: 10
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 Setting pwm driver: pca9685 pin: 10 value: 99
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 lighting-subsystem: Setting PWM value: 78.41666666666667  at channel: 0
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 Setting pwm driver: pca9685 pin: 0 value: 78.41666666666667
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 lighting-subsystem: Setting PWM value: 55.25  at channel: 1
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 Setting pwm driver: pca9685 pin: 1 value: 55.25
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 lighting-subsystem: Setting PWM value: 0  at channel: 8
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 Setting pwm driver: pca9685 pin: 8 value: 0
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 lighting-subsystem: Setting PWM value: 0  at channel: 9
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 Setting pwm driver: pca9685 pin: 9 value: 0
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 lighting-subsystem: Setting PWM value: 99  at channel: 10
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 Setting pwm driver: pca9685 pin: 10 value: 99
Jan 22 12:38:37 raspberrypi reef-pi[25725]: 2019/01/22 12:38:37 ato sub-system:  sensor Float Switch value: 1
Jan 22 12:38:37 raspberrypi reef-pi[25725]: 2019/01/22 12:38:37 Setting GPIO Pin: 19 State: 1
Jan 22 12:38:37 raspberrypi reef-pi[25725]: 2019/01/22 12:38:37 Reading temperature from device: 28-0000062c1181
Jan 22 12:38:38 raspberrypi reef-pi[25725]: 2019/01/22 12:38:38 health check: Used memory: 8.21  Load5: 0.03
Jan 22 12:38:38 raspberrypi reef-pi[25725]: 2019/01/22 12:38:38 temperature sub-system:  sensor Stand Temp value: 72.05
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 lighting-subsystem: Setting PWM value: 78.375  at channel: 0
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 Setting pwm driver: pca9685 pin: 0 value: 78.375
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 lighting-subsystem: Setting PWM value: 55.125  at channel: 1
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 Setting pwm driver: pca9685 pin: 1 value: 55.125
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 lighting-subsystem: Setting PWM value: 0  at channel: 8
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 Setting pwm driver: pca9685 pin: 8 value: 0
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 lighting-subsystem: Setting PWM value: 0  at channel: 9
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 Setting pwm driver: pca9685 pin: 9 value: 0
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 lighting-subsystem: Setting PWM value: 99  at channel: 10
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 Setting pwm driver: pca9685 pin: 10 value: 99
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 lighting-subsystem: Setting PWM value: 78.375  at channel: 0
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 Setting pwm driver: pca9685 pin: 0 value: 78.375
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 lighting-subsystem: Setting PWM value: 55.125  at channel: 1
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 Setting pwm driver: pca9685 pin: 1 value: 55.125
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 lighting-subsystem: Setting PWM value: 0  at channel: 8
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 Setting pwm driver: pca9685 pin: 8 value: 0
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 lighting-subsystem: Setting PWM value: 0  at channel: 9
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 Setting pwm driver: pca9685 pin: 9 value: 0
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 lighting-subsystem: Setting PWM value: 99  at channel: 10
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 Setting pwm driver: pca9685 pin: 10 value: 99
Jan 22 12:39:37 raspberrypi reef-pi[25725]: 2019/01/22 12:39:37 ato sub-system:  sensor Float Switch value: 1
Jan 22 12:39:37 raspberrypi reef-pi[25725]: 2019/01/22 12:39:37 Setting GPIO Pin: 19 State: 1
Jan 22 12:39:37 raspberrypi reef-pi[25725]: 2019/01/22 12:39:37 Reading temperature from device: 28-00000a88c0da
Jan 22 12:39:38 raspberrypi reef-pi[25725]: 2019/01/22 12:39:38 health check: Used memory: 8.18  Load5: 0.03
Jan 22 12:39:38 raspberrypi reef-pi[25725]: 2019/01/22 12:39:38 temperature sub-system:  sensor Sump Temp value: 77
Jan 22 12:39:38 raspberrypi reef-pi[25725]: 2019/01/22 12:39:38 temperature subsystem: Current temperature is within range switching off heater/cooler
Jan 22 12:39:38 raspberrypi reef-pi[25725]: 2019/01/22 12:39:38 Setting GPIO Pin: 12 State: 1

Let me know if you need any more info.
What is the scope of memory leak you are seeing ? The health chart should reveal how much memory is building up for a given duration. Are you also restarting reef-pi frequently ?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
I don’t know if I have mentioned this, but reef-pi can alert based on memory usage . For anyone who is worried about this , setup an alert at 80%.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
For timers I have 1 turning my lights on in the morning and another turning them off at night. A simultaneous timer turns the fuge light off and on accordingly. Only one other timer running intermittently
upload_2019-1-22_12-33-2.png

All pins 16 of the PCA9685 defined as jacks, but only a few are running.
I have two pins running my whites and blues on a ramp up/down cycle. I currently have 3 other pins defined but at fixed values.

I have one inlet for the ATO float (checking every 60 seconds) and 8 outlets for relay control.

I have two temp probes connected, 1 updates at 300 seconds the other is at 180 seconds
Here is a snapshot from the journal
Code:
pi@raspberrypi:~ $ sudo journalctl -fu reef-pi.service
-- Logs begin at Mon 2019-01-21 23:04:31 CST. --
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 lighting-subsystem: Setting PWM value: 78.41666666666667  at channel: 0
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 Setting pwm driver: pca9685 pin: 0 value: 78.41666666666667
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 lighting-subsystem: Setting PWM value: 55.25  at channel: 1
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 Setting pwm driver: pca9685 pin: 1 value: 55.25
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 lighting-subsystem: Setting PWM value: 0  at channel: 8
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 Setting pwm driver: pca9685 pin: 8 value: 0
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 lighting-subsystem: Setting PWM value: 0  at channel: 9
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 Setting pwm driver: pca9685 pin: 9 value: 0
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 lighting-subsystem: Setting PWM value: 99  at channel: 10
Jan 22 12:38:06 raspberrypi reef-pi[25725]: 2019/01/22 12:38:06 Setting pwm driver: pca9685 pin: 10 value: 99
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 lighting-subsystem: Setting PWM value: 78.41666666666667  at channel: 0
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 Setting pwm driver: pca9685 pin: 0 value: 78.41666666666667
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 lighting-subsystem: Setting PWM value: 55.25  at channel: 1
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 Setting pwm driver: pca9685 pin: 1 value: 55.25
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 lighting-subsystem: Setting PWM value: 0  at channel: 8
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 Setting pwm driver: pca9685 pin: 8 value: 0
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 lighting-subsystem: Setting PWM value: 0  at channel: 9
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 Setting pwm driver: pca9685 pin: 9 value: 0
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 lighting-subsystem: Setting PWM value: 99  at channel: 10
Jan 22 12:38:36 raspberrypi reef-pi[25725]: 2019/01/22 12:38:36 Setting pwm driver: pca9685 pin: 10 value: 99
Jan 22 12:38:37 raspberrypi reef-pi[25725]: 2019/01/22 12:38:37 ato sub-system:  sensor Float Switch value: 1
Jan 22 12:38:37 raspberrypi reef-pi[25725]: 2019/01/22 12:38:37 Setting GPIO Pin: 19 State: 1
Jan 22 12:38:37 raspberrypi reef-pi[25725]: 2019/01/22 12:38:37 Reading temperature from device: 28-0000062c1181
Jan 22 12:38:38 raspberrypi reef-pi[25725]: 2019/01/22 12:38:38 health check: Used memory: 8.21  Load5: 0.03
Jan 22 12:38:38 raspberrypi reef-pi[25725]: 2019/01/22 12:38:38 temperature sub-system:  sensor Stand Temp value: 72.05
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 lighting-subsystem: Setting PWM value: 78.375  at channel: 0
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 Setting pwm driver: pca9685 pin: 0 value: 78.375
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 lighting-subsystem: Setting PWM value: 55.125  at channel: 1
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 Setting pwm driver: pca9685 pin: 1 value: 55.125
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 lighting-subsystem: Setting PWM value: 0  at channel: 8
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 Setting pwm driver: pca9685 pin: 8 value: 0
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 lighting-subsystem: Setting PWM value: 0  at channel: 9
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 Setting pwm driver: pca9685 pin: 9 value: 0
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 lighting-subsystem: Setting PWM value: 99  at channel: 10
Jan 22 12:39:06 raspberrypi reef-pi[25725]: 2019/01/22 12:39:06 Setting pwm driver: pca9685 pin: 10 value: 99
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 lighting-subsystem: Setting PWM value: 78.375  at channel: 0
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 Setting pwm driver: pca9685 pin: 0 value: 78.375
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 lighting-subsystem: Setting PWM value: 55.125  at channel: 1
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 Setting pwm driver: pca9685 pin: 1 value: 55.125
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 lighting-subsystem: Setting PWM value: 0  at channel: 8
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 Setting pwm driver: pca9685 pin: 8 value: 0
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 lighting-subsystem: Setting PWM value: 0  at channel: 9
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 Setting pwm driver: pca9685 pin: 9 value: 0
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 lighting-subsystem: Setting PWM value: 99  at channel: 10
Jan 22 12:39:36 raspberrypi reef-pi[25725]: 2019/01/22 12:39:36 Setting pwm driver: pca9685 pin: 10 value: 99
Jan 22 12:39:37 raspberrypi reef-pi[25725]: 2019/01/22 12:39:37 ato sub-system:  sensor Float Switch value: 1
Jan 22 12:39:37 raspberrypi reef-pi[25725]: 2019/01/22 12:39:37 Setting GPIO Pin: 19 State: 1
Jan 22 12:39:37 raspberrypi reef-pi[25725]: 2019/01/22 12:39:37 Reading temperature from device: 28-00000a88c0da
Jan 22 12:39:38 raspberrypi reef-pi[25725]: 2019/01/22 12:39:38 health check: Used memory: 8.18  Load5: 0.03
Jan 22 12:39:38 raspberrypi reef-pi[25725]: 2019/01/22 12:39:38 temperature sub-system:  sensor Sump Temp value: 77
Jan 22 12:39:38 raspberrypi reef-pi[25725]: 2019/01/22 12:39:38 temperature subsystem: Current temperature is within range switching off heater/cooler
Jan 22 12:39:38 raspberrypi reef-pi[25725]: 2019/01/22 12:39:38 Setting GPIO Pin: 12 State: 1

Let me know if you need any more info.
I went back and looked at your charts, the leak is build up over the course of 8 days. I have some wild guesses , but I need some time to profile the binary. Let me cut a release with configurable stats retention meanwhile
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
I don’t know if I have mentioned this, but reef-pi can alert based on memory usage . For anyone who is worried about this , setup an alert at 80%.
Just for some info, if it helps. I am still running my reef pi in "testing". I have 3 working temp sensors reading once every 60 secs, 8 relay controlled outlets, 2 controlled by temp sensors, the other 6 on timers. I am simulating Pwm control of my lights with the auto mode. I am sending feeds to adafruit i/o. My memory usage climbs to about 10 percent then drops periodically to 8 percent. Been running for 6 days. NO MEMORY leak seen here.

Running a pi zero w, raspian lite, headless with all updates and upgrades installed.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Just for some info, if it helps. I am still running my reef pi in "testing". I have 3 working temp sensors reading once every 60 secs, 8 relay controlled outlets, 2 controlled by temp sensors, the other 6 on timers. I am simulating Pwm control of my lights with the auto mode. I am sending feeds to adafruit i/o. My memory usage climbs to about 10 percent then drops periodically to 8 percent. Been running for 6 days. NO MEMORY leak seen here.

Running a pi zero w, raspian lite, headless with all updates and upgrades installed.
Version?
 

ARE YOU READY TO CONFESS TO CRAZIEST, DUMBEST, FUNNIEST THING YOU’VE EVER DONE IN REEFING?

  • Yeah, I'll confess! (Share your story in the comments!)

    Votes: 7 63.6%
  • Nah, I'll keep mine a secret...(Don't be like that, share with the class!)

    Votes: 4 36.4%
Back
Top
Home
Post thread…
Market
What's new