edit: forehead-slaps-himself... this is on master 2021-02-27ish ( around 21.02 fork time )
has anyone else seen several ( over 7 ) sqm_collectd.sh process spawning? ( i.e. these will accumulate over several days perhaps from procd / or manual luci_stats restarts )
i've seen a report or two around the traps and wanted to collect broader input before I dig into this further... ( as it could be due to something on my end )
Opposing experiences also welcome ( 'sqm collectd on master and have never seen this' )
Or if you know what triggers the periodic collectd(luci_stats?) [restart||reload]?
this appears to be related to stopping / starting collectd ( which I do automatically every few hours to create a copy of /tmp/rrd ) in case of power loss...
so the question then morphs into;
what is the correct order to stop / start luci_statistics / collectd?
is stopping / starting both of them necessary to copy /tmp/rrd?
issue now in packages repo so, well let that take precedence...
opened 09:09PM - 22 Dec 20 UTC
Maintainer: Jo-Philipp Wich <jo@mein.io>, Hannu Nyman <hannu.nyman@iki.fi>
Envi… ronment: Openwrt 19.07
Description:
After a long uptime, I notice there are multiple instance of the sqm_collectd.sh script running. All duplicated instances are orphans.
My exec module configuration
```
LoadPlugin exec
<Plugin exec>
Exec "nobody:nogroup" "/usr/libexec/collectd/sqm_collectd.sh" "pppoe-wan" "ifb4pppoe-wan"
</Plugin>
```
the top output shows the duplicated instances
```
PID PPID USER STAT VSZ %VSZ %CPU COMMAND
15253 1 nobody SN 1260 1% 4% /bin/sh /usr/libexec/collectd/sqm_collectd.sh pppoe-wan ifb4pppoe-wan
9008 1 root S 3844 3% 1% /usr/sbin/snmpd -Lf /dev/null -f
4836 1 root S 1784 1% 1% /usr/sbin/hostapd -s -P /var/run/wifi-phy0.pid -B /var/run/hostapd-phy0.con
17655 17438 root R 1208 1% 0% top
17437 2004 root S 1144 1% 0% /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p x.x.x.x:22 -p 2001:4
397 2 root RW 0 0% 0% [kworker/0:3]
7 2 root SW 0 0% 0% [ksoftirqd/0]
16927 2 root IW 0 0% 0% [kworker/u2:0]
17582 2 root IW 0 0% 0% [kworker/u2:2]
17619 1 root SN 7228 6% 0% /usr/sbin/collectd -C /tmp/collectd.conf -f
1968 1 root S 4464 4% 0% /usr/sbin/openvpn --syslog openvpn(myvpn) --status /var/run/openvpn.myvpn.s
980 1 root S 2204 2% 0% /sbin/rpcd
4487 1 root S 1760 1% 0% /usr/sbin/hostapd -s -P /var/run/wifi-phy1.pid -B /var/run/hostapd-phy1.con
1260 1 root S 1744 1% 0% /sbin/netifd
1 0 root S 1564 1% 0% /sbin/procd
1291 1 root S 1444 1% 0% /usr/sbin/odhcpd
8142 1 root S 1436 1% 0% /bin/sh /usr/lib/ddns/dynamic_dns_updater.sh -v 0 -S ovh -- start
5085 1 dnsmasq S 1372 1% 0% /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg01411c -k -x /var/run/dnsmasq
1643 1 root S 1360 1% 0% /usr/sbin/uhttpd -f -h /www -r Lede -x /cgi-bin -t 60 -T 30 -k 20 -A 1 -n 3
23440 1 nobody SN 1264 1% 0% /bin/sh /usr/libexec/collectd/sqm_collectd.sh pppoe-wan ifb4pppoe-wan
9768 1 nobody SN 1264 1% 0% /bin/sh /usr/libexec/collectd/sqm_collectd.sh pppoe-wan ifb4pppoe-wan
23127 1 nobody SN 1264 1% 0% /bin/sh /usr/libexec/collectd/sqm_collectd.sh pppoe-wan ifb4pppoe-wan
19354 1 nobody SN 1264 1% 0% /bin/sh /usr/libexec/collectd/sqm_collectd.sh pppoe-wan ifb4pppoe-wan
28074 1 nobody SN 1264 1% 0% /bin/sh /usr/libexec/collectd/sqm_collectd.sh pppoe-wan ifb4pppoe-wan
17649 17619 nobody SN 1260 1% 0% /bin/sh /usr/libexec/collectd/sqm_collectd.sh pppoe-wan ifb4pppoe-wan
509 1 root S 1252 1% 0% /sbin/ubusd
948 1 root S 1244 1% 0% /sbin/logd -S 64
7406 1260 root S 1232 1% 0% /usr/sbin/pppd nodetach ipparam wan ifname pppoe-wan lcp-echo-interval 5 lc
1323 1 root S 1212 1% 0% /usr/sbin/crond -f -c /etc/crontabs -l 5
2195 1 root S< 1212 1% 0% /usr/sbin/ntpd -n -N -l -S /usr/sbin/ntpd-hotplug -p 0.fr.pool.ntp.org -p 1
17438 17437 root S 1212 1% 0% -ash
17561 8142 root S 1212 1% 0% sleep 600
17566 9768 nobody SN 1208 1% 0% sleep 60
17580 1 nobody SN 1208 1% 0% sleep 60
17581 28074 nobody SN 1208 1% 0% sleep 60
17587 19354 nobody SN 1208 1% 0% sleep 60
17479 23440 nobody SN 1208 1% 0% sleep 60
17654 17649 nobody SN 1208 1% 0% sleep 60
17660 15253 nobody SN 1208 1% 0% sleep 60
17571 23127 nobody SN 1208 1% 0% sleep 60
```
A possible workaround could be to break the forever loop after xx iterations.
```
i=100
while true ; do
for ifc in "$@" ; do
process_qdisc "$ifc"
done
sleep "${INTERVAL%%.*}"
i=`expr $i - 1`
[ $i -eq 0 ] && break
done
```
system
Closed
September 30, 2021, 1:55am
4
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.