{"action":"created","issue":{"url":"https://api.github.com/repos/clowwindy/ShadowVPN/issues/93","labels_url":"https://api.github.com/repos/clowwindy/ShadowVPN/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/clowwindy/ShadowVPN/issues/93/comments","events_url":"https://api.github.com/repos/clowwindy/ShadowVPN/issues/93/events","html_url":"https://github.com/clowwindy/ShadowVPN/issues/93","id":56783273,"number":93,"title":"Reduce CPU time by half","user":{"login":"clowwindy","id":1073082,"avatar_url":"https://avatars.githubusercontent.com/u/1073082?v=3","gravatar_id":"","url":"https://api.github.com/users/clowwindy","html_url":"https://github.com/clowwindy","followers_url":"https://api.github.com/users/clowwindy/followers","following_url":"https://api.github.com/users/clowwindy/following{/other_user}","gists_url":"https://api.github.com/users/clowwindy/gists{/gist_id}","starred_url":"https://api.github.com/users/clowwindy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clowwindy/subscriptions","organizations_url":"https://api.github.com/users/clowwindy/orgs","repos_url":"https://api.github.com/users/clowwindy/repos","events_url":"https://api.github.com/users/clowwindy/events{/privacy}","received_events_url":"https://api.github.com/users/clowwindy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/clowwindy/ShadowVPN/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"clowwindy","id":1073082,"avatar_url":"https://avatars.githubusercontent.com/u/1073082?v=3","gravatar_id":"","url":"https://api.github.com/users/clowwindy","html_url":"https://github.com/clowwindy","followers_url":"https://api.github.com/users/clowwindy/followers","following_url":"https://api.github.com/users/clowwindy/following{/other_user}","gists_url":"https://api.github.com/users/clowwindy/gists{/gist_id}","starred_url":"https://api.github.com/users/clowwindy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clowwindy/subscriptions","organizations_url":"https://api.github.com/users/clowwindy/orgs","repos_url":"https://api.github.com/users/clowwindy/repos","events_url":"https://api.github.com/users/clowwindy/events{/privacy}","received_events_url":"https://api.github.com/users/clowwindy/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-02-06T08:17:08Z","updated_at":"2015-04-20T08:55:22Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/clowwindy/ShadowVPN/issues/comments/94397200","html_url":"https://github.com/clowwindy/ShadowVPN/issues/93#issuecomment-94397200","issue_url":"https://api.github.com/repos/clowwindy/ShadowVPN/issues/93","id":94397200,"user":{"login":"lsylsy2","id":870873,"avatar_url":"https://avatars.githubusercontent.com/u/870873?v=3","gravatar_id":"","url":"https://api.github.com/users/lsylsy2","html_url":"https://github.com/lsylsy2","followers_url":"https://api.github.com/users/lsylsy2/followers","following_url":"https://api.github.com/users/lsylsy2/following{/other_user}","gists_url":"https://api.github.com/users/lsylsy2/gists{/gist_id}","starred_url":"https://api.github.com/users/lsylsy2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsylsy2/subscriptions","organizations_url":"https://api.github.com/users/lsylsy2/orgs","repos_url":"https://api.github.com/users/lsylsy2/repos","events_url":"https://api.github.com/users/lsylsy2/events{/privacy}","received_events_url":"https://api.github.com/users/lsylsy2/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T08:55:22Z","updated_at":"2015-04-20T08:55:22Z","body":"使用iperf -d双向同时测试时，D525的CPU达到极限（单核）。\r\n一下数据均为D525一侧，双向测试时D525发送至E4400方向的带宽要高一些。\r\nVPN\r\nphiyme@atom1717:~$ iperf -c 10.9.0.2 -d\r\n------------------------------------------------------------\r\nServer listening on TCP port 5001\r\nTCP window size: 85.3 KByte (default)\r\n------------------------------------------------------------\r\n------------------------------------------------------------\r\nClient connecting to 10.9.0.2, TCP port 5001\r\nTCP window size: 69.3 KByte (default)\r\n------------------------------------------------------------\r\n[  5] local 10.9.0.1 port 55413 connected with 10.9.0.2 port 5001\r\n[  4] local 10.9.0.1 port 5001 connected with 10.9.0.2 port 40000\r\n[ ID] Interval       Transfer     Bandwidth\r\n[  5]  0.0-10.0 sec  98.8 MBytes  82.7 Mbits/sec\r\n[  4]  0.0-10.1 sec  33.5 MBytes  27.9 Mbits/sec\r\n\r\n直连\r\nphiyme@atom1717:~$ iperf -c 192.168.1.6 -d\r\n------------------------------------------------------------\r\nServer listening on TCP port 5001\r\nTCP window size: 85.3 KByte (default)\r\n------------------------------------------------------------\r\n------------------------------------------------------------\r\nClient connecting to 192.168.1.6, TCP port 5001\r\nTCP window size: 67.1 KByte (default)\r\n------------------------------------------------------------\r\n[  5] local 192.168.1.5 port 33927 connected with 192.168.1.6 port 5001\r\n[  4] local 192.168.1.5 port 5001 connected with 192.168.1.6 port 60163\r\n[ ID] Interval       Transfer     Bandwidth\r\n[  5]  0.0-10.0 sec   110 MBytes  92.3 Mbits/sec\r\n[  4]  0.0-10.1 sec  87.2 MBytes  72.6 Mbits/sec\r\n\r\n将窗口扩大至256K，总带宽无明显区别，直连无明显区别，经过VPN的两个方向带宽平均了一些。\r\nphiyme@atom1717:~$ iperf -c 10.9.0.2 -d -w 256K\r\n------------------------------------------------------------\r\nServer listening on TCP port 5001\r\nTCP window size:  256 KByte (WARNING: requested  256 KByte)\r\n------------------------------------------------------------\r\n------------------------------------------------------------\r\nClient connecting to 10.9.0.2, TCP port 5001\r\nTCP window size:  256 KByte (WARNING: requested  256 KByte)\r\n------------------------------------------------------------\r\n[  5] local 10.9.0.1 port 55418 connected with 10.9.0.2 port 5001\r\n[  4] local 10.9.0.1 port 5001 connected with 10.9.0.2 port 40004\r\n[ ID] Interval       Transfer     Bandwidth\r\n[  5]  0.0-10.0 sec  74.1 MBytes  62.0 Mbits/sec\r\n[  4]  0.0-10.0 sec  56.9 MBytes  47.5 Mbits/sec"}}