performance improvement suggestions

More
14 Feb 2021 12:43 #198802 by rodw
I take it this PC is connected to the internet.
Can you advise the ip address of your gateway/router?

It appears that both your NIC's have an address in the 10.10.10.X range and I'm assuming the 7i76e is 10.10.10.10. Your network IP address should be in a different range. eg 192.168.1.X I don't run a static IP address for that network and allow it to be allocated by the DHCP server.

So I think your machine may become confused when it looks for your 7i76e becasue it does not know which NIC to look from.

I did discuss this in a recent video which may help. (about 16 min in)

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

More
14 Feb 2021 12:55 - 14 Feb 2021 12:56 #198803 by robertspark
I can move the address range on the Mesa boards using mesaflash (I've been playing around already because they would need different addresses anyway from 10.10.10.10)

pcw mentioned that with two NICs you may need to modify the ini / HAL file
Last edit: 14 Feb 2021 12:56 by robertspark.

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

More
14 Feb 2021 14:35 #198808 by robertspark
any merit in limiting the network ip address range via subnet mask?

auto enp2s0
iface enp2s0 inet static
address 10.10.10.11/24
hardware-irq-coalesce-rx-usecs 0

auto enp3s0
iface enp3s0 inet static
address 11.10.10.11/24
hardware-irq-coalesce-rx-usecs 0

wiki.debian.org/NetworkConfiguration

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

More
14 Feb 2021 14:57 #198811 by robertspark
.... well, i dont know what ive done but it now works with a 1000000 servo period

(I've fiddled with a bit..... rebooted with original rt kernel
+ changed the interfaces file as above .... something worked....

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

More
14 Feb 2021 17:04 #198814 by robertspark
I was wondering if there was a way to lower the priority of applications in linux (such as firefox), as it weems that my latency rises from ~20K to 52K when opening a youtube clip.

is there any merit in lowering the application priorities / increasing those priorities used by linuxcnc

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

More
14 Feb 2021 17:47 #198817 by tommylight

robertspark wrote:
auto enp2s0
iface enp2s0 inet static
address 10.10.10.11/24
hardware-irq-coalesce-rx-usecs 0

auto enp3s0
iface enp3s0 inet static
address 11.10.10.11/24
hardware-irq-coalesce-rx-usecs 0

No, just no....
Same address on two interfaces = never ever.
IP range of 10.n.n.n uses the /8 subnet but it does work with 24, so that is ok
Set the second interface to 12 or something else, it can not be 1 or 10 or in this case 11.
Using two sets of addresses would be much better, 192.168.n.n for one and 10.n.n.n for the other.
As long as you have the Mesa on the same address space as the internet you can expect latency issues.

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

More
14 Feb 2021 19:07 - 14 Feb 2021 19:51 #198827 by robertspark
is that not the purpose of subnetting

second metwork address was
address 11.10.10.11/24

www.davidc.net/sites/default/subnets/subnets.html

changed them to
address 11.10.10.11/28 to limit the address range on each of the NIC ports. 1-14
Last edit: 14 Feb 2021 19:51 by robertspark.

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

More
14 Feb 2021 21:09 #198842 by rodw
I think where Tommy is coming from is that the private IP address ranges that are not routed on the internet are
192.168.X.X
10.X.X.X.X
172.16.X.X

You need to ensure your internal IP's are in one of these ranges.

So one day you might need to get to something on the public 11.10.10.X IP address range and you won't be able to.
Why don't you go with
10.10.10.X and 10.10.11.X ?
The following user(s) said Thank You: tommylight

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

More
14 Feb 2021 21:31 #198849 by rodw
Just a bit further on this. A very long time ago in a more generous and slower era, I ran a web server via a dedicated dialup link!
At that time, the ISP allocate me a whole /26 range so I had 64 registered IP addresses. I did have to do a bit of fancy subnetting back then, but for home use, its much cleaner to subnet by different ranges (eg 192.168.1/24 10.10.10/24 and 172.16.1/24.

I always use DHCP wherever possible and if a machine benefits from a fixed IP address eg, a printer or security camera, I use a DHCP address reservation for it as its much easier to manage the network that way and I always know where my printer is!
The following user(s) said Thank You: robertspark

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

More
14 Feb 2021 21:52 #198852 by tommylight

robertspark wrote:
second metwork address was
address 11.10.10.11/24

Oooops, missed the 11, sorry for that, but that makes things even worse as addresses starting with 11.n.n.n are routable and public, so they are not supposed to be used on internal networks.
Rod's advice is very good for separating the networks.
The following user(s) said Thank You: robertspark

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

Time to create page: 0.101 seconds
Powered by Kunena Forum