Hardware as requested:
Platform: Intel S2600WF
Affected cpu 6130, 6130T
Various nic's all connected to socket 2

Same platform with 5122 and 6134 seems to work fine.

Kernel params for 6130:
intel_iommu=on iommu=pt isolcpus=16-31,48-63 nohz_full=16-31,48-63 rcu_nocbs=16-31,48-63 hugepagesz=1GB hugepages=16
vpp runs on 16-19,48-51 with master running on 31

If I add "notsc clocksource=hpet" the problem is less pronounced.

But, what I'm asking about is the code itself - seems wrong. The hardware just brings the problem forth much more frequently.

I've added a few prints to see how the values change over time, and c->clocks_per_second while mostly stable tends to change now and again (210000 vs 209000 in my case). This leads to "now" jumping backward and forward, if the jump happens in specific moment, like (maybe only?) when vm->barrier_no_close_before is set, vpp will stall for some time or throw assert.

The code as it is now, relies on clock parameters not to change frequently, or at all, while in fact it can change (and vpp calls clib_time_verify_frequency for exactly this purpose).

I hope this makes sense.

W dniu 24.02.2018 o 14:19 Dave Barach <dbar...@cisco.com> pisze:

If you don't describe the "specific hardware configuration," we can't help you.

-----Original Message-----
From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Konrad Gutkowski
Sent: Friday, February 23, 2018 9:10 PM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] clib_time_now

Hi,

If I'm reading this correctly clib_time_verify_frequency takes into considetation only recent tick's, while the result is applied to the total number of tick's since program start.

From what I saw, in normal circumstances with cpu speed scaling it will very rarely lead to main thread stalling.

With some specific hardware configuration it makes vpp almost inoperable.

Thanks,

--
Konrad Gutkowski








--
--
Konrad Gutkowski

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8323): https://lists.fd.io/g/vpp-dev/message/8323
View All Messages In Topic (3): https://lists.fd.io/g/vpp-dev/topic/12586493
Mute This Topic: https://lists.fd.io/mt/12586493/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to