Jump to content
Not connected, Your IP: 3.136.22.204
gribib

ANSWERED howto limit or change openvpn process priority in AC66U..

Recommended Posts

Hi there,

 

it seams i have overestimated my AC66U router because when the openvpn service does a tls rekeying once every hour is the ac66u using 100% of CPU power and dropping for connection for 3-5 sek. since i couldnt find any solution with the openvpn varibles. Was i thinking of limit or lower the priority of the openvpn service running on the router. Is this even posible and can some one direct me in the right direction?!

Share this post


Link to post

nice / renice

 

Edit: 

 

Realised that you might need som more help;

 

Man page for renice; http://linux.die.net/man/8/renice

 

1) Log in via SSH in the router 

2) find the process of openvpn ( > ps afux )

3) > renice 19 ####

 

where #### is the process id

 

don't enter the ">" that's just meant to illustrate the prompt

Share this post


Link to post

thanks, it seams to accept the command only need to wait for at TLK rekeying to see if it works...

 

is there are way to see the nice value for a PID? and does this renice value stick to that service? or do i have to run it everytime router restart. if this is the case is there a way to stick that nice value to that service?

Share this post


Link to post

"top" shows the priority ( hit the "q" key to exit )

 

You will have to renice every time the service is restarted, to get around that you would have to edit the init script and put "nice xx " infront of the launch command.

 

btw 19 is the very lowest priority - it's basically a wait for / yield to everything.

Share this post


Link to post

thanks, but unfortuanly it doesnt seam to work, there is a slight decrease in latency while TLS rekeying by maby 5% but is still around the 4000msec, and cpu usage still reach 100%... but thanks again...

 

ps. the value cant be seen in the 'top' version on the ac66u..

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...