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

Rip Van Winkle

Active Member
View Badges
Joined
Apr 17, 2017
Messages
304
Reaction score
224
Location
Philippines
Rating - 0%
0   0   0
@Ranjib
Haven't been keeping up, so I haven't read all the pages for this thread. Not sure if you've seen this before or not but in case you haven't I posted here.

Peristaltic Pump DIY

Adding this in case you want to pursue:

Quad Doser With Improved Design
https://www.thingiverse.com/thing:1134817

He's dosing to his tank. Nice.
 
Last edited:
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

So now that the main 3 modules are done, I started setting up reef-pi to my likings.

With the lighting profile. I thought there was one hour increments instead of 2 hours? Has it always been 2 hour increments? Is there way to change that? Not complaining just wondering.
It has always been 2 hrs interval. I intend to make it customizable in 3.0
 

Jonathan Troutt

Well-Known Member
View Badges
Joined
Apr 1, 2018
Messages
970
Reaction score
1,173
Location
Indianapolis, IN
Rating - 0%
0   0   0
It has always been 2 hrs interval. I intend to make it customizable in 3.0

Ok I must have been thinking about something else. Not a big deal though. You sir and the others who have programmed reef-pi have done an amazing job! Thank you for all your hard work!
 

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
@Ranjib I'm still working on diagnosing the high CPU and RAM on the latest install.
upload_2018-12-23_10-38-8.png

The big drop in the middle of the historic was from a restart. Then it looks like it was happy for a few days. I cant think of anything right now that caused it to start increasing a few days ago.
Looking at the journal, I think it was still unhappy setting 0 for all of the configured GPIO pins (all 16 from the PCA9685).
Would it be possible to have a disable button on the lighting tab, as there is for the timers, temp, etc...?

I removed most of the PWM pins and went to reload and I get this message in the journal.
I am holding off rebooting to see if you wanted me to test anything.

Code:
Dec 23 10:36:15 raspberrypi reef-pi[2888]: 2018/12/23 10:36:15 ERROR: Failed to reload reef-pi. Output:. Error: fork/exec /bin/systemctl: cannot allocate memory
Dec 23 10:36:15 raspberrypi reef-pi[2888]: 2018/12/23 10:36:15 ERROR: GET /api/admin/reload Failed to reload reef-pi. Output:. Error: fork/exec /bin/systemctl: cannot allocate memory
 
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'm still working on diagnosing the high CPU and RAM on the latest install.
upload_2018-12-23_10-38-8.png

The big drop in the middle of the historic was from a restart. Then it looks like it was happy for a few days. I cant think of anything right now that caused it to start increasing a few days ago.
Looking at the journal, I think it was still unhappy setting 0 for all of the configured GPIO pins (all 16 from the PCA9685).
Would it be possible to have a disable button on the lighting tab, as there is for the timers, temp, etc...?

I removed most of the PWM pins and went to reload and I get this message in the journal.
I am holding off rebooting to see if you wanted me to test anything.

Code:
Dec 23 10:36:15 raspberrypi reef-pi[2888]: 2018/12/23 10:36:15 ERROR: Failed to reload reef-pi. Output:. Error: fork/exec /bin/systemctl: cannot allocate memory
Dec 23 10:36:15 raspberrypi reef-pi[2888]: 2018/12/23 10:36:15 ERROR: GET /api/admin/reload Failed to reload reef-pi. Output:. Error: fork/exec /bin/systemctl: cannot allocate memory
thats does not look good. Whats the output of
Code:
ps aux
 

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
reef-pi has been bouncing up and down in CPU usage in top as well
Code:
pi@raspberrypi:~ $ ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  1.2  27040  5628 ?        Ss   Dec18   0:17 /sbin/init
root         2  0.0  0.0      0     0 ?        S    Dec18   0:00 [kthreadd]
root         4  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/0:0H]
root         6  0.0  0.0      0     0 ?        I<   Dec18   0:00 [mm_percpu_wq]
root         7  0.0  0.0      0     0 ?        S    Dec18   2:17 [ksoftirqd/0]
root         8  0.0  0.0      0     0 ?        S    Dec18   0:00 [kdevtmpfs]
root         9  0.0  0.0      0     0 ?        I<   Dec18   0:00 [netns]
root        11  0.0  0.0      0     0 ?        S    Dec18   0:00 [khungtaskd]
root        12  0.0  0.0      0     0 ?        S    Dec18   0:00 [oom_reaper]
root        13  0.0  0.0      0     0 ?        I<   Dec18   0:00 [writeback]
root        14  0.0  0.0      0     0 ?        S    Dec18   0:00 [kcompactd0]
root        15  0.0  0.0      0     0 ?        I<   Dec18   0:00 [crypto]
root        16  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kblockd]
root        17  0.0  0.0      0     0 ?        I<   Dec18   0:00 [watchdogd]
root        18  0.0  0.0      0     0 ?        I<   Dec18   0:00 [rpciod]
root        19  0.0  0.0      0     0 ?        I<   Dec18   0:00 [xprtiod]
root        22  0.0  0.0      0     0 ?        S    Dec18   0:00 [kswapd0]
root        23  0.0  0.0      0     0 ?        I<   Dec18   0:00 [nfsiod]
root        33  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kthrotld]
root        34  0.0  0.0      0     0 ?        I<   Dec18   0:00 [iscsi_eh]
root        35  0.0  0.0      0     0 ?        I<   Dec18   0:00 [dwc_otg]
root        36  0.0  0.0      0     0 ?        I<   Dec18   0:00 [DWC Notificatio]
root        37  0.0  0.0      0     0 ?        S<   Dec18   0:00 [vchiq-slot/0]
root        38  0.0  0.0      0     0 ?        S<   Dec18   0:00 [vchiq-recy/0]
root        39  0.0  0.0      0     0 ?        S<   Dec18   0:00 [vchiq-sync/0]
root        40  0.0  0.0      0     0 ?        S    Dec18   0:00 [vchiq-keep/0]
root        41  0.0  0.0      0     0 ?        S<   Dec18   0:00 [SMIO]
root        42  0.0  0.0      0     0 ?        S    Dec18   6:02 [irq/86-mmc1]
root        45  0.0  0.0      0     0 ?        S    Dec18   0:32 [mmcqd/0]
root        46  0.0  0.0      0     0 ?        S    Dec18   0:08 [jbd2/mmcblk0p2-]
root        47  0.0  0.0      0     0 ?        I<   Dec18   0:00 [ext4-rsv-conver]
root        48  0.0  0.0      0     0 ?        I<   Dec18   0:00 [ipv6_addrconf]
root        84  0.3  1.5  28776  6860 ?        Ss   Dec18  24:22 /lib/systemd/systemd-journald
root       101  0.0  0.5  14324  2564 ?        Ss   Dec18   0:02 /lib/systemd/systemd-udevd
root       128  0.3  0.0      0     0 ?        S    Dec18  24:36 [w1_bus_master1]
root       137  0.0  0.0      0     0 ?        S    Dec18   0:00 [spi0]
root       153  0.0  0.0      0     0 ?        I<   Dec18   0:00 [cfg80211]
root       160  0.0  0.0      0     0 ?        I<   Dec18   0:00 [brcmf_wq/mmc1:0]
root       161  0.0  0.0      0     0 ?        S    Dec18   1:32 [brcmf_wdog/mmc1]
systemd+   186  0.0  0.8  17260  3700 ?        Ssl  Dec18   0:02 /lib/systemd/systemd-timesyncd
root       209  0.0  0.5   5288  2280 ?        Ss   Dec18   0:02 /usr/sbin/cron -f
root       210  0.0  0.6  22848  2932 ?        Ssl  Dec18   4:42 /usr/sbin/rsyslogd -n
nobody     216  0.0  0.4   5284  2216 ?        Ss   Dec18   0:08 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket
avahi      233  0.0  0.6   6500  3012 ?        Ss   Dec18   0:27 avahi-daemon: running [raspberrypi.local]
message+   235  0.0  0.7   6496  3160 ?        Ss   Dec18   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd
root       244  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/0:1H]
avahi      252  0.0  0.3   6384  1376 ?        S    Dec18   0:00 avahi-daemon: chroot helper
root       255  0.0  0.9   7400  4016 ?        Ss   Dec18   0:02 /lib/systemd/systemd-logind
root       387  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/u3:0]
root       388  0.0  0.1   2080   552 ?        S    Dec18   0:00 /usr/bin/hciattach /dev/serial1 bcm43xx 3000000 flow - b8:27:eb:77:da:a4
root       390  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/u3:2]
root       393  0.0  0.8   7064  3620 ?        Ss   Dec18   0:00 /usr/lib/bluetooth/bluetoothd
root       407  0.0  0.8  10124  3588 ?        Ss   Dec18   0:12 wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,w
root       468  0.0  0.3   2868  1416 ?        Ss   Dec18   0:02 /sbin/dhcpcd -q -w
root       483  0.0  1.0  10188  4836 ?        Ss   Dec18   0:00 /usr/sbin/sshd -D
root       484  0.0  0.4   3956  1808 ttyS0    Ss+  Dec18   0:00 /sbin/agetty --keep-baud 115200,38400,9600 ttyS0 vt220
root       485  0.0  0.3   4180  1488 tty1     Ss+  Dec18   0:00 /sbin/agetty --noclear tty1 linux
root      2888  5.8 57.4 802356 254928 ?       Ssl  Dec20 298:16 /usr/bin/reef-pi daemon -config /etc/reef-pi/config.yml
root      6841  0.0  0.0      0     0 ?        I    02:46   0:02 [kworker/u2:1]
root      6876  0.0  0.0      0     0 ?        I    04:00   0:00 [kworker/0:0]
root      6943  0.0  0.0      0     0 ?        I    05:25   0:00 [kworker/u2:0]
root      7176  0.0  0.0      0     0 ?        I    06:43   0:00 [kworker/0:2]
root      7177  0.0  0.0      0     0 ?        I    06:50   0:00 [kworker/0:1]
root      7178  0.6  0.0      0     0 ?        I    06:51   0:00 [kworker/u2:2]
root      7179  1.8  1.2  11508  5656 ?        Ss   06:52   0:00 sshd: pi [priv]
pi        7184  1.1  1.3   9652  5796 ?        Ss   06:53   0:00 /lib/systemd/systemd --user
pi        7187  0.0  0.5  28704  2620 ?        S    06:53   0:00 (sd-pam)
pi        7194  0.0  0.9  11508  4140 ?        S    06:53   0:00 sshd: pi@pts/0
pi        7197  3.1  0.8   5824  3792 pts/0    Ss+  06:53   0:00 -bash
root      7212  4.0  1.2  11508  5688 ?        Ss   06:53   0:00 sshd: pi [priv]
pi        7222  1.7  0.9  11508  4124 ?        S    06:53   0:00 sshd: pi@pts/1
pi        7225 14.7  0.8   5824  3792 pts/1    Ss   06:53   0:00 -bash
pi        7240  0.0  0.6   7728  2960 pts/1    R+   06:53   0:00 ps aux

CPU spikes are better and RAM usage has stopped growing, since I deleted all of the other PCA9685 pins
upload_2018-12-24_6-59-24.png
 

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
2,223
Reaction score
3,632
Location
Sacramento, CA area
Rating - 0%
0   0   0
reef-pi has been bouncing up and down in CPU usage in top as well
Code:
pi@raspberrypi:~ $ ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  1.2  27040  5628 ?        Ss   Dec18   0:17 /sbin/init
root         2  0.0  0.0      0     0 ?        S    Dec18   0:00 [kthreadd]
root         4  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/0:0H]
root         6  0.0  0.0      0     0 ?        I<   Dec18   0:00 [mm_percpu_wq]
root         7  0.0  0.0      0     0 ?        S    Dec18   2:17 [ksoftirqd/0]
root         8  0.0  0.0      0     0 ?        S    Dec18   0:00 [kdevtmpfs]
root         9  0.0  0.0      0     0 ?        I<   Dec18   0:00 [netns]
root        11  0.0  0.0      0     0 ?        S    Dec18   0:00 [khungtaskd]
root        12  0.0  0.0      0     0 ?        S    Dec18   0:00 [oom_reaper]
root        13  0.0  0.0      0     0 ?        I<   Dec18   0:00 [writeback]
root        14  0.0  0.0      0     0 ?        S    Dec18   0:00 [kcompactd0]
root        15  0.0  0.0      0     0 ?        I<   Dec18   0:00 [crypto]
root        16  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kblockd]
root        17  0.0  0.0      0     0 ?        I<   Dec18   0:00 [watchdogd]
root        18  0.0  0.0      0     0 ?        I<   Dec18   0:00 [rpciod]
root        19  0.0  0.0      0     0 ?        I<   Dec18   0:00 [xprtiod]
root        22  0.0  0.0      0     0 ?        S    Dec18   0:00 [kswapd0]
root        23  0.0  0.0      0     0 ?        I<   Dec18   0:00 [nfsiod]
root        33  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kthrotld]
root        34  0.0  0.0      0     0 ?        I<   Dec18   0:00 [iscsi_eh]
root        35  0.0  0.0      0     0 ?        I<   Dec18   0:00 [dwc_otg]
root        36  0.0  0.0      0     0 ?        I<   Dec18   0:00 [DWC Notificatio]
root        37  0.0  0.0      0     0 ?        S<   Dec18   0:00 [vchiq-slot/0]
root        38  0.0  0.0      0     0 ?        S<   Dec18   0:00 [vchiq-recy/0]
root        39  0.0  0.0      0     0 ?        S<   Dec18   0:00 [vchiq-sync/0]
root        40  0.0  0.0      0     0 ?        S    Dec18   0:00 [vchiq-keep/0]
root        41  0.0  0.0      0     0 ?        S<   Dec18   0:00 [SMIO]
root        42  0.0  0.0      0     0 ?        S    Dec18   6:02 [irq/86-mmc1]
root        45  0.0  0.0      0     0 ?        S    Dec18   0:32 [mmcqd/0]
root        46  0.0  0.0      0     0 ?        S    Dec18   0:08 [jbd2/mmcblk0p2-]
root        47  0.0  0.0      0     0 ?        I<   Dec18   0:00 [ext4-rsv-conver]
root        48  0.0  0.0      0     0 ?        I<   Dec18   0:00 [ipv6_addrconf]
root        84  0.3  1.5  28776  6860 ?        Ss   Dec18  24:22 /lib/systemd/systemd-journald
root       101  0.0  0.5  14324  2564 ?        Ss   Dec18   0:02 /lib/systemd/systemd-udevd
root       128  0.3  0.0      0     0 ?        S    Dec18  24:36 [w1_bus_master1]
root       137  0.0  0.0      0     0 ?        S    Dec18   0:00 [spi0]
root       153  0.0  0.0      0     0 ?        I<   Dec18   0:00 [cfg80211]
root       160  0.0  0.0      0     0 ?        I<   Dec18   0:00 [brcmf_wq/mmc1:0]
root       161  0.0  0.0      0     0 ?        S    Dec18   1:32 [brcmf_wdog/mmc1]
systemd+   186  0.0  0.8  17260  3700 ?        Ssl  Dec18   0:02 /lib/systemd/systemd-timesyncd
root       209  0.0  0.5   5288  2280 ?        Ss   Dec18   0:02 /usr/sbin/cron -f
root       210  0.0  0.6  22848  2932 ?        Ssl  Dec18   4:42 /usr/sbin/rsyslogd -n
nobody     216  0.0  0.4   5284  2216 ?        Ss   Dec18   0:08 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket
avahi      233  0.0  0.6   6500  3012 ?        Ss   Dec18   0:27 avahi-daemon: running [raspberrypi.local]
message+   235  0.0  0.7   6496  3160 ?        Ss   Dec18   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd
root       244  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/0:1H]
avahi      252  0.0  0.3   6384  1376 ?        S    Dec18   0:00 avahi-daemon: chroot helper
root       255  0.0  0.9   7400  4016 ?        Ss   Dec18   0:02 /lib/systemd/systemd-logind
root       387  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/u3:0]
root       388  0.0  0.1   2080   552 ?        S    Dec18   0:00 /usr/bin/hciattach /dev/serial1 bcm43xx 3000000 flow - b8:27:eb:77:da:a4
root       390  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/u3:2]
root       393  0.0  0.8   7064  3620 ?        Ss   Dec18   0:00 /usr/lib/bluetooth/bluetoothd
root       407  0.0  0.8  10124  3588 ?        Ss   Dec18   0:12 wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,w
root       468  0.0  0.3   2868  1416 ?        Ss   Dec18   0:02 /sbin/dhcpcd -q -w
root       483  0.0  1.0  10188  4836 ?        Ss   Dec18   0:00 /usr/sbin/sshd -D
root       484  0.0  0.4   3956  1808 ttyS0    Ss+  Dec18   0:00 /sbin/agetty --keep-baud 115200,38400,9600 ttyS0 vt220
root       485  0.0  0.3   4180  1488 tty1     Ss+  Dec18   0:00 /sbin/agetty --noclear tty1 linux
root      2888  5.8 57.4 802356 254928 ?       Ssl  Dec20 298:16 /usr/bin/reef-pi daemon -config /etc/reef-pi/config.yml
root      6841  0.0  0.0      0     0 ?        I    02:46   0:02 [kworker/u2:1]
root      6876  0.0  0.0      0     0 ?        I    04:00   0:00 [kworker/0:0]
root      6943  0.0  0.0      0     0 ?        I    05:25   0:00 [kworker/u2:0]
root      7176  0.0  0.0      0     0 ?        I    06:43   0:00 [kworker/0:2]
root      7177  0.0  0.0      0     0 ?        I    06:50   0:00 [kworker/0:1]
root      7178  0.6  0.0      0     0 ?        I    06:51   0:00 [kworker/u2:2]
root      7179  1.8  1.2  11508  5656 ?        Ss   06:52   0:00 sshd: pi [priv]
pi        7184  1.1  1.3   9652  5796 ?        Ss   06:53   0:00 /lib/systemd/systemd --user
pi        7187  0.0  0.5  28704  2620 ?        S    06:53   0:00 (sd-pam)
pi        7194  0.0  0.9  11508  4140 ?        S    06:53   0:00 sshd: pi@pts/0
pi        7197  3.1  0.8   5824  3792 pts/0    Ss+  06:53   0:00 -bash
root      7212  4.0  1.2  11508  5688 ?        Ss   06:53   0:00 sshd: pi [priv]
pi        7222  1.7  0.9  11508  4124 ?        S    06:53   0:00 sshd: pi@pts/1
pi        7225 14.7  0.8   5824  3792 pts/1    Ss   06:53   0:00 -bash
pi        7240  0.0  0.6   7728  2960 pts/1    R+   06:53   0:00 ps aux

CPU spikes are better and RAM usage has stopped growing, since I deleted all of the other PCA9685 pins
upload_2018-12-24_6-59-24.png

I suspect leaking Go routines here. Need to look at the code some.
 

NewbyREEF

Active Member
View Badges
Joined
Dec 21, 2018
Messages
136
Reaction score
102
Location
Springfield
Rating - 0%
0   0   0
The one in the above image is the very first version of the controller. Its using a wooden handmade housing (Im really bad at wood works), it powers one of my pico (fluval spec III). Here are some details:
- Main controller board: raspberry pi 2
- 8 channel sain smart relay, two of them are connected to two perstaltic pumps (mounted at right side of the housing), they are used of dosing/ATO
- There are 6 110V AC outlet mounted at the bottom. Return, powerhead (coralia pico evolution), stock LED, heater all are connected to the AC sockets.
- In the front, it has a 7" LCD screen (from Adafruit), can be switch on/off using the controller UI.

Below is the image of internals of the housing, Note: I have gutted a 6 port extension to repurpose its surge protection electronics. It also had two 5V 1 A USB outlets, which i use to power the raspberry Pi as well as the display. The ancillary breadboard on front panel hosts a MCP3008 and an L293D IC for sensor and high voltage PWM controls
20170101_161629.jpg
do
20170101_161633.jpg
Do you see any reason I can't just use my rpie2 and the 8 channel referenced to run my pumps, heater, and lighting?
 
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
reef-pi has been bouncing up and down in CPU usage in top as well
Code:
pi@raspberrypi:~ $ ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  1.2  27040  5628 ?        Ss   Dec18   0:17 /sbin/init
root         2  0.0  0.0      0     0 ?        S    Dec18   0:00 [kthreadd]
root         4  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/0:0H]
root         6  0.0  0.0      0     0 ?        I<   Dec18   0:00 [mm_percpu_wq]
root         7  0.0  0.0      0     0 ?        S    Dec18   2:17 [ksoftirqd/0]
root         8  0.0  0.0      0     0 ?        S    Dec18   0:00 [kdevtmpfs]
root         9  0.0  0.0      0     0 ?        I<   Dec18   0:00 [netns]
root        11  0.0  0.0      0     0 ?        S    Dec18   0:00 [khungtaskd]
root        12  0.0  0.0      0     0 ?        S    Dec18   0:00 [oom_reaper]
root        13  0.0  0.0      0     0 ?        I<   Dec18   0:00 [writeback]
root        14  0.0  0.0      0     0 ?        S    Dec18   0:00 [kcompactd0]
root        15  0.0  0.0      0     0 ?        I<   Dec18   0:00 [crypto]
root        16  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kblockd]
root        17  0.0  0.0      0     0 ?        I<   Dec18   0:00 [watchdogd]
root        18  0.0  0.0      0     0 ?        I<   Dec18   0:00 [rpciod]
root        19  0.0  0.0      0     0 ?        I<   Dec18   0:00 [xprtiod]
root        22  0.0  0.0      0     0 ?        S    Dec18   0:00 [kswapd0]
root        23  0.0  0.0      0     0 ?        I<   Dec18   0:00 [nfsiod]
root        33  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kthrotld]
root        34  0.0  0.0      0     0 ?        I<   Dec18   0:00 [iscsi_eh]
root        35  0.0  0.0      0     0 ?        I<   Dec18   0:00 [dwc_otg]
root        36  0.0  0.0      0     0 ?        I<   Dec18   0:00 [DWC Notificatio]
root        37  0.0  0.0      0     0 ?        S<   Dec18   0:00 [vchiq-slot/0]
root        38  0.0  0.0      0     0 ?        S<   Dec18   0:00 [vchiq-recy/0]
root        39  0.0  0.0      0     0 ?        S<   Dec18   0:00 [vchiq-sync/0]
root        40  0.0  0.0      0     0 ?        S    Dec18   0:00 [vchiq-keep/0]
root        41  0.0  0.0      0     0 ?        S<   Dec18   0:00 [SMIO]
root        42  0.0  0.0      0     0 ?        S    Dec18   6:02 [irq/86-mmc1]
root        45  0.0  0.0      0     0 ?        S    Dec18   0:32 [mmcqd/0]
root        46  0.0  0.0      0     0 ?        S    Dec18   0:08 [jbd2/mmcblk0p2-]
root        47  0.0  0.0      0     0 ?        I<   Dec18   0:00 [ext4-rsv-conver]
root        48  0.0  0.0      0     0 ?        I<   Dec18   0:00 [ipv6_addrconf]
root        84  0.3  1.5  28776  6860 ?        Ss   Dec18  24:22 /lib/systemd/systemd-journald
root       101  0.0  0.5  14324  2564 ?        Ss   Dec18   0:02 /lib/systemd/systemd-udevd
root       128  0.3  0.0      0     0 ?        S    Dec18  24:36 [w1_bus_master1]
root       137  0.0  0.0      0     0 ?        S    Dec18   0:00 [spi0]
root       153  0.0  0.0      0     0 ?        I<   Dec18   0:00 [cfg80211]
root       160  0.0  0.0      0     0 ?        I<   Dec18   0:00 [brcmf_wq/mmc1:0]
root       161  0.0  0.0      0     0 ?        S    Dec18   1:32 [brcmf_wdog/mmc1]
systemd+   186  0.0  0.8  17260  3700 ?        Ssl  Dec18   0:02 /lib/systemd/systemd-timesyncd
root       209  0.0  0.5   5288  2280 ?        Ss   Dec18   0:02 /usr/sbin/cron -f
root       210  0.0  0.6  22848  2932 ?        Ssl  Dec18   4:42 /usr/sbin/rsyslogd -n
nobody     216  0.0  0.4   5284  2216 ?        Ss   Dec18   0:08 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket
avahi      233  0.0  0.6   6500  3012 ?        Ss   Dec18   0:27 avahi-daemon: running [raspberrypi.local]
message+   235  0.0  0.7   6496  3160 ?        Ss   Dec18   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd
root       244  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/0:1H]
avahi      252  0.0  0.3   6384  1376 ?        S    Dec18   0:00 avahi-daemon: chroot helper
root       255  0.0  0.9   7400  4016 ?        Ss   Dec18   0:02 /lib/systemd/systemd-logind
root       387  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/u3:0]
root       388  0.0  0.1   2080   552 ?        S    Dec18   0:00 /usr/bin/hciattach /dev/serial1 bcm43xx 3000000 flow - b8:27:eb:77:da:a4
root       390  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/u3:2]
root       393  0.0  0.8   7064  3620 ?        Ss   Dec18   0:00 /usr/lib/bluetooth/bluetoothd
root       407  0.0  0.8  10124  3588 ?        Ss   Dec18   0:12 wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,w
root       468  0.0  0.3   2868  1416 ?        Ss   Dec18   0:02 /sbin/dhcpcd -q -w
root       483  0.0  1.0  10188  4836 ?        Ss   Dec18   0:00 /usr/sbin/sshd -D
root       484  0.0  0.4   3956  1808 ttyS0    Ss+  Dec18   0:00 /sbin/agetty --keep-baud 115200,38400,9600 ttyS0 vt220
root       485  0.0  0.3   4180  1488 tty1     Ss+  Dec18   0:00 /sbin/agetty --noclear tty1 linux
root      2888  5.8 57.4 802356 254928 ?       Ssl  Dec20 298:16 /usr/bin/reef-pi daemon -config /etc/reef-pi/config.yml
root      6841  0.0  0.0      0     0 ?        I    02:46   0:02 [kworker/u2:1]
root      6876  0.0  0.0      0     0 ?        I    04:00   0:00 [kworker/0:0]
root      6943  0.0  0.0      0     0 ?        I    05:25   0:00 [kworker/u2:0]
root      7176  0.0  0.0      0     0 ?        I    06:43   0:00 [kworker/0:2]
root      7177  0.0  0.0      0     0 ?        I    06:50   0:00 [kworker/0:1]
root      7178  0.6  0.0      0     0 ?        I    06:51   0:00 [kworker/u2:2]
root      7179  1.8  1.2  11508  5656 ?        Ss   06:52   0:00 sshd: pi [priv]
pi        7184  1.1  1.3   9652  5796 ?        Ss   06:53   0:00 /lib/systemd/systemd --user
pi        7187  0.0  0.5  28704  2620 ?        S    06:53   0:00 (sd-pam)
pi        7194  0.0  0.9  11508  4140 ?        S    06:53   0:00 sshd: pi@pts/0
pi        7197  3.1  0.8   5824  3792 pts/0    Ss+  06:53   0:00 -bash
root      7212  4.0  1.2  11508  5688 ?        Ss   06:53   0:00 sshd: pi [priv]
pi        7222  1.7  0.9  11508  4124 ?        S    06:53   0:00 sshd: pi@pts/1
pi        7225 14.7  0.8   5824  3792 pts/1    Ss   06:53   0:00 -bash
pi        7240  0.0  0.6   7728  2960 pts/1    R+   06:53   0:00 ps aux

CPU spikes are better and RAM usage has stopped growing, since I deleted all of the other PCA9685 pins
upload_2018-12-24_6-59-24.png
This is with pi 3 or pi zero ? I am assuming you are running headless. I'll try to reproduce this, soon i get some time to work on the code side. It will be very helpful to know your reef-pi setup, if you have a build thread, i'll dig it up, else just share some summary information here. It looks like a memory leak , but I am not sure.
 
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

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
This is with pi 3 or pi zero ? I am assuming you are running headless. I'll try to reproduce this, soon i get some time to work on the code side. It will be very helpful to know your reef-pi setup, if you have a build thread, i'll dig it up, else just share some summary information here. It looks like a memory leak , but I am not sure.
Pi zero running headless, using an Adafruit Motor Hat and running the custom version 2.0-2-gae06032 to allow addressable PCA9685.
I dont have a build thread, though I probably should have started one along the way.
Thanks for the help, let me know if you need any specs or any testing on my end.
 
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
Been very busy with apartment move. Its almost over now :) . Its amazing how many things we had. Having a kid adds a lot of extra things.
I am thinking of cutting a minor release (2.1) with the doser calibration fix and configurable pca9685. Theres a big hal refactor going on which is important to streamline the support for all new drivers (ph/orp board, baseboard, daughter board etc)
 
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
Had to flatten the bottom and take some space in the corners to make both boards fit and flush with the sides.
20181226_121840.jpeg
20181226_121843.jpeg
These corners give me headaches as well. This is one of the reason why I think 3d printed enclosures will be very useful. But they are very well built, and I love the clear top, it lets me see all the inidicator LEDs :)
 

sfgabe

Active Member
View Badges
Joined
Sep 7, 2018
Messages
172
Reaction score
264
Rating - 0%
0   0   0
Any idea what would cause an occasional spike in CPU load like this? It looks like it goes up (sometimes very high) over about 10 min and then down again shortly after. This is in the course of an otherwise normal day. This was actually a day when I was out of town so it was really on autopilot without me there to poke at it.

Also, is it a problem? I'm happy to ignore it if it's a random occurrence.

upload_2018-12-26_12-54-15.png
 

HAVE YOU EVER KEPT A RARE/UNCOMMON FISH, CORAL, OR INVERT? SHOW IT OFF IN THE THREAD!

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top