Re: [vpp-dev] VPP stats
Hi Raj, In case this might help, there is a config for statseg for VPP 18.10 in a dockerfile entrypoint here: https://github.com/cisco-ie/vpp-lab/blob/master/hc2vpp/entrypoint.sh#L21 It seems like the following should work because, default config is /run/vpp/stats.sock statseg { default } Yohan > -Original Message- > From: vpp-dev@lists.fd.io On Behalf Of Raj > Sent: lundi 11 mars 2019 15:37 > To: vpp-dev > Subject: Re: [vpp-dev] VPP stats > > Hi Ole, > > I tried various combination of stats and statseg in config file but no joy. > For > example this conf gives error in 18.10. though by manual it seems ok. > > stats { socket-name /run/vpp/stats.sock } statseg { size 128M } > > It would be great if you can point to the documentation for 18.10 or a sample > conf for 18.10 > > Thanks and Regards, > > Raj > > On Wed, Mar 6, 2019 at 8:31 PM Ole Troan wrote: > > > > Hi Raj, > > > > statseg { … } > > > > There is a C API in vpp-api/client/stat_client.h you can use. > > Or a higher level Go, Python or C++ binding too. > > > > Cheers, > > Ole > > > > > On 6 Mar 2019, at 14:27, Raj wrote: > > > > > > Hi all, > > > > > > I am trying to get the stats from VPP SHM. If I understand > > > correctly, I need to open VPP stats Unix domain socket and read > > > from the corresponding memory mapped segment. > > > > > > My problem is that the stats socket file is missing. I added the > > > following line in startup.conf but of no avail. > > > > > > stats { socket-name /run/vpp/stats.sock } > > > > > > Should I have to do any thing else to get the sock file and possibly > > > enable SHM logging? > > > > > > Thanks and Regards, > > > > > > Raj > > > -=-=-=-=-=-=-=-=-=-=-=- > > > Links: You receive all messages sent to this group. > > > > > > View/Reply Online (#12443): > > > https://lists.fd.io/g/vpp-dev/message/12443 > > > Mute This Topic: https://lists.fd.io/mt/30284996/675193 > > > Group Owner: vpp-dev+ow...@lists.fd.io > > > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub > > > [otr...@employees.org] > > > -=-=-=-=-=-=-=-=-=-=-=- > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12483): https://lists.fd.io/g/vpp-dev/message/12483 Mute This Topic: https://lists.fd.io/mt/30284996/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] VPP stats
Hi Ole, I tried various combination of stats and statseg in config file but no joy. For example this conf gives error in 18.10. though by manual it seems ok. stats { socket-name /run/vpp/stats.sock } statseg { size 128M } It would be great if you can point to the documentation for 18.10 or a sample conf for 18.10 Thanks and Regards, Raj On Wed, Mar 6, 2019 at 8:31 PM Ole Troan wrote: > > Hi Raj, > > statseg { … } > > There is a C API in vpp-api/client/stat_client.h you can use. > Or a higher level Go, Python or C++ binding too. > > Cheers, > Ole > > > On 6 Mar 2019, at 14:27, Raj wrote: > > > > Hi all, > > > > I am trying to get the stats from VPP SHM. If I understand correctly, > > I need to open VPP stats Unix domain socket and read from the > > corresponding memory mapped segment. > > > > My problem is that the stats socket file is missing. I added the > > following line in startup.conf but of no avail. > > > > stats { socket-name /run/vpp/stats.sock } > > > > Should I have to do any thing else to get the sock file and possibly > > enable SHM logging? > > > > Thanks and Regards, > > > > Raj > > -=-=-=-=-=-=-=-=-=-=-=- > > Links: You receive all messages sent to this group. > > > > View/Reply Online (#12443): https://lists.fd.io/g/vpp-dev/message/12443 > > Mute This Topic: https://lists.fd.io/mt/30284996/675193 > > Group Owner: vpp-dev+ow...@lists.fd.io > > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [otr...@employees.org] > > -=-=-=-=-=-=-=-=-=-=-=- > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12482): https://lists.fd.io/g/vpp-dev/message/12482 Mute This Topic: https://lists.fd.io/mt/30284996/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] VPP stats
Hi Raj, statseg { … } There is a C API in vpp-api/client/stat_client.h you can use. Or a higher level Go, Python or C++ binding too. Cheers, Ole > On 6 Mar 2019, at 14:27, Raj wrote: > > Hi all, > > I am trying to get the stats from VPP SHM. If I understand correctly, > I need to open VPP stats Unix domain socket and read from the > corresponding memory mapped segment. > > My problem is that the stats socket file is missing. I added the > following line in startup.conf but of no avail. > > stats { socket-name /run/vpp/stats.sock } > > Should I have to do any thing else to get the sock file and possibly > enable SHM logging? > > Thanks and Regards, > > Raj > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > > View/Reply Online (#12443): https://lists.fd.io/g/vpp-dev/message/12443 > Mute This Topic: https://lists.fd.io/mt/30284996/675193 > Group Owner: vpp-dev+ow...@lists.fd.io > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [otr...@employees.org] > -=-=-=-=-=-=-=-=-=-=-=- -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12445): https://lists.fd.io/g/vpp-dev/message/12445 Mute This Topic: https://lists.fd.io/mt/30284996/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] VPP stats
Hi all, I am trying to get the stats from VPP SHM. If I understand correctly, I need to open VPP stats Unix domain socket and read from the corresponding memory mapped segment. My problem is that the stats socket file is missing. I added the following line in startup.conf but of no avail. stats { socket-name /run/vpp/stats.sock } Should I have to do any thing else to get the sock file and possibly enable SHM logging? Thanks and Regards, Raj -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12443): https://lists.fd.io/g/vpp-dev/message/12443 Mute This Topic: https://lists.fd.io/mt/30284996/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] VPP stats thread
Hi All, One query on the VPP statistics. In the fd.io wiki: https://wiki.fd.io/view/VPP/Using_VPP_In_A_Multi-thread_Model It's mentioned that VPP statistics get handled by main thread. However, with 18.01 version, I see a separate threads for stats. Is this a recent change in 18.10 ? vpp# show threads ID Name Type LWP Sched Policy (Priority) lcore Core Socket State 0 vpp_main 31 other (0) 0 0 0 1 vpp_wk_0 workers 157 other (0) 1 1 0 2 vpp_wk_1 workers 158 other (0) 2 2 0 3 vpp_wk_2 workers 159 other (0) 3 3 0 *4 stats 160 other (0) 0 0 0* If this is a recent change, Is there any way, we can control this behavior ( getting a separate thread for stats or not ). Thanks & Regards, Satish -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11938): https://lists.fd.io/g/vpp-dev/message/11938 Mute This Topic: https://lists.fd.io/mt/29171360/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-