[go-nuts] Re: Go schedule latency issue

2018-01-22 Thread sotter . liu
Is waf-client the program that has the real-time requirement? -> yes. I've done a lot of optimization in terms of performance and GC. This is the last remain latency issue I fount, and I've test in a separate linux env. 在 2018年1月22日星期一 UTC+8下午11:42:49,matthe...@gmail.com写道: > > The higher priori

Re: [go-nuts] Re: Go schedule latency issue

2018-01-22 Thread sotter . liu
thanks. I've test in a separate linux server(Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz * 48) 2018/01/23 14:41:14 CheckRequest time : 3393 2018/01/23 14:41:14 --- trace begin!!! 2018/01/23 14:41:14 CheckRequest time : 3021 2018/01/23 14:41:19 Total : 107214 2018/01/23 14

Re: [go-nuts] Re: Go schedule latency issue

2018-01-22 Thread Jesper Louis Andersen
Beware of running the test generator on the same machine as the SUT (system under test). There are several things here: * On localhost, the network stack bypasses several kernel parts. This may lead to wrong test data. * The test generator might steal resources from the SUT, skewing the numbers *

[go-nuts] Re: Go schedule latency issue

2018-01-22 Thread matthewjuran
The higher priority -19 we're interested in has the Permission denied error message, the command needs to be run with elevated OS privileges. Is waf-client the program that has the real-time requirement? If you separate the calling process out to a separate computer do you still see the delay?

[go-nuts] Re: Go schedule latency issue

2018-01-21 Thread sotter . liu
I tested two scenarios for the priority value(19 and -19). The priority setting does affect the waf-client rt : *➜ waf-client git:(master) ✗ nice -n -19 ./waf-client* nice: setpriority: Permission denied 2018/01/22 10:37:47 Add Client : 0.0.0.0:8000 2018/01/22 10:37:47 --

[go-nuts] Re: Go schedule latency issue

2018-01-19 Thread matthewjuran
It looks like MacOS had CPU PM options removed from pmset in the last few years, so I’m not sure it’s possible to disable in recent versions. On Ubuntu I was able to get cpufrequtils to work a few months ago: https://askubuntu.com/questions/523640/how-i-can-disable-cpu-frequency-scaling-and-set-

[go-nuts] Re: Go schedule latency issue

2018-01-18 Thread sotter . liu
a. request client and server running on the same computer. b. Unfortunately, I have not find the method how to disable OS power management. I re-running this case on linux server, result shows that there is almost no time out. I suspect the P's block is affected by the external operating envir

[go-nuts] Re: Go schedule latency issue

2018-01-18 Thread matthewjuran
Is your test request source running on the same computer? Have you disabled OS power management features? Matt On Thursday, January 18, 2018 at 10:23:43 AM UTC-6, sotte...@gmail.com wrote: > > I developed an RPC Service with high requirements for real-time > performance. There was an unexpecte