[OpenSIPS-Users] pkmem statistics for version 3.1
Federico Edorna
fedorna at anura.com.ar
Fri May 28 12:23:27 EST 2021
Ok, thanks Bogdan!
On Fri, May 28, 2021 at 2:59 AM Bogdan-Andrei Iancu <bogdan at opensips.org>
wrote:
> Hi Federico,
>
> Starting 3.0, the way we fetch the pkg stats from all the procs did
> change, from the unreliable and problem maker mechanism based on SIGUSR1,
> to using the internal IPC support. Unfortunately the extra MI procs have no
> IPC support, but this was fixed in 3.2.
>
> Best regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
> https://www.opensips-solutions.com
> OpenSIPS Bootcamp 2021 online
> https://opensips.org/training/OpenSIPS_eBootcamp_2021/
>
> On 4/30/21 7:34 PM, Federico Edorna wrote:
>
> Hello! moving from 2.4 to 3.1 I've found something strange in pkmem stats.
> MI is showing zero values for the first 7 processes
>
>
> *opensips-cli -x mi get_statistics pkmem: -o output_type=lines *pkmem:1-used_size:
> 0
> pkmem:1-real_used_size: 0
> pkmem:1-max_used_size: 0
> pkmem:1-free_size: 0
> pkmem:1-fragments: 0
> pkmem:2-used_size: 0
> pkmem:2-real_used_size: 0
> pkmem:2-max_used_size: 0
> pkmem:2-free_size: 0
> pkmem:2-fragments: 0
> pkmem:3-used_size: 0
> pkmem:3-real_used_size: 0
> pkmem:3-max_used_size: 0
> pkmem:3-free_size: 0
> pkmem:3-fragments: 0
> pkmem:4-used_size: 0
> pkmem:4-real_used_size: 0
> pkmem:4-max_used_size: 0
> pkmem:4-free_size: 0
> pkmem:4-fragments: 0
> pkmem:5-used_size: 0
> pkmem:5-real_used_size: 0
> pkmem:5-max_used_size: 0
> pkmem:5-free_size: 0
> pkmem:5-fragments: 0
> pkmem:6-used_size: 0
> pkmem:6-real_used_size: 0
> pkmem:6-max_used_size: 0
> pkmem:6-free_size: 0
> pkmem:6-fragments: 0
> pkmem:7-used_size: 0
> pkmem:7-real_used_size: 0
> pkmem:7-max_used_size: 0
> pkmem:7-free_size: 0
> pkmem:7-fragments: 0
> pkmem:8-used_size: 3167224
> pkmem:8-real_used_size: 3387464
> pkmem:8-max_used_size: 3396024
> pkmem:8-free_size: 13389752
> pkmem:8-fragments: 3561
> pkmem:9-used_size: 3164712
> pkmem:9-real_used_size: 3385048
> pkmem:9-max_used_size: 3393616
> pkmem:9-free_size: 13392168
> pkmem:9-fragments: 3559
> pkmem:10-used_size: 3164736
> pkmem:10-real_used_size: 3385360
> pkmem:10-max_used_size: 3393904
> pkmem:10-free_size: 13391856
> pkmem:10-fragments: 3559
> pkmem:11-used_size: 3164688
> pkmem:11-real_used_size: 3385840
> pkmem:11-max_used_size: 3394384
> pkmem:11-free_size: 13391376
> pkmem:11-fragments: 3558
> pkmem:12-used_size: 3163936
> pkmem:12-real_used_size: 3379712
> pkmem:12-max_used_size: 3379896
> pkmem:12-free_size: 13397504
> pkmem:12-fragments: 3547
> pkmem:13-used_size: 3163936
> pkmem:13-real_used_size: 3379712
> pkmem:13-max_used_size: 3379896
> pkmem:13-free_size: 13397504
> pkmem:13-fragments: 3547
> pkmem:14-used_size: 3163936
> pkmem:14-real_used_size: 3379664
> pkmem:14-max_used_size: 3379728
> pkmem:14-free_size: 13397552
> pkmem:14-fragments: 3547
> pkmem:15-used_size: 3163936
> pkmem:15-real_used_size: 3379712
> pkmem:15-max_used_size: 3379896
> pkmem:15-free_size: 13397504
> pkmem:15-fragments: 3547
> pkmem:16-used_size: 3163936
> pkmem:16-real_used_size: 3379664
> pkmem:16-max_used_size: 3379728
> pkmem:16-free_size: 13397552
> pkmem:16-fragments: 3547
> pkmem:17-used_size: 3163936
> pkmem:17-real_used_size: 3379664
> pkmem:17-max_used_size: 3379728
> pkmem:17-free_size: 13397552
> pkmem:17-fragments: 3547
> pkmem:18-used_size: 3163936
> pkmem:18-real_used_size: 3379664
> pkmem:18-max_used_size: 3379728
> pkmem:18-free_size: 13397552
> pkmem:18-fragments: 3547
> pkmem:19-used_size: 3163936
> pkmem:19-real_used_size: 3379664
> pkmem:19-max_used_size: 3379728
> pkmem:19-free_size: 13397552
> pkmem:19-fragments: 3547
> pkmem:20-used_size: 3163936
> pkmem:20-real_used_size: 3379664
> pkmem:20-max_used_size: 3379728
> pkmem:20-free_size: 13397552
> pkmem:20-fragments: 3547
> pkmem:21-used_size: 3163936
> pkmem:21-real_used_size: 3379664
> pkmem:21-max_used_size: 3379728
> pkmem:21-free_size: 13397552
> pkmem:21-fragments: 3547
> pkmem:22-used_size: 3163936
> pkmem:22-real_used_size: 3379712
> pkmem:22-max_used_size: 3379896
> pkmem:22-free_size: 13397504
> pkmem:22-fragments: 3547
> pkmem:23-used_size: 3163936
> pkmem:23-real_used_size: 3379664
> pkmem:23-max_used_size: 3379728
> pkmem:23-free_size: 13397552
> pkmem:23-fragments: 3547
> pkmem:24-used_size: 3163936
> pkmem:24-real_used_size: 3379664
> pkmem:24-max_used_size: 3379728
> pkmem:24-free_size: 13397552
> pkmem:24-fragments: 3547
> pkmem:25-used_size: 3163936
> pkmem:25-real_used_size: 3379664
> pkmem:25-max_used_size: 3379728
> pkmem:25-free_size: 13397552
> pkmem:25-fragments: 3547
> pkmem:26-used_size: 3163936
> pkmem:26-real_used_size: 3379712
> pkmem:26-max_used_size: 3379896
> pkmem:26-free_size: 13397504
> pkmem:26-fragments: 3547
> pkmem:27-used_size: 3163936
> pkmem:27-real_used_size: 3379664
> pkmem:27-max_used_size: 3379728
> pkmem:27-free_size: 13397552
> pkmem:27-fragments: 3547
> pkmem:28-used_size: 3164016
> pkmem:28-real_used_size: 3380848
> pkmem:28-max_used_size: 3385616
> pkmem:28-free_size: 13396368
> pkmem:28-fragments: 3549
> pkmem:29-used_size: 3164016
> pkmem:29-real_used_size: 3380848
> pkmem:29-max_used_size: 3385616
> pkmem:29-free_size: 13396368
> pkmem:29-fragments: 3549
> pkmem:30-used_size: 3164016
> pkmem:30-real_used_size: 3380848
> pkmem:30-max_used_size: 3385616
> pkmem:30-free_size: 13396368
> pkmem:30-fragments: 3549
> pkmem:31-used_size: 3164016
> pkmem:31-real_used_size: 3380848
> pkmem:31-max_used_size: 3385616
> pkmem:31-free_size: 13396368
> pkmem:31-fragments: 3549
> pkmem:32-used_size: 3167120
> pkmem:32-real_used_size: 3386496
> pkmem:32-max_used_size: 3395216
> pkmem:32-free_size: 13390720
> pkmem:32-fragments: 3556
> pkmem:33-used_size: 3166664
> pkmem:33-real_used_size: 3386040
> pkmem:33-max_used_size: 3451584
> pkmem:33-free_size: 13391176
> pkmem:33-fragments: 3554
> pkmem:34-used_size: 3164064
> pkmem:34-real_used_size: 3381952
> pkmem:34-max_used_size: 3389440
> pkmem:34-free_size: 13395264
> pkmem:34-fragments: 3550
> pkmem:35-used_size: 3163936
> pkmem:35-real_used_size: 3379664
> pkmem:35-max_used_size: 3379728
> pkmem:35-free_size: 13397552
> pkmem:35-fragments: 3547
> pkmem:36-used_size: 3163936
> pkmem:36-real_used_size: 3379664
> pkmem:36-max_used_size: 3379728
> pkmem:36-free_size: 13397552
> pkmem:36-fragments: 3547
> pkmem:37-used_size: 3163936
> pkmem:37-real_used_size: 3379664
> pkmem:37-max_used_size: 3379728
> pkmem:37-free_size: 13397552
> pkmem:37-fragments: 3547
> pkmem:38-used_size: 3163936
> pkmem:38-real_used_size: 3379664
> pkmem:38-max_used_size: 3379728
> pkmem:38-free_size: 13397552
> pkmem:38-fragments: 3547
> pkmem:39-used_size: 3166392
> pkmem:39-real_used_size: 3382936
> pkmem:39-max_used_size: 3384192
> pkmem:39-free_size: 13394280
> pkmem:39-fragments: 3548
> pkmem:40-used_size: 3163936
> pkmem:40-real_used_size: 3379712
> pkmem:40-max_used_size: 3379896
> pkmem:40-free_size: 13397504
> pkmem:40-fragments: 3547
> pkmem:41-used_size: 3166456
> pkmem:41-real_used_size: 3383048
> pkmem:41-max_used_size: 3384440
> pkmem:41-free_size: 13394168
> pkmem:41-fragments: 3549
> pkmem:42-used_size: 3166392
> pkmem:42-real_used_size: 3382936
> pkmem:42-max_used_size: 3384240
> pkmem:42-free_size: 13394280
> pkmem:42-fragments: 3548
> pkmem:43-used_size: 3163936
> pkmem:43-real_used_size: 3379712
> pkmem:43-max_used_size: 3379896
> pkmem:43-free_size: 13397504
> pkmem:43-fragments: 3547
> pkmem:44-used_size: 3163936
> pkmem:44-real_used_size: 3379664
> pkmem:44-max_used_size: 3379728
> pkmem:44-free_size: 13397552
> pkmem:44-fragments: 3547
> pkmem:45-used_size: 3166392
> pkmem:45-real_used_size: 3382936
> pkmem:45-max_used_size: 3384192
> pkmem:45-free_size: 13394280
> pkmem:45-fragments: 3548
> pkmem:46-used_size: 3166392
> pkmem:46-real_used_size: 3382936
> pkmem:46-max_used_size: 3384240
> pkmem:46-free_size: 13394280
> pkmem:46-fragments: 3548
> pkmem:47-used_size: 3166392
> pkmem:47-real_used_size: 3382936
> pkmem:47-max_used_size: 3384240
> pkmem:47-free_size: 13394280
> pkmem:47-fragments: 3548
> pkmem:48-used_size: 3166392
> pkmem:48-real_used_size: 3382936
> pkmem:48-max_used_size: 3384264
> pkmem:48-free_size: 13394280
> pkmem:48-fragments: 3548
> pkmem:49-used_size: 2960896
> pkmem:49-real_used_size: 3175664
> pkmem:49-max_used_size: 3175664
> pkmem:49-free_size: 13601552
> pkmem:49-fragments: 2071
>
>
> I've checked the log, in the initialization the process count seems to be
> fine, it finds 50 processes:
>
>
> *opensips[4644]: DBG:core:init_pkg_stats: setting stats for 50 processes *
>
>
> This is the output for *opensips-cli ps:*
>
> opensips-cli -x mi ps -o output_type=lines
> Processes:
> ID: 0
> PID: 4644
> Type: attendant
> ID: 1
> PID: 4645
> Type: HTTPD 10.10.10.184:9999
> ID: 2
> PID: 4646
> Type: MI Datagram
> ID: 3
> PID: 4647
> Type: RabbitMQ sender
> ID: 4
> PID: 4648
> Type: Stun loop
> ID: 5
> PID: 4649
> Type: MI FIFO
> ID: 6
> PID: 4650
> Type: time_keeper
> ID: 7
> PID: 4651
> Type: timer
> ID: 8
> PID: 4652
> Type: SIP receiver udp:XXXX:YYY
> ID: 9
> PID: 4653
> Type: SIP receiver udp:XXXX:YYY
> ID: 10
> PID: 4654
> Type: SIP receiver udp:XXXX:YYYY
> ID: 11
> PID: 4655
> Type: SIP receiver udp:XXXX:YYYY
> ID: 12
> PID: 4656
> Type: SIP receiver udp:XXXX:YYYY
> ID: 13
> PID: 4657
> Type: SIP receiver udp:XXXX:YYYY
> ID: 14
> PID: 4658
> Type: SIP receiver udp:XXXX:YYYY
> ID: 15
> PID: 4659
> Type: SIP receiver udp:XXXX:YYYY
> ID: 16
> PID: 4660
> Type: SIP receiver udp:XXXX:YYYY
> ID: 17
> PID: 4661
> Type: SIP receiver udp:XXXX:YYYY
> ID: 18
> PID: 4662
> Type: SIP receiver udp:XXXX:YYYY
> ID: 19
> PID: 4663
> Type: SIP receiver udp:XXXX:YYYY
> ID: 20
> PID: 4664
> Type: SIP receiver udp:XXXX:YYYY
> ID: 21
> PID: 4665
> Type: SIP receiver udp:XXXX:YYYY
> ID: 22
> PID: 4666
> Type: SIP receiver udp:XXXX:YYYY
> ID: 23
> PID: 4667
> Type: SIP receiver udp:XXXX:YYYY
> ID: 24
> PID: 4668
> Type: SIP receiver udp:XXXX:YYYY
> ID: 25
> PID: 4669
> Type: SIP receiver udp:XXXX:YYYY
> ID: 26
> PID: 4670
> Type: SIP receiver udp:XXXX:YYYY
> ID: 27
> PID: 4671
> Type: SIP receiver udp:XXXX:YYYY
> ID: 28
> PID: 4672
> Type: SIP receiver udp:XXXX:YYYY
> ID: 29
> PID: 4673
> Type: SIP receiver udp:XXXX:YYYY
> ID: 30
> PID: 4674
> Type: SIP receiver udp:XXXX:YYYY
> ID: 31
> PID: 4675
> Type: SIP receiver udp:XXXX:YYYY
> ID: 32
> PID: 4676
> Type: TCP receiver
> ID: 33
> PID: 4677
> Type: TCP receiver
> ID: 34
> PID: 4678
> Type: TCP receiver
> ID: 35
> PID: 4679
> Type: TCP receiver
> ID: 36
> PID: 4680
> Type: TCP receiver
> ID: 37
> PID: 4681
> Type: TCP receiver
> ID: 38
> PID: 4682
> Type: TCP receiver
> ID: 39
> PID: 4683
> Type: TCP receiver
> ID: 40
> PID: 4684
> Type: TCP receiver
> ID: 41
> PID: 4685
> Type: TCP receiver
> ID: 42
> PID: 4686
> Type: TCP receiver
> ID: 43
> PID: 4687
> Type: TCP receiver
> ID: 44
> PID: 4688
> Type: TCP receiver
> ID: 45
> PID: 4689
> Type: TCP receiver
> ID: 46
> PID: 4690
> Type: TCP receiver
> ID: 47
> PID: 4691
> Type: TCP receiver
> ID: 48
> PID: 4692
> Type: Timer handler
> ID: 49
> PID: 4693
> Type: TCP main
>
>
> Is this an expected behaviour? Just wondering if pkmem stats are available
> only for workers..(?)
>
> Thanks!
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210528/be6d1c3d/attachment-0001.html>
More information about the Users
mailing list