Latency Spikes With No Load
- Pine_Madness
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
19 Aug 2020 17:25 #178727
by Pine_Madness
Latency Spikes With No Load was created by Pine_Madness
Just like the title says, my latency spikes when my system isn't under load.
I am running a pine64 on armbian with a preempt-rt kernel.
Attached is the Latency Histogram for no base, no load, no base heavy load.
The standard latency test has a max jitter of about 50,000 when under load or when running that base thread.
Any Ideas as how I can fix this? I haven't really seen anyone use a pine before. It a 4 or so year old board so there is probably a reason why.
I am running a pine64 on armbian with a preempt-rt kernel.
Attached is the Latency Histogram for no base, no load, no base heavy load.
The standard latency test has a max jitter of about 50,000 when under load or when running that base thread.
Any Ideas as how I can fix this? I haven't really seen anyone use a pine before. It a 4 or so year old board so there is probably a reason why.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17987
- Thank you received: 4837
19 Aug 2020 17:37 #178729
by PCW
Replied by PCW on topic Latency Spikes With No Load
If this was x86 I would be temped to add "idle=poll" to the kernel command line via grub
Not sure if you can do a similar thing here.
It might also be related to power management, is there any "turbo" mode or clock speed
switching enabled?
Not sure if you can do a similar thing here.
It might also be related to power management, is there any "turbo" mode or clock speed
switching enabled?
Please Log in or Create an account to join the conversation.
- Pine_Madness
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
19 Aug 2020 17:51 #178732
by Pine_Madness
Replied by Pine_Madness on topic Latency Spikes With No Load
It uses Uboot I believe. There is the option to edit something similar to cmdline.txt for the pi. That's how I added the isolcpus.
I'll see if I can add something like idle=poll.
I'll also see if I can force a bit of an overclock to make sure it isn't under underclocking on me. I have a desktop cooler strapped to this thing so heat isn't an issue.
I'll update when I add these changes and test them.
I'll see if I can add something like idle=poll.
I'll also see if I can force a bit of an overclock to make sure it isn't under underclocking on me. I have a desktop cooler strapped to this thing so heat isn't an issue.
I'll update when I add these changes and test them.
Please Log in or Create an account to join the conversation.
- Pine_Madness
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
19 Aug 2020 20:39 #178754
by Pine_Madness
Replied by Pine_Madness on topic Latency Spikes With No Load
I set the cpu governor to performance and the latency looks alot better when not under load.
Given the latency histogram when the pine was under load, would that be usable for a system with a 7i76e?
Given the latency histogram when the pine was under load, would that be usable for a system with a 7i76e?
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19504
- Thank you received: 6540
19 Aug 2020 20:49 #178756
by tommylight
Replied by tommylight on topic Latency Spikes With No Load
Not really. Did you test under load with the governor on Performance ?Given the latency histogram when the pine was under load, would that be usable for a system with a 7i76e?
Please Log in or Create an account to join the conversation.
- Pine_Madness
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
19 Aug 2020 20:55 #178760
by Pine_Madness
Replied by Pine_Madness on topic Latency Spikes With No Load
Yeah. My result looked just like the graph under load. If it inst good enough, I'll try to overclock the system and see if it improves.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19504
- Thank you received: 6540
19 Aug 2020 20:57 #178761
by tommylight
Replied by tommylight on topic Latency Spikes With No Load
Overclocking will make it worse, try underclocking.
Did you also test without isolcpu and with isolcpu 2,3 ?
Did you also test without isolcpu and with isolcpu 2,3 ?
Please Log in or Create an account to join the conversation.
- Pine_Madness
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
19 Aug 2020 21:00 #178763
by Pine_Madness
Replied by Pine_Madness on topic Latency Spikes With No Load
I haven't tried that yet. I'll try it again when the backup is finished.
It seems weird to me that overclocking would make it worse. Would it at least benefit from a memory overclock?
It seems weird to me that overclocking would make it worse. Would it at least benefit from a memory overclock?
Please Log in or Create an account to join the conversation.
- Pine_Madness
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
19 Aug 2020 23:44 #178777
by Pine_Madness
Replied by Pine_Madness on topic Latency Spikes With No Load
Nothing seems to get it down much lower. I'll just switch my focus to the pi 4 which has been done before.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17987
- Thank you received: 4837
19 Aug 2020 23:48 #178778
by PCW
Replied by PCW on topic Latency Spikes With No Load
The 80 or 90 usec seems ok
Do you have a Mesa Ethernet card to try?
Worst case you may need to run at 500Hz servo thread rather than 1 KHz
(This is normally OK unless you have a very high acceleration machine)
Do you have a Mesa Ethernet card to try?
Worst case you may need to run at 500Hz servo thread rather than 1 KHz
(This is normally OK unless you have a very high acceleration machine)
Please Log in or Create an account to join the conversation.
Time to create page: 0.067 seconds