Re: Very slow scp performance comparing to Linux

From: Wojciech Puchar <wojtek_at_puchar.net>
Date: Sat, 02 Sep 2023 20:05:37 UTC
tested on really today's low end laptop
CPU: Intel(R) Pentium(R) CPU  N3700  @ 1.60GHz (1600.19-MHz K8-class CPU)

got 73MB/s from tmpfs to tmpfs, most of it was user time of ssh
got 69MB/s from SSD to SSD, same.

Test on server computer
CPU: Intel(R) Pentium(R) CPU  N3700  @ 1.60GHz (1600.19-MHz K8-class CPU)

337MB/s tmpfs to tmpfs
317MB/s ssd to ssd

too mostly user time (ssh and sshd, encryption/decryption).

I don't see anything wrong.

What to check:

a) linux ssh may have encryption off somehome
b) you tested in on slow storage

explanation of b - linux doesn't write to disk as long as it doesn't run 
of of RAM. FreeBSD writes to disk just as large block is ready, then write
hell lot of data to disk, often blocking everything.

So Linux looks great in stupid benchmarks. FreeBSD gives you good 
all-round performance with many processes working.