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

DirtDiggler2823

If I can't break it, it doesn't exist
View Badges
Joined
Jul 31, 2018
Messages
1,667
Reaction score
2,077
Location
Gambrills
Rating - 0%
0   0   0
Tried a sudo reboot, but nothing changed, so I did a hard reboot
Screenshot_20190122-122131_Remote%20Desktop.jpeg
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
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,077
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,848
Reaction score
17,081
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,848
Reaction score
17,081
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,077
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,673
Reaction score
2,244
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,077
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,848
Reaction score
17,081
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,848
Reaction score
17,081
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,848
Reaction score
17,081
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,826
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,848
Reaction score
17,081
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?
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,349
Reaction score
1,724
Location
Missouri
Rating - 0%
0   0   0
I agree with your 8 day assessment that is about what I had on mine when it restarted reef-pi, although I have a cron running now but memory does appear to be building daily, will know more tomorrow from the chart.

Here is my build info:
3 temp sensors (in use 60sec each), 2 pi pwm jacks for lights set to auto, 8 outlets with one in use, 2 timers for an additional light

Here is my hardware info:
Rpi 3 A+, 512Mb mem, same cpu less usb and no network adapter

Software:
Raspbian stretch(4.14) lite headless, no gui ( I don't need no stinking gui), reef-pi-2.0-pi3.deb, no other tweaks that I can think off

Here is my memory information it is increasing but that in and of itself is normal for linux, but it doesnt appear obviously to be freeing it up like it should when needed:

DeepinScreenshot_select-area_20190122202837.png


reef-pi-scrn.png
 

Reefology1

Community Member
View Badges
Joined
Feb 26, 2017
Messages
74
Reaction score
44
Rating - 0%
0   0   0
Hi all,

Hoping this is the right place to post a question. I just downloaded the reef-pi UI and was going though the initial testing. the outlet test worked fine but when I moved on to the dimming test I had this error message when I was setting up the "TestJack":

{"error":"Failed to update. Error: open /sys/class/pwm/pwmchip0/export: no such file or directory"} | HTTP 500

I went ahead and created a light and associate the jack with it but there was no way to "update" and the led did nothing. Tried several times on both pin 0 (18) and 1 (19) without any luck.

Hope someone can help.

Thanks
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hi all,

Hoping this is the right place to post a question. I just downloaded the reef-pi UI and was going though the initial testing. the outlet test worked fine but when I moved on to the dimming test I had this error message when I was setting up the "TestJack":

{"error":"Failed to update. Error: open /sys/class/pwm/pwmchip0/export: no such file or directory"} | HTTP 500

I went ahead and created a light and associate the jack with it but there was no way to "update" and the led did nothing. Tried several times on both pin 0 (18) and 1 (19) without any luck.

Hope someone can help.

Thanks
.
did you add the pwm setting for dtoverlay in /boot/config.txt ? https://learn.adafruit.com/reef-pi-installation-and-configuration/raspberry-pi-configuration . You have to reboot after this,
 
Back
Top