Openmptcprouter: OMR VPS can use multiple CPU cores?

Created on 5 Dec 2020  路  3Comments  路  Source: Ysurac/openmptcprouter

I was thinking if VPS is having 2 dedicated cores (instead of 1 shared core), will OMR provide faster data transfer?

question

All 3 comments

maybe.
if you have aes available on both router and vps and gcm as encryption it should use multithread and don't bottleneck.
but if you have a good cpu on your vps and didn't spike, it's not a problem.
it also depends if you will use that VPS for other things, other than OMR.

just to add an example:

vps script checks to see how many cores available

NBCPU=${NBCPU:-$(grep -c '^processor' /proc/cpuinfo | tr -d "\n")}

if more than 1, configure shadowsocks accordingly

if [ "$NBCPU" -gt "1" ]; then
        for i in $(seq 2 NBCPU); do
            sed -i '0,/65101/ s/        "65101.*/&\n&/' /etc/shadowsocks-libev/manager.json

just to add an example:

vps script checks to see how many cores available

NBCPU=${NBCPU:-$(grep -c '^processor' /proc/cpuinfo | tr -d "\n")}

if more than 1, configure shadowsocks accordingly

if [ "$NBCPU" -gt "1" ]; then
      for i in $(seq 2 NBCPU); do
          sed -i '0,/65101/ s/        "65101.*/&\n&/' /etc/shadowsocks-libev/manager.json

Great, so there is merit in using multi core. Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

videoPi4 picture videoPi4  路  9Comments

Rwestrem picture Rwestrem  路  6Comments

dnwk picture dnwk  路  8Comments

joshuaeb09 picture joshuaeb09  路  4Comments

Adorfer picture Adorfer  路  11Comments