Community discussions

MikroTik App
 
ia2130
just joined
Topic Author
Posts: 2
Joined: Tue Aug 28, 2018 4:36 pm

Mikrotik CHR speed performance problem

Tue Aug 28, 2018 7:47 pm

I have mikrotik chr 6.42.7 router on my esxi 6.0 u3 hypervisor with P10 licence, which connect to couple subnets.All my virtual machines use VMXNET3 adapter with 10Gb speed, speed between hosts in one subnet(network) 4-5Gb, but I see that when I send traffic betweent subnets speed is going down and became to 2Gb.I have pretty simple config of my microtik
/interface ethernet
set [ find default-name=ether2 ] mtu=1500
set [ find default-name=ether3 ] mtu=1500
/ip address
add address=10.10.10.1/24 interface=ether2 network=10.10.10.0
add address=10.10.11.1/24 interface=ether3 network=10.10.11.0
To measuge speed I use iperf.
And I do not understand why it happend, please help me.
 
elbob2002
Member Candidate
Member Candidate
Posts: 252
Joined: Tue May 15, 2018 8:15 pm
Location: Ireland

Re: Mikrotik CHR speed performance problem

Wed Aug 29, 2018 2:10 pm

What is the CPU usage? How many cores have you assigned to CHR?

Finally have you enabled FastTrack?

https://wiki.mikrotik.com/wiki/Manual:IP/Fasttrack
 
ia2130
just joined
Topic Author
Posts: 2
Joined: Tue Aug 28, 2018 4:36 pm

Re: Mikrotik CHR speed performance problem

Wed Aug 29, 2018 2:38 pm

CPU usage 10-15%, virtual machine use 4 core, on my hypervisor I have two Xeon X5670 processor
Yes I try to use fasttrack but it did not bring any results
 
User avatar
TomjNorthIdaho
Forum Guru
Forum Guru
Posts: 1492
Joined: Mon Oct 04, 2010 11:25 pm
Location: North Idaho
Contact:

Re: Mikrotik CHR speed performance problem

Sat Sep 08, 2018 1:04 am

A method to get more speed out of a very busy CHR router:

On the physical computer , in the BIOS , disable hyper-threading & set for maximum performance.
On the hyper-visor (VmWare ESXi , set for performance.
Then on the virtual CHR router , enable 8 processors.
Limit other virtual hosted servers on the hyper-visor.

Note - with hyper-threading disabled, the guest hosted CHR now actually has twice the power (providing you are using the same processor count). And - also of note - now your processor CPU cache is more efficient and will have more CPU cache hits.

FYI - With a CHR, you should be able to perform a udp btest (send or receive) to 127.0.0.1 and acheive around 20-Gig.
If you can only acheive 15 Gig or less , then you are running on an old-slow-tired physical computer.
If you can acheive 21 Gig or faster, then you are running on a normal decent physical server.
If you can acheive over 25 Gig, then you are probable running on a newer high-end physical server.

FYI - My CHR systems btest to 127.0.0.1 at 23.6 Gbps.
I have never seen any mikrotik board even come close to 1/3 to 1/2 these speeds on a btest to 127.0.0.1

North Idaho Tom Jones
 
TimRSA
just joined
Posts: 5
Joined: Tue Dec 11, 2018 11:31 am

Re: Mikrotik CHR speed performance problem

Tue Dec 11, 2018 11:42 am

Hi guys,

I am new to this forum, I was wondering if anyone got better performance by disabling hyper threading. I will need to take down production routers to do this. We have a 9 core cloud core router doing 5x more traffic and the CPU usage is around 40-50% at peak. I have 2x CHR routers with 8 cores of 2.6GHZ Xeon processor, doing around 15Mbps of traffic per interface (WAN and LAN) and the CPU is sitting around 15-25% which I feel is very high for the CPU spec.

These are VM's running on ESXi 6.0.0, similarly, I have used VMXNET3 and the Licence is P1, I won't need more than 1Gbps. My firewall rules are limited to dropping invalid connections and anything that doesn't match my allow rules, there are 11 rules. No NAT rules, no Mangle rules.

I am keen to find a solution to this issue, anyone input would be appreciated. I have attached some screenshots below:

Image


Image
 
shiyiqiang08
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Wed Dec 05, 2018 7:35 am

Re: Mikrotik CHR speed performance problem

Tue Dec 11, 2018 1:27 pm

Hi guys,

I am new to this forum, I was wondering if anyone got better performance by disabling hyper threading. I will need to take down production routers to do this. We have a 9 core cloud core router doing 5x more traffic and the CPU usage is around 40-50% at peak. I have 2x CHR routers with 8 cores of 2.6GHZ Xeon processor, doing around 15Mbps of traffic per interface (WAN and LAN) and the CPU is sitting around 15-25% which I feel is very high for the CPU spec.

These are VM's running on ESXi 6.0.0, similarly, I have used VMXNET3 and the Licence is P1, I won't need more than 1Gbps. My firewall rules are limited to dropping invalid connections and anything that doesn't match my allow rules, there are 11 rules. No NAT rules, no Mangle rules.

I am keen to find a solution to this issue, anyone input would be appreciated. I have attached some screenshots below:

Image


Image
do you use virtio-net of you VM
it may reduce cpu useage
You do not have the required permissions to view the files attached to this post.
 
TimRSA
just joined
Posts: 5
Joined: Tue Dec 11, 2018 11:31 am

Re: Mikrotik CHR speed performance problem

Tue Dec 11, 2018 2:58 pm

I don't see that setting, are you sure it is available in ESXi 6.0.0?
 
shiyiqiang08
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Wed Dec 05, 2018 7:35 am

Re: Mikrotik CHR speed performance problem

Tue Dec 11, 2018 3:05 pm

I don't see that setting, are you sure it is available in ESXi 6.0.0?
i am not sure,but you can check it online.i use the Virtualbox, when i use virto-net ,the cpu usage reduce 20%.
It's a virtualization technology.
General virtual machines have this function
It can significantly improve network performance and reduce cpu usage
 
TimRSA
just joined
Posts: 5
Joined: Tue Dec 11, 2018 11:31 am

Re: Mikrotik CHR speed performance problem

Tue Dec 11, 2018 3:53 pm

Thanks I will try and find a way to do it, I saw a post regarding setting it up on ESXi, it helps with allowing the tx and rx to use multiple CPU's thus helping the I/O queuing.
I am also going to try a bandwidth test between two CHR's, I want to see where the load is coming in, I don't think it is on the firewall side but I will try enable fast track and disable the Conntrack to lessen the load.
 
User avatar
TomjNorthIdaho
Forum Guru
Forum Guru
Posts: 1492
Joined: Mon Oct 04, 2010 11:25 pm
Location: North Idaho
Contact:

Re: Mikrotik CHR speed performance problem

Tue Dec 11, 2018 6:01 pm

Hi guys,

I am new to this forum, I was wondering if anyone got better performance by disabling hyper threading. I will need to take down production routers to do this. We have a 9 core cloud core router doing 5x more traffic and the CPU usage is around 40-50% at peak. I have 2x CHR routers with 8 cores of 2.6GHZ Xeon processor, doing around 15Mbps of traffic per interface (WAN and LAN) and the CPU is sitting around 15-25% which I feel is very high for the CPU spec.

These are VM's running on ESXi 6.0.0, similarly, I have used VMXNET3 and the Licence is P1, I won't need more than 1Gbps. My firewall rules are limited to dropping invalid connections and anything that doesn't match my allow rules, there are 11 rules. No NAT rules, no Mangle rules.

I am keen to find a solution to this issue, anyone input would be appreciated. I have attached some screenshots below:

Image


Image
Re: I was wondering if anyone got better performance by disabling hyper threading

YES - BIG time.
Also , on your physical hypervisor server (in my case , VMware ESXi ) , there are some more things you can do to give it more throughput power.
- Configure your hypervisor to use delayed_ack = 1 ( nstead of the defualt delayed_ack = 0 )
- Increase your hypervisor network buffer sizes ( helps give you more throughput )
- If you are using a NFS , disable sync ( and also set your NFS server for delayed_ack = 1 )
- Your hypervisor should always have extra un-assigned ram memory and at least 1 free CPU. This gives you some processing power for hypervisor overhead tasks such as snapshots and/or copying/moving datastores.
- When ever possible , use 10-Gig physical network cards
- When ever possible , use paravirtulized devices ( example vmxnet-3 )
- On your physical and on your virtual machines , disable and remove as many devices as possible. You want to keep you interrupts low and free up resources.

North Idaho Tom Jones
 
User avatar
TomjNorthIdaho
Forum Guru
Forum Guru
Posts: 1492
Joined: Mon Oct 04, 2010 11:25 pm
Location: North Idaho
Contact:

Re: Mikrotik CHR speed performance problem

Tue Dec 11, 2018 6:04 pm

I don't see that setting, are you sure it is available in ESXi 6.0.0?
Disable hyper-threading on the physical computer in the BIOS.
 
TimRSA
just joined
Posts: 5
Joined: Tue Dec 11, 2018 11:31 am

Re: Mikrotik CHR speed performance problem

Wed Dec 12, 2018 8:36 am

Thanks for the feedback, will give it a try.

I did try a Bandwidth test from one router to the other last night, from LAN interface to LAN interface I got just under a Gbps both ways which is acceptable, the CPU was under 10% which is confusing. I'm still not sure if the issue is with the firewall or with the routing of packets between two interfaces on two different subnets. Will investigate further and post results.

Thanks again!
 
TimRSA
just joined
Posts: 5
Joined: Tue Dec 11, 2018 11:31 am

Re: Mikrotik CHR speed performance problem

Wed Dec 12, 2018 10:55 am

Just an update, I have not yet hanged BIOS settings, however, we are using these routers to cross-connect with voice network providers. I noticed that SIP direct media was enabled, I have previously had issues with this setting, do you think it could have been causing load? we only push SIP traffic over these routers.
 
User avatar
Cha0s
Forum Guru
Forum Guru
Posts: 1135
Joined: Tue Oct 11, 2005 4:53 pm

Re: Mikrotik CHR speed performance problem

Sun Jan 20, 2019 2:53 pm

That (voip) explains the high packet rate but low bandwidth I saw on your screenshots.
Unless you use NAT, you don't need the SIP direct media helper (and I think it doesn't even get involved in forwarded traffic when there is no NAT).

Also, connection tracking in general, with lots of connections and/or packet rate can cause high load. If you can, disable it altogether, or if you don't need the voip traffic to be tracked, then apply no-track rules in the Raw table for that particular traffic.

Doing a bandwidth test can yield high bandwidth numbers with low CPU usage because the bandwidth test uses just a few connections and large sized packets.
Whereas having 14Kpps in voip traffic, must mean you have tons of simultaneous calls/connections - which is more heavy for connection-tracking.
 
User avatar
Paternot
Forum Veteran
Forum Veteran
Posts: 953
Joined: Thu Jun 02, 2016 4:01 am
Location: Niterói / Brazil

Re: Mikrotik CHR speed performance problem

Mon Jan 21, 2019 2:59 am

A method to get more speed out of a very busy CHR router:

On the physical computer , in the BIOS , disable hyper-threading & set for maximum performance.
That's official Intel recommendation, if virtualization is used. HyperThreading does more harm than good, in this case. :D
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1782
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: Mikrotik CHR speed performance problem

Mon Jan 21, 2019 11:11 am

A method to get more speed out of a very busy CHR router:

On the physical computer , in the BIOS , disable hyper-threading & set for maximum performance.
That's official Intel recommendation, if virtualization is used. HyperThreading does more harm than good, in this case. :D
Isn't that mainly because of security (Meltdown & co)?
 
User avatar
Paternot
Forum Veteran
Forum Veteran
Posts: 953
Joined: Thu Jun 02, 2016 4:01 am
Location: Niterói / Brazil

Re: Mikrotik CHR speed performance problem

Mon Jan 21, 2019 12:11 pm

A method to get more speed out of a very busy CHR router:

On the physical computer , in the BIOS , disable hyper-threading & set for maximum performance.
That's official Intel recommendation, if virtualization is used. HyperThreading does more harm than good, in this case. :D
Isn't that mainly because of security (Meltdown & co)?
No. This is from far earlier than that. It's about performance: it is better without HyperThreading (this kind of workload is).
 
User avatar
TomjNorthIdaho
Forum Guru
Forum Guru
Posts: 1492
Joined: Mon Oct 04, 2010 11:25 pm
Location: North Idaho
Contact:

Re: Mikrotik CHR speed performance problem

Tue Jan 22, 2019 7:10 pm

Why disable hyper-threading ?

Hyper-Threading is a CPU trick to make a CPU core appear and function as if it were two CPU cores.
Some teckie info on Hyper-Threading - - - What is actually happening when Hyper-Threading is enabled is this:

- There is a software configured SMI interrupt (System Management Interrupt) that
A) Stops the CPU
B) POPs the stack (It copies the contents of CPU registers to a temporary memory location).
C) It then PUSHes the stack (It copies the contents of a different temporary memory location into the CPU registers)
D) It then allows the CPU to resume running.
E) After a few clock cycles, another SMI event occurs and this time the SMI process POPs and PUSHes the stacks then resumes running the original CPU contents. This process constantly repeats which to make it appear as if a CPU core is is two CPU cores.

There are two big problems with Hyper-Threading:
1) Hyper-Threading is a waste of CPU clock cycles in the SMI process which could be used to keep programs running when Hyper-Threading is disabled.
2) Hyper-Threading chews up built-in CPU cache memory and often creates CPU cache MISSes. A CPU cache MISS forces the CPU to slow down to RAM memory speed instead using the faster built-in CPU CACHE memory speed.

For a faster CHR running on a Hyper-Visor system (like VmWare ESXi):
- Disable Hyper-Threading
- Use Physical 10-Gig network cards (with 10-Gig switches)
- Use ParaVirtual devices (HyperVisor optomised drivers such as VMXNET-3 network interfaces and when possible also use "VMware Paravirtual" SCSI controllers)
- Remove any unnecesary devices not needed (such as CD-Drives, serial-ports, floppy disk drives ...)
- Do not over assign the physical CPUs and memory to virtual machines. Try to keep at least one free CPU
- When possible, move non-essential non-high-speed virtual machines to a different slower Hyper-Visor system (keep your core running fast).
 
Pirlet
just joined
Posts: 16
Joined: Mon Nov 25, 2013 4:13 pm

Re: Mikrotik CHR speed performance problem

Wed Jan 23, 2019 1:18 pm

Hey, let me just get into this thread because we're experiencing the same issue.
Don't want to hijack but maybe it gives more insight to the problem and we can pinpoint more?

Our setup is the following:
Tyan Server: GT62F-B8026 with firmware R3.00
Processors: AMD EPYC 7551P 32-Core Processor
Hypervisor: VMware ESXi, 6.5.0, 7967591
NICs: Mellanox MT27630 (ConnectX-4 LX)
Storage: Full Flash Dorado 5000v3

So the following has been tested and applied:
  • Disabled SMT
  • Paravirtualisation Enabled
  • Delayed Ack on HBA inheritance off and manually Enabled
  • CPU is 8 sockets with 1 core for this test device
  • Storage is on IDE
  • VMXNet3 adapter with DirectIO enabled
Image

This is the result when testing to its own BTest: (This is the ONLY VM running on this host while doing the test)
And CPU is on 12% stable
Image
 
User avatar
TomjNorthIdaho
Forum Guru
Forum Guru
Posts: 1492
Joined: Mon Oct 04, 2010 11:25 pm
Location: North Idaho
Contact:

Re: Mikrotik CHR speed performance problem

Wed Jan 23, 2019 6:31 pm

Pirlet ,

FYI - I assume you are running a Mikrotik CHR (64-Bit ROS).

Heads up - I don't think you need the "SCSI controller 0" in your configuration. If I am correct , the CHR does not even have SCSI drivers and the virtual CHR hard disk is actually IDE.
By removing the SCSI controller , you free up some resources and at least one interrupt.

Here is my configuration on my CHR which happens to be one of my BGP routers:
CHR-NoScsi.png
You do not have the required permissions to view the files attached to this post.
 
Pirlet
just joined
Posts: 16
Joined: Mon Nov 25, 2013 4:13 pm

Re: Mikrotik CHR speed performance problem

Wed Jan 23, 2019 10:16 pm

Pirlet ,

FYI - I assume you are running a Mikrotik CHR (64-Bit ROS).

Heads up - I don't think you need the "SCSI controller 0" in your configuration. If I am correct , the CHR does not even have SCSI drivers and the virtual CHR hard disk is actually IDE.
By removing the SCSI controller , you free up some resources and at least one interrupt.

Here is my configuration on my CHR which happens to be one of my BGP routers:
CHR-NoScsi.png
Hey Tom,
Are you on an AMD platform or Intel platform?

Can I PM you so maybe we could compare configs? That would really help me out massively.
 
User avatar
TomjNorthIdaho
Forum Guru
Forum Guru
Posts: 1492
Joined: Mon Oct 04, 2010 11:25 pm
Location: North Idaho
Contact:

Re: Mikrotik CHR speed performance problem

Thu Jan 24, 2019 2:40 am

Pirlet ,

FYI - I assume you are running a Mikrotik CHR (64-Bit ROS).

Heads up - I don't think you need the "SCSI controller 0" in your configuration. If I am correct , the CHR does not even have SCSI drivers and the virtual CHR hard disk is actually IDE.
By removing the SCSI controller , you free up some resources and at least one interrupt.

Here is my configuration on my CHR which happens to be one of my BGP routers:
CHR-NoScsi.png
Hey Tom,
Are you on an AMD platform or Intel platform?

Can I PM you so maybe we could compare configs? That would really help me out massively.
I use only Intel Xeon processors.

Re: Can I PM you so maybe we could compare configs?
Sure
 
User avatar
TomjNorthIdaho
Forum Guru
Forum Guru
Posts: 1492
Joined: Mon Oct 04, 2010 11:25 pm
Location: North Idaho
Contact:

Re: Mikrotik CHR speed performance problem

Thu Jan 24, 2019 2:57 am

Getting the most performance out of a CHR (in my case , two CHRs on a single physical computer with two Intel Xeon CPUs (10 cores each) with Hyper-Threading disabled)

OK - so I have been blabbing quite alot about CPU cache. Well , here is another trick to get even more out of a couple of CHRs running on the same physical box.

Use CPU affinity (specify which CPU cores a hosted CHR can use

Info: I have a SuperMicro box , two 10-core Xeon processors (Cores 0 through 19) , Hyper-Threading disabled , I am using VMware ESXi for my Hyper-Visor.

CHR#1 - Set host CPU affinity to 1-9 ( 9 cores reserved on physical CPU1 )
CHR #2 - Set host CPU affinity to 11-19 ( 9 cores reserved on physical CPU2 )

CHR #1 does not share any CPU cache with CHR #2 (Both CHRs have their own semi-private CPU cache and dedicated cores to each running CHR)

The results , both CHRs now run faster.
Note: CHR #2 might be a little faster because it is likely not sharing any CPU cache with the VmWare ESXi hosing Hyper-Visor operating system.
Note: CHR #1 might share some CPU cache with the host VmWare ESXi Hyper-Visor operating system.

Note: If you do not define CPU affinity , you can potentially end up with some CPU cores doing nothing at almost zero percent CPU usage and other CPU cores running at 50 to 100 percent CPU usage handeling multiple hosts at the same time (swapping jobs).

One thing I have not tried yet is to define what CPU cores the actual VmWare ESXi system can use for it's own processes.


North Idaho Tom Jones


EDIT - additional info added

If you have more than 1 physical CPU on your Hyper-Visor system (example two 10-core CPUs with 30-Meg CPU cache per Xeon CPU), and you only run a single HOST CHR with no other hosts running - you can also do this:

--> use CPU affinity 6-14 (you end up with 60-Meg of CPU cache on your single CHR host)
 
pospanko
Member Candidate
Member Candidate
Posts: 279
Joined: Sun Dec 18, 2005 4:23 pm

Re: Mikrotik CHR speed performance problem

Thu Jan 24, 2019 9:08 am

Getting the most performance out of a CHR (in my case , two CHRs on a single physical computer with two Intel Xeon CPUs (10 cores each) with Hyper-Threading disabled)

OK - so I have been blabbing quite alot about CPU cache. Well , here is another trick to get even more out of a couple of CHRs running on the same physical box.

Use CPU affinity (specify which CPU cores a hosted CHR can use

Info: I have a SuperMicro box , two 10-core Xeon processors (Cores 0 through 19) , Hyper-Threading disabled , I am using VMware ESXi for my Hyper-Visor.

CHR#1 - Set host CPU affinity to 1-9 ( 9 cores reserved on physical CPU1 )
CHR #2 - Set host CPU affinity to 11-19 ( 9 cores reserved on physical CPU2 )

CHR #1 does not share any CPU cache with CHR #2 (Both CHRs have their own semi-private CPU cache and dedicated cores to each running CHR)

The results , both CHRs now run faster.
Note: CHR #2 might be a little faster because it is likely not sharing any CPU cache with the VmWare ESXi hosing Hyper-Visor operating system.
Note: CHR #1 might share some CPU cache with the host VmWare ESXi Hyper-Visor operating system.

Note: If you do not define CPU affinity , you can potentially end up with some CPU cores doing nothing at almost zero percent CPU usage and other CPU cores running at 50 to 100 percent CPU usage handeling multiple hosts at the same time (swapping jobs).

One thing I have not tried yet is to define what CPU cores the actual VmWare ESXi system can use for it's own processes.


North Idaho Tom Jones


EDIT - additional info added

If you have more than 1 physical CPU on your Hyper-Visor system (example two 10-core CPUs with 30-Meg CPU cache per Xeon CPU), and you only run a single HOST CHR with no other hosts running - you can also do this:

--> use CPU affinity 6-14 (you end up with 60-Meg of CPU cache on your single CHR host)
How much traffic/users do you run on system like this? What do you do on on it? QoS, Firewall, NAT, BGP...?
 
User avatar
TomjNorthIdaho
Forum Guru
Forum Guru
Posts: 1492
Joined: Mon Oct 04, 2010 11:25 pm
Location: North Idaho
Contact:

Re: Mikrotik CHR speed performance problem

Thu Jan 24, 2019 5:46 pm

Getting the most performance out of a CHR (in my case , two CHRs on a single physical computer with two Intel Xeon CPUs (10 cores each) with Hyper-Threading disabled)

OK - so I have been blabbing quite alot about CPU cache. Well , here is another trick to get even more out of a couple of CHRs running on the same physical box.

Use CPU affinity (specify which CPU cores a hosted CHR can use

Info: I have a SuperMicro box , two 10-core Xeon processors (Cores 0 through 19) , Hyper-Threading disabled , I am using VMware ESXi for my Hyper-Visor.

CHR#1 - Set host CPU affinity to 1-9 ( 9 cores reserved on physical CPU1 )
CHR #2 - Set host CPU affinity to 11-19 ( 9 cores reserved on physical CPU2 )

CHR #1 does not share any CPU cache with CHR #2 (Both CHRs have their own semi-private CPU cache and dedicated cores to each running CHR)

The results , both CHRs now run faster.
Note: CHR #2 might be a little faster because it is likely not sharing any CPU cache with the VmWare ESXi hosing Hyper-Visor operating system.
Note: CHR #1 might share some CPU cache with the host VmWare ESXi Hyper-Visor operating system.

Note: If you do not define CPU affinity , you can potentially end up with some CPU cores doing nothing at almost zero percent CPU usage and other CPU cores running at 50 to 100 percent CPU usage handeling multiple hosts at the same time (swapping jobs).

One thing I have not tried yet is to define what CPU cores the actual VmWare ESXi system can use for it's own processes.


North Idaho Tom Jones


EDIT - additional info added

If you have more than 1 physical CPU on your Hyper-Visor system (example two 10-core CPUs with 30-Meg CPU cache per Xeon CPU), and you only run a single HOST CHR with no other hosts running - you can also do this:

--> use CPU affinity 6-14 (you end up with 60-Meg of CPU cache on your single CHR host)
How much traffic/users do you run on system like this? What do you do on on it? QoS, Firewall, NAT, BGP...?
Re: How much traffic/users do you run on system like this & BGP
Answer: I have about 16 Class C networks , two BGP feeds (primary BGP is 2-Gig burstable to 4-Gig & secondary-fallback BGP is 512-Meg), during busy hours we average about 1.5 Gig sustained traffic.

Re: What do you do on on it?
Answer: We have over 1,000+ customers , 2/3s of them on Mikrotik wireless and 1/3 on fiber.

Re: QoS
Answer: We are in the process of changing from PfSense bandwidth management per MAC address to CHR based systems bandwidth management per customer IP address. We just are 1/2 the way migrating to the Sonar ISP system (billing & BW management)

Re: Firewall & NAT
Answer: As for our internal office networks, we use PfSense. As for customers , each customer gets a live IP address to our customer located equipment. Our customer located equipment (Mikrotik for wireless customers - Non Mikrotik for fiber customers) perform NAT and firewall at each customer location.

Our goal is to eventually move the bulk of our wireless customers to fiber (mostly GPON fiber). Wireless we generally offer up to 25-Meg accounts , with fiber customers we offer just about any speed a customer may want (mostly 100 Meg customers but some are 256 & 512 & 1-Gig customers). Wireless networks for hundreds to thousands of customers will never have the throughput that fiber customers can acheive.

Because the network is somewhat big and complex for bandwidth management per customer, we have been beefing up our CHR systems so that they can handle 10-Gig throughputs under heavy CPU loads.

North Idaho Tom Jones
 
User avatar
PCaddict69
just joined
Posts: 17
Joined: Fri Jun 29, 2007 6:40 pm

Re: Mikrotik CHR speed performance problem

Wed Mar 06, 2019 4:57 pm

im on my way too switch to chr... Im in my testing so what i learn so far is single thread performance is a big fact to obtain bandwidth speed and convergence ... I do a small bandwidth test on hyper-v with my station 2600x and i got around 40 gbps... So im looking to go to the intel 8600k wich have the best price ratio on single thread performance. I order it today so i will test it and give you results as soon i got it. Second i found on google on a mum document that you get more performance with hyper-v then esxi or proxmox kvm.https://mum.mikrotik.com/presentations/ ... 562405.pdf
 
User avatar
chechito
Forum Guru
Forum Guru
Posts: 2989
Joined: Sun Aug 24, 2014 3:14 am
Location: Bogota Colombia
Contact:

Re: Mikrotik CHR speed performance problem

Fri Jul 19, 2019 1:07 am

im on my way too switch to chr... Im in my testing so what i learn so far is single thread performance is a big fact to obtain bandwidth speed and convergence ... I do a small bandwidth test on hyper-v with my station 2600x and i got around 40 gbps... So im looking to go to the intel 8600k wich have the best price ratio on single thread performance. I order it today so i will test it and give you results as soon i got it. Second i found on google on a mum document that you get more performance with hyper-v then esxi or proxmox kvm.https://mum.mikrotik.com/presentations/ ... 562405.pdf
i have simmilar opinion, single core performance is critical

will be interesting to know how it has gone with 8600k, i agree is the best single core performance cpu available
 
colin
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Mon May 11, 2015 11:11 am

Re: Mikrotik CHR speed performance problem

Sat Nov 30, 2019 9:59 am

Pirlet ,

FYI - I assume you are running a Mikrotik CHR (64-Bit ROS).

Heads up - I don't think you need the "SCSI controller 0" in your configuration. If I am correct , the CHR does not even have SCSI drivers and the virtual CHR hard disk is actually IDE.
By removing the SCSI controller , you free up some resources and at least one interrupt.

Here is my configuration on my CHR which happens to be one of my BGP routers:
CHR-NoScsi.png
CHR support PVSCSI
 
jasonx
just joined
Posts: 11
Joined: Sun Sep 16, 2018 7:07 pm

Re: Mikrotik CHR speed performance problem

Thu Dec 26, 2019 6:32 am

hello

I have same problem.

I have found a solution repeating 8 times the same interface ...

this way, one cpu for each interface .... and balance like magic.

i`m using just nat ....

the other configuration was: 2 interfaces: one for in and another for out ...

using 2 cpus ... high cpu in 90%

its bad for using all cpus to process all bandwidth ...

CHR its desappointing me...

I`ll replicate this for pppoe server

Has another way to balance cpus, without "replicate" the same interface to use all cpus?

I`ve tried everything...
 
chubbs596
Frequent Visitor
Frequent Visitor
Posts: 90
Joined: Fri Dec 06, 2013 6:07 pm

Re: Mikrotik CHR speed performance problem

Wed Apr 28, 2021 1:38 pm

Hi Guys,

Im seeing a similar issues where our Voip services start seeing a drop is Voice Quality once the CHR goes above 100000PPS, We have tried VMware and Proxmox 6.3 KVM and the latest long term stable 6.47.9 CHR , from my side it seems we are getting better performance on Proxmox and using VirIO nics

The host is a AMD EPYC Rome 7302P 16 core with HT/SMT disabled in the BIOS with 128GB RAM and 3 x 4 port 10G Intel X710 network Cards, 8 ports are is a LACP bond to 2 switches in MLAG and 4ports per switch for the iBGP traffic, and the last 4 ports are used for peering with upstream providers eBGP traffic

The CHR is configured with 14 vCPU's and 8GB Ram and 3 Nics at the moment, 1 for iBGP and 2 to Upstream eBGP

Bandwidth test to 127.0.0.1 is giving about 180Gbps with 14 vCPU, strange enough with only 2vCPU I get 800Gbps
 
User avatar
IPAsupport
Frequent Visitor
Frequent Visitor
Posts: 62
Joined: Fri Sep 20, 2019 4:02 pm

Re: Mikrotik CHR speed performance problem

Fri Apr 30, 2021 12:13 am

What is the brand/model of the server? I happened to me once that the PCIe slot was x8 but in the specs I found out it was wired as x4, so the card was not able to use its full bandwidth
 
chubbs596
Frequent Visitor
Frequent Visitor
Posts: 90
Joined: Fri Dec 06, 2013 6:07 pm

Re: Mikrotik CHR speed performance problem

Fri Apr 30, 2021 4:51 am

What is the brand/model of the server? I happened to me once that the PCIe slot was x8 but in the specs I found out it was wired as x4, so the card was not able to use its full bandwidth
Hi,
Chassis is a supermicro "2014TP-HTR" and the board "H12SST-PS" based on the web page the slots are PCI-E 4.0 x16 slots

https://www.supermicro.com/en/Aplus/sys ... TP-HTR.cfm
https://www.supermicro.com/en/products/ ... /H12SST-PS
 
User avatar
Paternot
Forum Veteran
Forum Veteran
Posts: 953
Joined: Thu Jun 02, 2016 4:01 am
Location: Niterói / Brazil

Re: Mikrotik CHR speed performance problem

Fri Apr 30, 2021 6:05 am

Bandwidth test to 127.0.0.1 is giving about 180Gbps with 14 vCPU, strange enough with only 2vCPU I get 800Gbps
Your CPU has 4 CCD, 8 CCX and two active cores per CCX. ( https://en.wikipedia.org/wiki/Epyc#Seco ... pyc_(Rome) )

I have 4 ideas, about this.
1) With just two vCPUs, the OS puts all the VM on the same CCX. This will allow them to share L3 cache and speed up the communication.
2) Bandwidth test will use a fair chunk of the CPU, just to manage everything. Maybe using just 12 cores to the CPU, and leaving the rest for the host server?
3) If I'm not mistaken, the Epyc CPU uses 4 memory channels. You do have 4 (or 8) memory sticks (and in the right slots), don't You?
4) Have You looked into the CPU usage, while dropping packets? Just to make sure the machine is CPU bound?
 
chubbs596
Frequent Visitor
Frequent Visitor
Posts: 90
Joined: Fri Dec 06, 2013 6:07 pm

Re: Mikrotik CHR speed performance problem

Fri Apr 30, 2021 2:35 pm

Bandwidth test to 127.0.0.1 is giving about 180Gbps with 14 vCPU, strange enough with only 2vCPU I get 800Gbps
Your CPU has 4 CCD, 8 CCX and two active cores per CCX. ( https://en.wikipedia.org/wiki/Epyc#Seco ... pyc_(Rome) )

I have 4 ideas, about this.
1) With just two vCPUs, the OS puts all the VM on the same CCX. This will allow them to share L3 cache and speed up the communication.
2) Bandwidth test will use a fair chunk of the CPU, just to manage everything. Maybe using just 12 cores to the CPU, and leaving the rest for the host server?
3) If I'm not mistaken, the Epyc CPU uses 4 memory channels. You do have 4 (or 8) memory sticks (and in the right slots), don't You?
4) Have You looked into the CPU usage, while dropping packets? Just to make sure the machine is CPU bound?
Hi Paternot,

We have 4 memory sticks, and I have checked and no CPU core on the host is maxing during production traffic yet we still see packetloss

The servers we pre-assembled by supermicro so Im sure it will be configure correctly in regards to memory sticks in correct channels
 
User avatar
Paternot
Forum Veteran
Forum Veteran
Posts: 953
Joined: Thu Jun 02, 2016 4:01 am
Location: Niterói / Brazil

Re: Mikrotik CHR speed performance problem

Fri Apr 30, 2021 3:04 pm

We have 4 memory sticks, and I have checked and no CPU core on the host is maxing during production traffic yet we still see packetloss
Have You tried to pass traffic through the host server, to check if it's just the VM or both loosing packets? Have You pinned the VM CPUs to the host CPU cores?
 
chubbs596
Frequent Visitor
Frequent Visitor
Posts: 90
Joined: Fri Dec 06, 2013 6:07 pm

Re: Mikrotik CHR speed performance problem

Fri Apr 30, 2021 5:54 pm

We have 4 memory sticks, and I have checked and no CPU core on the host is maxing during production traffic yet we still see packetloss
Have You tried to pass traffic through the host server, to check if it's just the VM or both loosing packets? Have You pinned the VM CPUs to the host CPU cores?
I have not seen how its possible to PIN cpu core on a VM with PROXMOX
 
KayBur
just joined
Posts: 16
Joined: Thu Apr 29, 2021 3:33 pm
Location: Springfield

Re: Mikrotik CHR speed performance problem

Fri May 07, 2021 2:12 pm

We have 4 memory sticks, and I have checked and no CPU core on the host is maxing during production traffic yet we still see packetloss
Have You tried to pass traffic through the host server, to check if it's just the VM or both loosing packets? Have You pinned the VM CPUs to the host CPU cores?
I have not seen how its possible to PIN cpu core on a VM with PROXMOX
The problem with packet loss is definitely not from the side of Internet lags? Sometimes it happens.
 
chubbs596
Frequent Visitor
Frequent Visitor
Posts: 90
Joined: Fri Dec 06, 2013 6:07 pm

Re: Mikrotik CHR speed performance problem

Fri May 07, 2021 4:53 pm

We have 4 memory sticks, and I have checked and no CPU core on the host is maxing during production traffic yet we still see packetloss
Have You tried to pass traffic through the host server, to check if it's just the VM or both loosing packets? Have You pinned the VM CPUs to the host CPU cores?
I have not seen how its possible to PIN cpu core on a VM with PROXMOX
The problem with packet loss is definitely not from the side of Internet lags? Sometimes it happens.
Hi ,

It is not, we are getting packetloss on the internal network aswell, we have a support ticket open with Mikrotik, they have given us a development version to load, and we have sent them .rif files which they have sent to the developers,

Seems there is packet loss once we start seeing high pps on the interfaces

Who is online

Users browsing this forum: No registered users and 11 guests