HP dc5100 Latency Spikes

More
25 May 2015 03:26 #58975 by Fit0
Hi guys,

Though I am not new to cnc, I am trying to take the leap from Mach3. Prior to installing the live disk with Linuxcnc 2.6 and Debian, I had no prior experience with Linux whatsoever and am finding the learning curve pretty steep.

The thing is that I have Debian and Linuxcnc 2.6 installed in an HP dc5100 pentium 4 dual core pc, with 3.2Ghz processor and 2Gb ram. I have seen published specs saying the onboard graphics card is an Nvidia, though I am not 100% sure whether that is the case. I have disabled hyperthreading in the BIOS and have turned off all power management options as far as I could.

I have also done the isolcpus=1 thing.

When I run the latency test with six websites open, ten instances of glxgears and moving windows about, both the servo thread and the base thread show a jitter of about 6,000 - 8,000 ns. After a while, and without doing anything, the base thread jumps to 21,000 - 23,000 ns (though the servo thread stays at about 8,000 ns). If I open a Youtube video, both the base thread and servo thread jump to 50,000 - 51,000 ns.

That leads me to suspect the graphics card, but the jump in the base thread from 8k to 23k, I am not sure about. Any ideas?

By the way, as I read here the Matrox graphics cards might solve some latency issues, I bought a Matrox G550 on eBay, soon to arrive. When it does, do I just drop it in a pci slot, plug my montor to it and off I go, or do I have to run any scripts for the system to disconnect from the on board graphics and take the G550 into account instead?

Thanks in advance guys,

Fito

Please Log in or Create an account to join the conversation.

More
25 May 2015 05:28 #58981 by andypugh
Replied by andypugh on topic HP dc5100 Latency Spikes

After a while, and without doing anything, the base thread jumps to 21,000 - 23,000 ns (though the servo thread stays at about 8,000 ns).


Is there any periodicity to this? A spike every minute (or slightly more) is often SMI. You can't see that too easily with the graphical version of the latency test, though.

What sort of system do you intend to build? If you are software-stepping and using the parport then 50k is a bit disappointing (but not hopeless). If you intend to run a hardware step generator or a servo system then the 50k latency is no problem at all.

Please Log in or Create an account to join the conversation.

More
25 May 2015 14:32 #58997 by Fit0
Replied by Fit0 on topic HP dc5100 Latency Spikes
Hi Andy,

Thanks for your reply. No, there doesn't seem to be any periodicity to it at all - or predictability. I just had my first spike after about 16 minutes (went from 11k to 33k), when logging in to reply to you.

I intend running a highly modified BF20 milling machine on steppers and in real life this machine will live in my garage next to the mill and won't be connected to the internet, so I am not sure whether I should not include internet surfing, Youtube, etc. when testing latency. Maybe I should run a more "real life" test and report back. The unpredictability of these spikes still concerns me though...

What else should I try?

Please Log in or Create an account to join the conversation.

More
25 May 2015 14:49 #58998 by Fit0
Replied by Fit0 on topic HP dc5100 Latency Spikes
Update: I just ran a latency test without any websites open, just five instances of glxgears running. When I moved the latency test window about the screen quickly, the base thread jitter jumped from 7k to 20k, which seems to point to the graphics.

I later reset the test and left it alone (didn't touch anything) and the base thread jumped from 7k to 14k after about five minutes (some power management process?). The servo thread always stays put at about 7k.

I then tried to repeat the last test and the base thread went from 7k to 9k after seven minutes and from there to 17k after 8:30 minutes.

Help please! :(

Please Log in or Create an account to join the conversation.

More
25 May 2015 19:08 #59005 by andypugh
Replied by andypugh on topic HP dc5100 Latency Spikes

Help please! :(


Stop worrying, 20k latency is fine.

Please Log in or Create an account to join the conversation.

More
25 May 2015 20:52 #59010 by Fit0
Replied by Fit0 on topic HP dc5100 Latency Spikes
Well, that's great news Andy, thanks.

One more thing: when the Matrox graphics card arrives, do I just slot it in, plug in the monitor and go, or is there anything else I need to do for the system to now take the new crad into account and forget about the onboard one?

Thanks again.

Please Log in or Create an account to join the conversation.

More
25 May 2015 21:00 #59012 by andypugh
Replied by andypugh on topic HP dc5100 Latency Spikes

when the Matrox graphics card arrives, do I just slot it in, plug in the monitor and go, or is there anything else I need to do for the system to now take the new crad into account


I don't know. I would try it that way first, then start Googling if it didn't happen like that.
I have only ever used onboard video, on anything, now I think about it. (except for one rather hacky-upgrade to a Mac G4 Cube that involved moving some large components to the opposite side of the PCB.)

Please Log in or Create an account to join the conversation.

Time to create page: 0.078 seconds
Powered by Kunena Forum