NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Hardware Computer Fantastic latency on Live CD, horrible on HDD

Welcome, Guest
Username: Password: Remember me

TOPIC: Fantastic latency on Live CD, horrible on HDD

Fantastic latency on Live CD, horrible on HDD 14 Jui 2012 07:33 #20918

  • taiden
  • taiden's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 23
  • Karma: 2
Hey all,

Here are my computer's specs

AMD Althon XP 3000+
512 mb of DDR333 (2x256 modules)
Asus a7v8x motherboard
nVidia Geforce 4 ti 4600
Quantum Fireball harddrive from an iMac

I can run 10.04 and 8.04 from the live cd with sub 15k latency jitter consistently.

When installed to my harddrive, the numbers are lower, but spike when I open a program that has not been launched since startup (not in cache?). It spikes to about 8ms. This problem doesn't exist when running from the LiveCDs.

Anyone have any thoughts? I have 8.04 installed on my HDD at this point in time.
The administrator has disabled public write access.

Re:Fantastic latency on Live CD, horrible on HDD 14 Jui 2012 07:46 #20919

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 87
  • Karma: 134
My guess is with only 512Kb of memory it is swapping to the hard drive and that would be very slow indeed.

Can you check your memory usage and swap history in System > Administration > System Monitor while you open the file?

John
The administrator has disabled public write access.

Re:Fantastic latency on Live CD, horrible on HDD 14 Jui 2012 08:11 #20920

  • taiden
  • taiden's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 23
  • Karma: 2
Hi John,

thanks for the reply. Zero swap is being utilized, although I did make the swap partition 1.2gb just for laughs.

I think you made a typo when you said 512 Kb. I was under the impression that 512 mb was more than enough for linuxcnc under 10.04 or 8.04

Edit: only 30% of memory is being used with linuxcnc 2.5 running under 8.04 off my HDD

Thanks,
Luke
Last Edit: 14 Jui 2012 08:17 by taiden.
The administrator has disabled public write access.

Re:Fantastic latency on Live CD, horrible on HDD 14 Jui 2012 08:25 #20921

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 87
  • Karma: 134
Yea, I meant 512Mb and it was a SWAG until someone else like ArcEye comes along with a much better guess...

Do you get the spike if you run a non OpenGL GUI like TKlinux?

John
Last Edit: 14 Jui 2012 08:27 by BigJohnT.
The administrator has disabled public write access.

Re:Fantastic latency on Live CD, horrible on HDD 14 Jui 2012 09:21 #20922

  • taiden
  • taiden's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 23
  • Karma: 2
Not a problem at all John, any help or ideas are welcome.

I'm not sure what tklinux is, and when I try to run it from bash prompt it says 'command not found' so I'm not sure where to go with this one.

Although I would stress that the spike ONLY happens on first launch after a fresh start up.

Example: post fresh start up, I launch firefox. BOOM! 8ms jitter for a split second, then back to normal. Close firefox, and open it again, no increase in jitter.

It's only when a program is first started
The administrator has disabled public write access.

Re:Fantastic latency on Live CD, horrible on HDD 14 Jui 2012 09:26 #20923

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 87
  • Karma: 134
If you fire up LinuxCNC from the menu it is one of the sim configs, I forget the exact name.

John
The administrator has disabled public write access.

Re:Fantastic latency on Live CD, horrible on HDD 14 Jui 2012 09:48 #20924

  • ArcEye
  • ArcEye's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1333
  • Thank you received: 102
  • Karma: 129
Hi

I learnt today that SWAG means "Scientific Wild Assed Guess"!
I am obviously not very internet acronym and text speak savvy!

Is this a ATA / IDE machine?
I take it you have the HDD jumpered master on IDE0 and the CDROM jumpered as slave on IDE0 or master on IDE1 with both on the correct ribbon connector?

My starting SWAG, that they are on different buses, does swapping this change things?

It might be worth swapping ports in either case and testing.

(If SATA, likewise try other ports, but sounds like it is probably an IDE vintage MB)

regards
The administrator has disabled public write access.

Re:Fantastic latency on Live CD, horrible on HDD 14 Jui 2012 09:57 #20925

  • taiden
  • taiden's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 23
  • Karma: 2
I've been totally unable to run latency testing while LinuxCNC is open, so while I can run tklinux I can't see my latency numbers to see what that does.

All the best,
Luke
The administrator has disabled public write access.

Re:Fantastic latency on Live CD, horrible on HDD 14 Jui 2012 10:01 #20926

  • taiden
  • taiden's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 23
  • Karma: 2
It is an IDE motherboard, you are correct. Currently I have

HDD jumpered to master on the last port on the cable hooked up to the primary IDE channel
CDROM jumpered to master on the last port on the cable hooked up to the secondary IDE channel

Come to think of it, I previously had this machine with HDD master, CDROM slave on primary channel and I dont recall there being this jump in latency. I will try this right now and get back to you.

Thanks,
Luke
The administrator has disabled public write access.

Re:Fantastic latency on Live CD, horrible on HDD 14 Jui 2012 10:06 #20927

  • taiden
  • taiden's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 23
  • Karma: 2
ArcEye,

It appears that you have done it!

All situations that would cause the latency to jump are now gone.

The solution (for the time being) was to make the HDD the only IDE peripheral attached to the computer set to master on primary channel.

I cannot break 8k/9k no matter what I try.

I'll do a longer stress test now as I finish up my CNC router.

Perfect timing!

I'll post back the final results.

Thank you everyone for your help including those who helped me out in the IRC channel.
Last Edit: 14 Jui 2012 10:08 by taiden.
The administrator has disabled public write access.
Moderators: ArcEye
Time to create page: 1.064 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.