Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Apr 2019 02:56:20 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Wojciech Puchar <wojtek@puchar.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: very low performance tcp/rsh
Message-ID:  <cb76aa41-1472-5df1-5b24-384f6453f3de@grosbein.net>
In-Reply-To: <alpine.BSF.2.20.1904292111080.57162@puchar.net>
References:  <alpine.BSF.2.20.1904292028400.48623@puchar.net> <ef440d5f-c543-148a-4e68-44b0bc62b28f@grosbein.net> <alpine.BSF.2.20.1904292111080.57162@puchar.net>

next in thread | previous in thread | raw e-mail | index | archive | help
30.04.2019 2:22, Wojciech Puchar wrote:

> create 32GB hole-file
> 
> dd if=/dev/zero of=test bs=32k seek=1m count=0
> 
> fetch -o /dev/null over ftp (proftpd) gives 1.4GB/s
> 
> proftpd consumed 100% of single core. much better.
> 
> tested with FreeBSD ftpd  - 1.7GB/s
> 
> seems like freebsd can saturate 10Gb/s ethernet with single core (Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz)
> 
> 
> Still where is the most overhead? one memcopy to packet buffers+creating packet headers (send).
> 
> reception is on separate process taking another core.
> 
> 
> still - quite good. But compared to filesystem overhead - large.

Do not use file with holes (holes require special processing taking lots of CPU cycles).
Create ordinary file within RAM disk and use sock ftp daemon for sake of sendfile().




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb76aa41-1472-5df1-5b24-384f6453f3de>