Thanks,
Here is, today, 2022-08-05, 00:03
admin@nn-vlns-3-1:~$ vtysh -c 'show memory bgpd'
System allocator statistics:
Total heap allocated: 1273 MiB
Holding block headers: 19 MiB
Used small blocks: 0 bytes
Used ordinary blocks: 1272 MiB
Free small blocks: 4576 bytes
Free ordinary blocks: 828 KiB
Ordinary blocks: 422
Small blocks: 77
Holding blocks: 28
(see system documentation for 'mallinfo' for meaning)
--- qmem libfrr ---
Type : Current# Size Total Max# MaxBytes
Buffer : 6 24 144 7 168
Buffer data : 1 variable 4120 1 4136
Host config : 6 variable 240 6 240
Command Tokens : 12401 72 893384 12411 894104
Command Token Text : 8983 variable 312568 8993 313096
Command Token Help : 8983 variable 216552 8993 216776
Command Argument : 2 variable 64 12 288
Command Argument Name : 2120 variable 50912 2130 51152
Lexer token (temporary) : 0 variable 0 2 64
RCU thread : 2 128 272 2 272
RCU sequence barrier : 1 32 40 1 40
FRR POSIX Thread : 4 variable 320 4 320
POSIX sync primitives : 4 variable 192 4 192
Graph : 44 8 1056 45 1080
Graph Node : 14650 32 587728 14652 587808
Hash : 641 variable 31496 641 31528
Hash Bucket : 8535 32 342840 8768 355648
Hash Index : 321 variable 568728 322 601488
Interface : 24 272 6720 27 7576
Connected : 34 48 1920 37 2088
Link List : 140 40 5664 148 6016
Link Node : 483 24 11752 612 16224
Temporary memory : 63037 variable 8582408 65472 8913584
Bitfield memory : 2 variable 10256 2 10256
Module loading name : 3 variable 72 3 72
Nexthop : 26 144 4032 28 4368
Nexthop label : 20 8 480 21 504
Northbound Node : 240 1192 286080 240 286080
Northbound Configuration : 2 16 48 2 48
Northbound Configuration Entry: 15 1032 15480 15 15480
Prefix List : 1 88 88 1 88
Prefix List Str : 1 12 24 1 24
Prefix List Entry : 2 136 272 2 272
Prefix List Trie Table : 2 4096 8208 2 8208
Prefix : 36 56 2048 40 2272
Privilege information : 3 variable 136 3 136
Ring buffer : 24 variable 7913760 28 9224544
Route map : 4 120 480 4 480
Route map name : 4 variable 96 5 120
Route map index : 4 152 624 4 624
Route map rule : 4 40 176 4 176
Route map rule str : 4 10 96 4 96
Route map compiled : 4 16 96 4 96
Skip List : 31553 56 1780456 32774 1864536
Skip Node : 140814 variable 9750528 145694 10104704
Skiplist Counters : 31553 68 2272024 32774 2359824
Socket union : 20 112 2448 24 2928
Stream : 41 variable 2253016 846 2839088
Stream FIFO : 24 64 1728 28 2016
Route table : 1151 56 69496 1151 69496
Route node : 8 120 960 8 960
Thread : 53 160 8936 31765 5340392
Thread master : 12 variable 50352 12 50352
Thread Poll Info : 6 8192 49200 6 49200
Thread stats : 29 96 3032 29 3032
Typed-hash bucket : 991 variable 1388680 995 1426072
Typed-heap array : 1 variable 776 1 334280
Vector : 29391 24 706456 29395 706520
Vector index : 29391 variable 931144 29395 931336
VRF : 4 216 864 4 864
VRF bit-map : 8 8 192 8 192
VTY : 4 variable 61088 4 61088
VTY server : 2 32 80 2 80
Work queue : 6 152 928 7 1080
Work queue item : 1 24 24 36244 1051200
Work queue name string : 6 variable 144 7 168
YANG module : 5 48 296 5 296
YANG data structure : 0 1032 0 1 1032
Zclient : 2 3144 6288 2 6288
Redistribution instance IDs : 6 2 144 6 144
log thread-local buffer : 2 24608 49232 2 49232
--- qmem logging subsystem ---
Type : Current# Size Total Max# MaxBytes
syslog target : 2 56 112 2 112
--- qmem bgpd ---
Type : Current# Size Total Max# MaxBytes
BGP Label Chunk : 12 8 288 12 288
BGP Label FIFO item : 0 32 0 288 11520
BGP Dynamic Label Assignment : 587 24 14136 588 14176
BGP Dynamic Label Callback : 0 32 0 295 11800
Mac Hash Entry : 16 16 384 16 384
Mac Hash Entry Intf String : 24 variable 576 28 672
BGP instance : 6 variable 19616 6 19616
BGP listen socket details : 6 variable 656 6 656
BGP peer : 18 740832 13343440 19 14084280
BGP peer hostname : 22 variable 528 25 600
Peer description : 10 variable 256 10 256
BGP peer af : 10 80 880 12 1088
BGP update group : 6 104 624 6 640
BGP update subgroup : 6 240 1488 6 1488
BGP packet : 6 56 336 43 3048
BGP attribute : 5469 304 1706424 5485 1711432
BGP aspath : 242 40 9680 243 9736
BGP aspath seg : 241 24 6184 242 6224
BGP aspath segment data : 241 variable 5800 243 5880
BGP aspath str : 242 variable 10080 243 10168
BGP table : 1130 56 66208 1130 66208
BGP node : 74645 192 14933784 77091 15423320
BGP route : 218171 112 26211080 225501 27090200
BGP ancillary route info : 217397 400 88700776 224727 91691368
BGP connected : 16 4 400 16 416
BGP static : 5 144 760 5 760
BGP adv attr : 0 24 0 1455 34920
BGP adv : 0 64 0 36853 2667464
BGP synchronise : 258 72 18800 299 22424
BGP adj in : 72860 48 4159824 75302 4314336
BGP adj out : 72926 96 7604560 75369 7857752
BGP multipath info : 15362 48 883712 15757 905912
community : 14055258 40 575848688 14055259 575848728
community val : 14055258 variable 338219888 14055259 338219912
community str : 60 variable 483840 61 492040
extcommunity : 268 40 10992 269 11048
extcommunity val : 268 variable 6816 269 6872
extcommunity str : 266 variable 23888 266 23888
community-list handler : 1 120 136 1 136
BGP Process queue : 1 32 40 5 200
BGP node clear queue : 0 8 0 36243 1051544
BGP nexthop : 20 184 3696 20 3696
BGP peer update interface : 4 5 96 6 144
BGP own address : 14 64 1008 14 1008
BGP redistribution : 2 24 48 2 48
BGP Filter Information : 16 variable 384 17 408
BGP EVPN MH Information : 1 56 72 1 72
BGP Notification Message : 0 variable 0 2 48
BGP Martian Addr Intf String : 15 variable 360 16 384
BGP PBR Context : 2 32 80 2 80
BGP EVPN instance information : 2 56 112 2 112
--- qmem rfapi ---
Type : Current# Size Total Max# MaxBytes
NVE Configuration : 1 2984 2984 1 2984
RFAPI Generic : 1 296 296 1 296
RFAPI Import Table : 1 208 216 1 216
RFAPI Monitor Encap : 108087 40 4359272 111751 4508968
RFAPI Withdraw : 0 32 0 31718 1601192
RFAPI IT Extra : 31590 40 1275840 32809 1325240
--- qmem BMP (BGP Monitoring Protocol) ---
Type : Current# Size Total Max# MaxBytes
BMP per BGP peer data : 14 56 832 14 832
BMP stored BGP OPEN message : 28 variable 2592 28 2592
admin@nn-vlns-3-1:~$
And top
admin@nn-vlns-3-1:~$ top
top - 00:01:33 up 1 day, 23:43, 1 user, load average: 0.03, 0.03, 0.00
Tasks: 144 total, 1 running, 142 sleeping, 0 stopped, 1 zombie
%Cpu(s): 0.4 us, 0.5 sy, 0.0 ni, 99.1 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 16020.0 total, 10928.3 free, 4621.3 used, 470.4 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 11128.7 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4104 root 20 0 3446308 3.0g 4752 S 0.0 19.2 0:13.05 accel-pppd
922 frr 15 -5 1503136 1.3g 8252 S 8.1 8.1 176:43.43 bgpd