[OpenSIPS-Users] Does not release shared memory
Evgeniy G.
goley_ev_sp at mail.ru
Wed Jul 26 09:02:12 EDT 2017
Now I'm testing the server under load, 600 calls per minute and watching the
situation. I have only two sockets in the configuration:
listen = udp: 10.2.1.61: 7062
listen = udp: ХХ.ХХ.ХХХ.XXX: 7062
In the children parameter the value 2 is specified. But I can not understand
why 18 processes are created at startup ?... It's interesting that only two
of them take a role in the processing of calls, why? ... I found this out,
because of the decrease in two processes (pkmem:4 and pkmem:5) of pkg memory
.
Please explain the work with pkg memory when it is released.
I watched the server for 3 hours under load and 1 hour without, as a result,
on two processes the free private memory (pkmem) was rectilinearly reduced.
After testing, without restarting the server, private memory (pkgmem) is not
released, is it the way it should be?
[root at sbc sbin]# date
Срд Июл 26 09:31:45 MSK 2017
[root at sbc sbin]# ./opensipsctl fifo get_statistics pkmem:
[root at sbc sbin]# ./opensipsctl fifo get_statistics pkmem:
pkmem:0-total_size:: 67108864
pkmem:0-used_size:: 66608
pkmem:0-real_used_size:: 112560
pkmem:0-max_used_size:: 112560
pkmem:0-free_size:: 66996304
pkmem:0-fragments:: 510
pkmem:1-total_size:: 67108864
pkmem:1-used_size:: 87128
pkmem:1-real_used_size:: 135912
pkmem:1-max_used_size:: 146248
pkmem:1-free_size:: 66972952
pkmem:1-fragments:: 526
pkmem:2-total_size:: 67108864
pkmem:2-used_size:: 64832
pkmem:2-real_used_size:: 110664
pkmem:2-max_used_size:: 110672
pkmem:2-free_size:: 66998200
pkmem:2-fragments:: 500
pkmem:3-total_size:: 67108864
pkmem:3-used_size:: 64832
pkmem:3-real_used_size:: 110664
pkmem:3-max_used_size:: 110672
pkmem:3-free_size:: 66998200
pkmem:3-fragments:: 500
pkmem:4-total_size:: 67108864
pkmem:4-used_size:: 1144576
pkmem:4-real_used_size:: 2058560
pkmem:4-max_used_size:: 2069256
pkmem:4-free_size:: 65050304
pkmem:4-fragments:: 36614
pkmem:5-total_size:: 67108864
pkmem:5-used_size:: 1381584
pkmem:5-real_used_size:: 2495896
pkmem:5-max_used_size:: 2506568
pkmem:5-free_size:: 64612968
pkmem:5-fragments:: 44959
pkmem:6-total_size:: 67108864
pkmem:6-used_size:: 119960
pkmem:6-real_used_size:: 166824
pkmem:6-max_used_size:: 173640
pkmem:6-free_size:: 66942040
pkmem:6-fragments:: 518
pkmem:7-total_size:: 67108864
pkmem:7-used_size:: 119960
pkmem:7-real_used_size:: 166824
pkmem:7-max_used_size:: 173808
pkmem:7-free_size:: 66942040
pkmem:7-fragments:: 518
pkmem:8-total_size:: 67108864
pkmem:8-used_size:: 119840
pkmem:8-real_used_size:: 165912
pkmem:8-max_used_size:: 165912
pkmem:8-free_size:: 66942952
pkmem:8-fragments:: 515
pkmem:9-total_size:: 67108864
pkmem:9-used_size:: 119840
pkmem:9-real_used_size:: 165912
pkmem:9-max_used_size:: 165912
pkmem:9-free_size:: 66942952
pkmem:9-fragments:: 515
pkmem:10-total_size:: 67108864
pkmem:10-used_size:: 119840
pkmem:10-real_used_size:: 165912
pkmem:10-max_used_size:: 165912
pkmem:10-free_size:: 66942952
pkmem:10-fragments:: 515
pkmem:11-total_size:: 67108864
pkmem:11-used_size:: 119840
pkmem:11-real_used_size:: 165912
pkmem:11-max_used_size:: 165912
pkmem:11-free_size:: 66942952
pkmem:11-fragments:: 515
pkmem:12-total_size:: 67108864
pkmem:12-used_size:: 119840
pkmem:12-real_used_size:: 165912
pkmem:12-max_used_size:: 165912
pkmem:12-free_size:: 66942952
pkmem:12-fragments:: 515
pkmem:13-total_size:: 67108864
pkmem:13-used_size:: 119840
pkmem:13-real_used_size:: 165912
pkmem:13-max_used_size:: 165912
pkmem:13-free_size:: 66942952
pkmem:13-fragments:: 515
pkmem:14-total_size:: 67108864
pkmem:14-used_size:: 119840
pkmem:14-real_used_size:: 165912
pkmem:14-max_used_size:: 165912
pkmem:14-free_size:: 66942952
pkmem:14-fragments:: 515
pkmem:15-total_size:: 67108864
pkmem:15-used_size:: 119840
pkmem:15-real_used_size:: 165912
pkmem:15-max_used_size:: 165912
pkmem:15-free_size:: 66942952
pkmem:15-fragments:: 515
pkmem:16-total_size:: 67108864
pkmem:16-used_size:: 119840
pkmem:16-real_used_size:: 165912
pkmem:16-max_used_size:: 165912
pkmem:16-free_size:: 66942952
pkmem:16-fragments:: 515
pkmem:17-total_size:: 67108864
pkmem:17-used_size:: 109904
pkmem:17-real_used_size:: 155832
pkmem:17-max_used_size:: 155832
pkmem:17-free_size:: 66953032
pkmem:17-fragments:: 504
[root at sbc sbin]#
....
[root at sbc sbin]# date
Срд Июл 26 10:35:47 MSK 2017
[root at sbc sbin]# ./opensipsctl fifo get_statistics pkmem:
pkmem:0-total_size:: 67108864
pkmem:0-used_size:: 66608
pkmem:0-real_used_size:: 112560
pkmem:0-max_used_size:: 112560
pkmem:0-free_size:: 66996304
pkmem:0-fragments:: 510
pkmem:1-total_size:: 67108864
pkmem:1-used_size:: 87128
pkmem:1-real_used_size:: 135912
pkmem:1-max_used_size:: 146248
pkmem:1-free_size:: 66972952
pkmem:1-fragments:: 526
pkmem:2-total_size:: 67108864
pkmem:2-used_size:: 64832
pkmem:2-real_used_size:: 110664
pkmem:2-max_used_size:: 110672
pkmem:2-free_size:: 66998200
pkmem:2-fragments:: 500
pkmem:3-total_size:: 67108864
pkmem:3-used_size:: 64832
pkmem:3-real_used_size:: 110664
pkmem:3-max_used_size:: 110672
pkmem:3-free_size:: 66998200
pkmem:3-fragments:: 500
pkmem:4-total_size:: 67108864
pkmem:4-used_size:: 2786296
pkmem:4-real_used_size:: 5088608
pkmem:4-max_used_size:: 5099248
pkmem:4-free_size:: 62020256
pkmem:4-fragments:: 94460
pkmem:5-total_size:: 67108864
pkmem:5-used_size:: 3334952
pkmem:5-real_used_size:: 6101784
pkmem:5-max_used_size:: 6112384
pkmem:5-free_size:: 61007080
pkmem:5-fragments:: 113815
pkmem:6-total_size:: 67108864
pkmem:6-used_size:: 120008
pkmem:6-real_used_size:: 167496
pkmem:6-max_used_size:: 175304
pkmem:6-free_size:: 66941368
pkmem:6-fragments:: 519
pkmem:7-total_size:: 67108864
pkmem:7-used_size:: 120000
pkmem:7-real_used_size:: 167584
pkmem:7-max_used_size:: 175240
pkmem:7-free_size:: 66941280
pkmem:7-fragments:: 519
pkmem:8-total_size:: 67108864
pkmem:8-used_size:: 119880
pkmem:8-real_used_size:: 165976
pkmem:8-max_used_size:: 165976
pkmem:8-free_size:: 66942888
pkmem:8-fragments:: 516
pkmem:9-total_size:: 67108864
pkmem:9-used_size:: 119952
pkmem:9-real_used_size:: 166288
pkmem:9-max_used_size:: 167024
pkmem:9-free_size:: 66942576
pkmem:9-fragments:: 518
pkmem:10-total_size:: 67108864
pkmem:10-used_size:: 119880
pkmem:10-real_used_size:: 165976
pkmem:10-max_used_size:: 165976
pkmem:10-free_size:: 66942888
pkmem:10-fragments:: 516
pkmem:11-total_size:: 67108864
pkmem:11-used_size:: 119880
pkmem:11-real_used_size:: 165976
pkmem:11-max_used_size:: 165976
pkmem:11-free_size:: 66942888
pkmem:11-fragments:: 516
pkmem:12-total_size:: 67108864
pkmem:12-used_size:: 119880
pkmem:12-real_used_size:: 165976
pkmem:12-max_used_size:: 165976
pkmem:12-free_size:: 66942888
pkmem:12-fragments:: 516
pkmem:13-total_size:: 67108864
pkmem:13-used_size:: 119952
pkmem:13-real_used_size:: 166288
pkmem:13-max_used_size:: 167024
pkmem:13-free_size:: 66942576
pkmem:13-fragments:: 518
pkmem:14-total_size:: 67108864
pkmem:14-used_size:: 119952
pkmem:14-real_used_size:: 166288
pkmem:14-max_used_size:: 167024
pkmem:14-free_size:: 66942576
pkmem:14-fragments:: 518
pkmem:15-total_size:: 67108864
pkmem:15-used_size:: 119880
pkmem:15-real_used_size:: 165976
pkmem:15-max_used_size:: 165976
pkmem:15-free_size:: 66942888
pkmem:15-fragments:: 516
pkmem:16-total_size:: 67108864
pkmem:16-used_size:: 119880
pkmem:16-real_used_size:: 165976
pkmem:16-max_used_size:: 165976
pkmem:16-free_size:: 66942888
pkmem:16-fragments:: 516
pkmem:17-total_size:: 67108864
pkmem:17-used_size:: 109904
pkmem:17-real_used_size:: 155832
pkmem:17-max_used_size:: 155832
pkmem:17-free_size:: 66953032
pkmem:17-fragments:: 504
....
[root at sbc sbin]# date
Срд Июл 26 11:08:37 MSK 2017
[root at sbc sbin]# ./opensipsctl fifo get_statistics pkmem:
pkmem:0-total_size:: 67108864
pkmem:0-used_size:: 66608
pkmem:0-real_used_size:: 112560
pkmem:0-max_used_size:: 112560
pkmem:0-free_size:: 66996304
pkmem:0-fragments:: 510
pkmem:1-total_size:: 67108864
pkmem:1-used_size:: 87128
pkmem:1-real_used_size:: 135912
pkmem:1-max_used_size:: 146248
pkmem:1-free_size:: 66972952
pkmem:1-fragments:: 526
pkmem:2-total_size:: 67108864
pkmem:2-used_size:: 64832
pkmem:2-real_used_size:: 110664
pkmem:2-max_used_size:: 110672
pkmem:2-free_size:: 66998200
pkmem:2-fragments:: 500
pkmem:3-total_size:: 67108864
pkmem:3-used_size:: 64832
pkmem:3-real_used_size:: 110664
pkmem:3-max_used_size:: 110672
pkmem:3-free_size:: 66998200
pkmem:3-fragments:: 500
pkmem:4-total_size:: 67108864
pkmem:4-used_size:: 4144936
pkmem:4-real_used_size:: 7595432
pkmem:4-max_used_size:: 7606080
pkmem:4-free_size:: 59513432
pkmem:4-fragments:: 142300
pkmem:5-total_size:: 67108864
pkmem:5-used_size:: 4946520
pkmem:5-real_used_size:: 9075448
pkmem:5-max_used_size:: 9086080
pkmem:5-free_size:: 58033416
pkmem:5-fragments:: 170570
pkmem:6-total_size:: 67108864
pkmem:6-used_size:: 120008
pkmem:6-real_used_size:: 167496
pkmem:6-max_used_size:: 175304
pkmem:6-free_size:: 66941368
pkmem:6-fragments:: 519
pkmem:7-total_size:: 67108864
pkmem:7-used_size:: 120000
pkmem:7-real_used_size:: 167584
pkmem:7-max_used_size:: 175272
pkmem:7-free_size:: 66941280
pkmem:7-fragments:: 520
pkmem:8-total_size:: 67108864
pkmem:8-used_size:: 119880
pkmem:8-real_used_size:: 165976
pkmem:8-max_used_size:: 165976
pkmem:8-free_size:: 66942888
pkmem:8-fragments:: 516
pkmem:9-total_size:: 67108864
pkmem:9-used_size:: 119952
pkmem:9-real_used_size:: 166288
pkmem:9-max_used_size:: 167024
pkmem:9-free_size:: 66942576
pkmem:9-fragments:: 518
pkmem:10-total_size:: 67108864
pkmem:10-used_size:: 119880
pkmem:10-real_used_size:: 165976
pkmem:10-max_used_size:: 165976
pkmem:10-free_size:: 66942888
pkmem:10-fragments:: 516
pkmem:11-total_size:: 67108864
pkmem:11-used_size:: 119880
pkmem:11-real_used_size:: 165976
pkmem:11-max_used_size:: 165976
pkmem:11-free_size:: 66942888
pkmem:11-fragments:: 516
pkmem:12-total_size:: 67108864
pkmem:12-used_size:: 119880
pkmem:12-real_used_size:: 165976
pkmem:12-max_used_size:: 165976
pkmem:12-free_size:: 66942888
pkmem:12-fragments:: 516
pkmem:13-total_size:: 67108864
pkmem:13-used_size:: 119952
pkmem:13-real_used_size:: 166288
pkmem:13-max_used_size:: 167024
pkmem:13-free_size:: 66942576
pkmem:13-fragments:: 518
pkmem:14-total_size:: 67108864
pkmem:14-used_size:: 119952
pkmem:14-real_used_size:: 166288
pkmem:14-max_used_size:: 167024
pkmem:14-free_size:: 66942576
pkmem:14-fragments:: 518
pkmem:15-total_size:: 67108864
pkmem:15-used_size:: 119880
pkmem:15-real_used_size:: 165976
pkmem:15-max_used_size:: 165976
pkmem:15-free_size:: 66942888
pkmem:15-fragments:: 516
pkmem:16-total_size:: 67108864
pkmem:16-used_size:: 119880
pkmem:16-real_used_size:: 165976
pkmem:16-max_used_size:: 165976
pkmem:16-free_size:: 66942888
pkmem:16-fragments:: 516
pkmem:17-total_size:: 67108864
pkmem:17-used_size:: 109904
pkmem:17-real_used_size:: 155832
pkmem:17-max_used_size:: 155832
pkmem:17-free_size:: 66953032
pkmem:17-fragments:: 504
[root at sbc sbin]#
...
After testing, without restarting the service.
[root at sbc sbin]# date
Срд Июл 26 12:09:01 MSK 2017
[root at sbc sbin]# ./opensipsctl fifo get_statistics pkmem:
pkmem:0-total_size:: 67108864
pkmem:0-used_size:: 66608
pkmem:0-real_used_size:: 112560
pkmem:0-max_used_size:: 112560
pkmem:0-free_size:: 66996304
pkmem:0-fragments:: 510
pkmem:1-total_size:: 67108864
pkmem:1-used_size:: 87128
pkmem:1-real_used_size:: 135912
pkmem:1-max_used_size:: 146248
pkmem:1-free_size:: 66972952
pkmem:1-fragments:: 526
pkmem:2-total_size:: 67108864
pkmem:2-used_size:: 64832
pkmem:2-real_used_size:: 110664
pkmem:2-max_used_size:: 110672
pkmem:2-free_size:: 66998200
pkmem:2-fragments:: 500
pkmem:3-total_size:: 67108864
pkmem:3-used_size:: 64832
pkmem:3-real_used_size:: 110664
pkmem:3-max_used_size:: 110672
pkmem:3-free_size:: 66998200
pkmem:3-fragments:: 500
pkmem:4-total_size:: 67108864
pkmem:4-used_size:: 6444664
pkmem:4-real_used_size:: 11838512
pkmem:4-max_used_size:: 11849192
pkmem:4-free_size:: 55270352
pkmem:4-fragments:: 223275
pkmem:5-total_size:: 67108864
pkmem:5-used_size:: 7769568
pkmem:5-real_used_size:: 14284264
pkmem:5-max_used_size:: 14294848
pkmem:5-free_size:: 52824600
pkmem:5-fragments:: 269975
pkmem:6-total_size:: 67108864
pkmem:6-used_size:: 120000
pkmem:6-real_used_size:: 167512
pkmem:6-max_used_size:: 175336
pkmem:6-free_size:: 66941352
pkmem:6-fragments:: 520
pkmem:7-total_size:: 67108864
pkmem:7-used_size:: 120000
pkmem:7-real_used_size:: 167584
pkmem:7-max_used_size:: 175272
pkmem:7-free_size:: 66941280
pkmem:7-fragments:: 520
pkmem:8-total_size:: 67108864
pkmem:8-used_size:: 119880
pkmem:8-real_used_size:: 165976
pkmem:8-max_used_size:: 165976
pkmem:8-free_size:: 66942888
pkmem:8-fragments:: 516
pkmem:9-total_size:: 67108864
pkmem:9-used_size:: 119952
pkmem:9-real_used_size:: 166288
pkmem:9-max_used_size:: 167024
pkmem:9-free_size:: 66942576
pkmem:9-fragments:: 518
pkmem:10-total_size:: 67108864
pkmem:10-used_size:: 119880
pkmem:10-real_used_size:: 165976
pkmem:10-max_used_size:: 165976
pkmem:10-free_size:: 66942888
pkmem:10-fragments:: 516
pkmem:11-total_size:: 67108864
pkmem:11-used_size:: 119880
pkmem:11-real_used_size:: 165976
pkmem:11-max_used_size:: 165976
pkmem:11-free_size:: 66942888
pkmem:11-fragments:: 516
pkmem:12-total_size:: 67108864
pkmem:12-used_size:: 119880
pkmem:12-real_used_size:: 165976
pkmem:12-max_used_size:: 165976
pkmem:12-free_size:: 66942888
pkmem:12-fragments:: 516
pkmem:13-total_size:: 67108864
pkmem:13-used_size:: 119952
pkmem:13-real_used_size:: 166288
pkmem:13-max_used_size:: 167024
pkmem:13-free_size:: 66942576
pkmem:13-fragments:: 518
pkmem:14-total_size:: 67108864
pkmem:14-used_size:: 119952
pkmem:14-real_used_size:: 166288
pkmem:14-max_used_size:: 167024
pkmem:14-free_size:: 66942576
pkmem:14-fragments:: 518
pkmem:15-total_size:: 67108864
pkmem:15-used_size:: 119880
pkmem:15-real_used_size:: 165976
pkmem:15-max_used_size:: 165976
pkmem:15-free_size:: 66942888
pkmem:15-fragments:: 516
pkmem:16-total_size:: 67108864
pkmem:16-used_size:: 119880
pkmem:16-real_used_size:: 165976
pkmem:16-max_used_size:: 165976
pkmem:16-free_size:: 66942888
pkmem:16-fragments:: 516
pkmem:17-total_size:: 67108864
pkmem:17-used_size:: 109904
pkmem:17-real_used_size:: 155832
pkmem:17-max_used_size:: 155832
pkmem:17-free_size:: 66953032
pkmem:17-fragments:: 504
[root at sbc sbin]#
...
Hour without load.
[root at sbc sbin]# date
Срд Июл 26 12:54:14 MSK 2017
[root at sbc sbin]#
[root at sbc sbin]# ./opensipsctl fifo get_statistics pkmem:
pkmem:0-total_size:: 67108864
pkmem:0-used_size:: 66608
pkmem:0-real_used_size:: 112560
pkmem:0-max_used_size:: 112560
pkmem:0-free_size:: 66996304
pkmem:0-fragments:: 510
pkmem:1-total_size:: 67108864
pkmem:1-used_size:: 87128
pkmem:1-real_used_size:: 135912
pkmem:1-max_used_size:: 146248
pkmem:1-free_size:: 66972952
pkmem:1-fragments:: 526
pkmem:2-total_size:: 67108864
pkmem:2-used_size:: 64832
pkmem:2-real_used_size:: 110664
pkmem:2-max_used_size:: 110672
pkmem:2-free_size:: 66998200
pkmem:2-fragments:: 500
pkmem:3-total_size:: 67108864
pkmem:3-used_size:: 64832
pkmem:3-real_used_size:: 110664
pkmem:3-max_used_size:: 110672
pkmem:3-free_size:: 66998200
pkmem:3-fragments:: 500
pkmem:4-total_size:: 67108864
pkmem:4-used_size:: 6444664
pkmem:4-real_used_size:: 11838512
pkmem:4-max_used_size:: 11849192
pkmem:4-free_size:: 55270352
pkmem:4-fragments:: 223275
pkmem:5-total_size:: 67108864
pkmem:5-used_size:: 7769568
pkmem:5-real_used_size:: 14284264
pkmem:5-max_used_size:: 14294848
pkmem:5-free_size:: 52824600
pkmem:5-fragments:: 269975
pkmem:6-total_size:: 67108864
pkmem:6-used_size:: 120000
pkmem:6-real_used_size:: 167512
pkmem:6-max_used_size:: 175336
pkmem:6-free_size:: 66941352
pkmem:6-fragments:: 520
pkmem:7-total_size:: 67108864
pkmem:7-used_size:: 120000
pkmem:7-real_used_size:: 167584
pkmem:7-max_used_size:: 175272
pkmem:7-free_size:: 66941280
pkmem:7-fragments:: 520
pkmem:8-total_size:: 67108864
pkmem:8-used_size:: 119880
pkmem:8-real_used_size:: 165976
pkmem:8-max_used_size:: 165976
pkmem:8-free_size:: 66942888
pkmem:8-fragments:: 516
pkmem:9-total_size:: 67108864
pkmem:9-used_size:: 119952
pkmem:9-real_used_size:: 166288
pkmem:9-max_used_size:: 167024
pkmem:9-free_size:: 66942576
pkmem:9-fragments:: 518
pkmem:10-total_size:: 67108864
pkmem:10-used_size:: 119880
pkmem:10-real_used_size:: 165976
pkmem:10-max_used_size:: 165976
pkmem:10-free_size:: 66942888
pkmem:10-fragments:: 516
pkmem:11-total_size:: 67108864
pkmem:11-used_size:: 119880
pkmem:11-real_used_size:: 165976
pkmem:11-max_used_size:: 165976
pkmem:11-free_size:: 66942888
pkmem:11-fragments:: 516
pkmem:12-total_size:: 67108864
pkmem:12-used_size:: 119880
pkmem:12-real_used_size:: 165976
pkmem:12-max_used_size:: 165976
pkmem:12-free_size:: 66942888
pkmem:12-fragments:: 516
pkmem:13-total_size:: 67108864
pkmem:13-used_size:: 119952
pkmem:13-real_used_size:: 166288
pkmem:13-max_used_size:: 167024
pkmem:13-free_size:: 66942576
pkmem:13-fragments:: 518
pkmem:14-total_size:: 67108864
pkmem:14-used_size:: 119952
pkmem:14-real_used_size:: 166288
pkmem:14-max_used_size:: 167024
pkmem:14-free_size:: 66942576
pkmem:14-fragments:: 518
pkmem:15-total_size:: 67108864
pkmem:15-used_size:: 119880
pkmem:15-real_used_size:: 165976
pkmem:15-max_used_size:: 165976
pkmem:15-free_size:: 66942888
pkmem:15-fragments:: 516
pkmem:16-total_size:: 67108864
pkmem:16-used_size:: 119880
pkmem:16-real_used_size:: 165976
pkmem:16-max_used_size:: 165976
pkmem:16-free_size:: 66942888
pkmem:16-fragments:: 516
pkmem:17-total_size:: 67108864
pkmem:17-used_size:: 109904
pkmem:17-real_used_size:: 155832
pkmem:17-max_used_size:: 155832
pkmem:17-free_size:: 66953032
pkmem:17-fragments:: 504
[root at sbc sbin]#
--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Does-not-release-shared-memory-tp7608065p7608135.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
More information about the Users
mailing list