Inquiry of performance bottleneck

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2016-01-09 at 19:45 +0800, Yick Xie wrote:
> Hi everybody,
> 
> I have several questions about the speed of our ocserv, looking to
> some interpretation.
> As I monitored before, the ocserv can reach up to 300-500KB/s for 
> each
> connection when the network got a little congested, though the speed
> could multiple several times nearly to 3MB/s even more perhaps when I
> visited the speedtest.net, nperf.com and etc.. These websites just
> utilize multiple connections via 8080 port. It's same(linear 
> addition)
> when I just multi-requested a url download using chrome at one 
> moment.
> No matter how I tested, the ping response to the  VPN gateway never
> glitched(avg 50ms, StDev 5ms, loss rate 1%). The CPU load was only 5%
> at most, and still with about 100M remaining memory.

Well if you have not much CPU load I think you should investigate
further. It is best to compare direct routing (no VPN) vs routing via
VPN, so that you have an idea what's the maximum limit of your line.
Overall I'd expect the encryption to be the bottleneck in addition to
context switching, and both take cpu time.

I'd start by using nuttcp for measurements.

> In a word, I am not sure where the bottleneck lies. I saw some
> analysis about the bottleneck of virtual adapters, does it mean the
> ocserv also got a performance loss due to syscall? Or is there any
> tool I can use to detect?

yes, but that would be visible in the load of your server. What I can
speculate from the information you have is that the bandwidth is
somehow limited (either from your provider, or from ocserv itself (see
rx/tx-data-per-sec).


regards,
Nikos




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux