Joined: 31 Jul 2021 Posts: 2146 Location: All over YOUR webs
Posted: Tue Jul 19, 2022 10:14 Post subject:
Ive taken the liberty to modify your thread title to something specific and edited your post to include the router/build details next to each other, this way people will better see whats what.
I dont think you can in DD-WRT.
You would define the process CPU core affinity and then define the process nice values (ideally).
DD-WRT is not a full blow Linux distro so it likely doesn't have the necessary functionality built in because it needs to be small and optimized.
At least I dont think DD-WRT has these built in. If you Google "Linux specify which CPU core handles what" you will see various topics and methods on this, so I will not duplicate the info here.
You could investigate however the use of entware or compile the necessary packages yourself in order to achieve this, Im not familiar with Marvel entware stuff, I dont think it will be possible or if possible it will require a great deal of hacking.
You wont be doing yourself any favors though. Understand OpenVPN is resource intensive, Wireguard would likely be easier on resources and faster since its a kernel space implementation vs userspace implementation.
Joined: 18 Mar 2014 Posts: 12917 Location: Netherlands
Posted: Tue Jul 19, 2022 10:26 Post subject:
Most higher end routers can use core affinity
I do not know about Marvell but should think it also can.
Recent builds have irqbalance which dynamically distributes irq between cores
ps from CLI interface will show if that runs on your system, you probably have to kill it first if you want to set core affinity manually.
Problem with OpenVPN is that it is not multithreaded and has to frequently switch between user and kernel space.
If you seek performance VPN, WireGuard is the way to go, usually more than triple the speed of OpenVPN
The question was posed as one of the Guru's posted a couple of years back in a thread "Have you balanced the task among cores? OpenVPN will use a single core. Locate VPN and WAN on one core and LAN + wifi on the other. The 'top' command will show what the cores are doing."
Joined: 08 May 2018 Posts: 14246 Location: Texas, USA
Posted: Tue Jul 19, 2022 23:28 Post subject:
Referencing another thread without a link doesn't help for clarity in the rest of the community's minds, FYI. The response was in reference to a Netgear R6400v1 (Broadcom) router on NordVPN and you're asking about completely different hardware (Marvell):
There is probably an answer as to specifics in regards to your inquiry, but I don't have them without a device in hand and all of my DD-WRT Marvell devices are deployed outside of immediate reach. Hopefully one of the knowledgeable Marvell folks can help figure this out. _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Joined: 18 Mar 2014 Posts: 12917 Location: Netherlands
Posted: Wed Jul 20, 2022 11:27 Post subject:
deedeedoubleyourt wrote:
The question was posed as one of the Guru's posted a couple of years back in a thread "Have you balanced the task among cores? OpenVPN will use a single core. Locate VPN and WAN on one core and LAN + wifi on the other. The 'top' command will show what the cores are doing."
Yes I know that and I already answered you how you can check and set these kind of things (but that irqbalance should do it automatically (but I have never checked if it actually works) )
P.S. if you use the top command press c to show both cores
P.P.S some builds have htop (but for me it is a bit over the top )
The question was posed as one of the Guru's posted a couple of years back in a thread "Have you balanced the task among cores? OpenVPN will use a single core. Locate VPN and WAN on one core and LAN + wifi on the other. The 'top' command will show what the cores are doing."
Yes I know that and I already answered you how you can check and set these kind of things (but that irqbalance should do it automatically (but I have never checked if it actually works) )
P.S. if you use the top command press c to show both cores
P.P.S some builds have htop (but for me it is a bit over the top )
P.P.P.S Can we mark this thread as solved?
My futile attempt in trying to get higher VPN speeds. Yes, we can consider this as solved. Thank You