From: Sergey Matveev Date: Fri, 13 Mar 2015 10:48:07 +0000 (+0300) Subject: Note about GOMAXPROC usage X-Git-Tag: 2.2^2~7 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4232654256ff782e4b630d28546178431661585c;p=govpn.git Note about GOMAXPROC usage Signed-off-by: Sergey Matveev --- diff --git a/doc/govpn.texi b/doc/govpn.texi index 9c53ba5..cc33f89 100644 --- a/doc/govpn.texi +++ b/doc/govpn.texi @@ -202,6 +202,9 @@ transport. MTU for that wlan0 is 1500 bytes. GoVPN will say that maximum MTU for the link is 1476, however it does not take in account TAP's Ethernet frame header length, that in my case is 14 bytes long (1476 - 14). +Do not forget about setting @code{GOMAXPROC} environment variable for +using more than one CPU. + GNU/Linux IPv4 client-server example: @example @@ -216,7 +219,7 @@ server% tunctl -t tap10 server% ip link set mtu 1462 dev tap10 server% ip addr add 172.16.0.1/24 dev tap10 server% ip link set up dev tap10 -server% govpn -bind 192.168.0.1:1194 +server% GOMAXPROC=4 govpn-server -bind 192.168.0.1:1194 @end example @example @@ -228,8 +231,9 @@ client% ip link set mtu 1462 dev tap10 client% ip addr add 172.16.0.2/24 dev tap10 client% ip link set up dev tap10 client% ip route add default via 172.16.0.1 +client% export GOMAXPROC=4 client% while :; do - govpn -key key.txt -id CLIENTID -iface tap10 -remote 192.168.0.1:1194 + govpn-client -key key.txt -id CLIENTID -iface tap10 -remote 192.168.0.1:1194 done @end example @@ -248,7 +252,7 @@ echo $tap EOF server% chmod 500 peers/CLIENTID/up.sh server% ifconfig em0 inet6 fe80::1/64 -server% govpn -bind fe80::1%em0 +server% GOMAXPROC=4 govpn-server -bind fe80::1%em0 @end example @example @@ -256,8 +260,9 @@ client% ifconfig me0 inet6 -ifdisabled auto_linklocal client% ifconfig tap10 client% ifconfig tap10 inet6 fc00::2/96 mtu 1462 up client% route -6 add default fc00::1 +client% export GOMAXPROC=4 client% while :; do - govpn -key key.txt -id CLIENTID -iface tap10 -remote [fe80::1%me0]:1194 + govpn-client -key key.txt -id CLIENTID -iface tap10 -remote [fe80::1%me0]:1194 done @end example