Testing systems Dell o7010 both fog server and client computer. Both systems have local ssd sata drives. The target computer is running a customized linux kernel 5.6.18 and a customized init but both as based on FOG 1.5.9. The customization was done to aid in debugging and bench-marking the systems.
Testing script
mkdir /mnt/locdsk
mount /dev/sda1 /mnt/locdsk
mkdir /images
mount -o nolock,proto=tcp,rsize=32768,wsize=32768,intr,noatime "192.168.10.1:/images/dev" /images
#Test 1 creation of local and remote file by target computer
time dd if=/dev/zero of=/mnt/locdsk/L10gb.img count=1024 bs=10485760
time dd if=/dev/zero of=/images/R10gb.img count=1024 bs=10485760
#Test 2 cp files to and from server
time cp /mnt/locdsk/L10gb.img /images
time cp /mnt/locdsk/L10gb.img /images/L10gb-1.img
time cp /images/R10gb.img /mnt/locdsk
time cp /images/R10gb.img /mnt/locdsk/R10gb-1.img
#Test 3 scp files to and from server
time scp /mnt/locdsk/L10gb.img root@192.168.10.1:/images/L10gb-2.img
time scp /mnt/locdsk/L10gb.img root@192.168.10.1:/images/L10gb-3.img
time scp root@192.168.10.1:/images/dev/R10gb.img /mnt/locdsk/R10gb-2.img
time scp root@192.168.10.1:/images/dev/R10gb.img /mnt/locdsk/R10gb-3.img
#Test 4 ssh pipeline to and from server
time cat /mnt/locdsk/L10gb.img | ssh root@192.168.10.1 "cat > /images/L10gb-4.img"
time cat /mnt/locdsk/L10gb.img | ssh root@192.168.10.1 "cat > /images/L10gb-5.img"
time ssh root@192.168.10.1 "cat /images/dev/R10gb.img" | cat > /mnt/locdsk/L10gb-6.img
time ssh root@192.168.10.1 "cat /images/dev/R10gb.img" | cat > /mnt/locdsk/L10gb-7.img
Testing results as captured.
## Building the test files both local and remote
# time dd if=/dev/zero of=/mnt/locdsk/L10gb.img count=1024 bs=10485760
10737418240 bytes (11 GB, 10 GiB) copied, 20.2216 s, 531 MB/s
**real 0m20.223s user 0m0.001s sys 0m6.460s
# time dd if=/dev/zero of=/images/R10gb.img count=1024 bs=10485760
10737418240 bytes (11 GB, 10 GiB) copied, 93.3867 s, 115 MB/s
**real 1m33.390s user 0m0.003s sys 0m5.369s
## Confirm that files exist and are properly sized
# ls -la /mnt/locdsk/
total 10485785
drwxr-xr-x 3 root root 4096 Oct 9 08:25 .
drwxr-xr-x 3 root root 1024 Oct 9 08:23 ..
-rw-r--r-- 1 root root 10737418240 Oct 9 08:26 L10gb.img
drwx------ 2 root root 16384 Jan 10 2013 lost+found
# ls -la /images/
total 10519109
drwxrwxrwx 3 sshd root 63 Oct 9 2020 .
drwxr-xr-x 19 root root 1024 Oct 9 08:23 ..
-rwxrwxrwx 1 sshd root 0 Sep 28 13:36 .mntcheck
-rw-r--r-- 1 root root 10737418240 Oct 9 2020 R10gb.img
drwxrwxrwx 2 sshd root 26 Sep 28 13:36 postinitscripts
### Copy Local to Remote ###
# time cp /mnt/locdsk/L10gb.img /images
** real 1m34.821s user 0m0.083s sys 0m7.314s
# time cp /mnt/locdsk/L10gb.img /images/L10gb-1.img
**real 1m34.759s user 0m0.046s sys 0m6.801s
cp_local_remote_client.png
cp_local_remote_server.png
### Copy Remote to Local ###
# time cp /images/R10gb.img /mnt/locdsk
**real 1m41.710s user 0m0.084s sys 0m11.327s
# time cp /images/R10gb.img /mnt/locdsk/R10gb-1.img
**real 1m41.520s user 0m0.095s sys 0m11.392s
cp_remote_local_client.png
cp_remote_local_server.png
### SCP Local to Remote ###
# time scp /mnt/locdsk/L10gb.img root@192.168.10.1:/images/L10gb-2.img
The authenticity of host '192.168.10.1 (192.168.10.1)' can't be established.
ECDSA key fingerprint is SHA256:OpIsFYWVDCr/ovMlmPPSl46jpT332P3+BHnchdxzTCI.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.10.1' (ECDSA) to the list of known hosts.
root@192.168.10.1's password:
L10gb.img 100% 10GB 110.0MB/s 01:33
**real 1m40.007s user 0m44.460s sys 0m13.378s
# time scp /mnt/locdsk/L10gb.img root@192.168.10.1:/images/L10gb-3.img
root@192.168.10.1's password:
L10gb.img 100% 10GB 109.5MB/s 01:33
**real 1m37.404s user 0m44.420s sys 0m13.068s
scp_local_remote_client.png
scp_local_remote_server.png
### SCP Remote to Local ###
# time scp root@192.168.10.1:/images/dev/R10gb.img /mnt/locdsk/R10gb-2.img
root@192.168.10.1's password:
R10gb.img 100% 10GB 101.9MB/s 01:40
**real 1m44.166s user 0m43.986s sys 0m22.887s
# time scp root@192.168.10.1:/images/dev/R10gb.img /mnt/locdsk/R10gb-3.img
root@192.168.10.1's password:
R10gb.img 100% 10GB 102.0MB/s 01:40
**real 1m44.620s user 0m43.437s sys 0m23.061s
scp_remote_local_client.png
scp_remote_local_server.png
### SSH Pipeline Local to Remote ###
# time cat /mnt/locdsk/L10gb.img | ssh root@192.168.10.1 "cat > /images/L10gb-4.img"
root@192.168.10.1's password:
**real 1m35.562s user 0m42.701s sys 0m12.975s
# time cat /mnt/locdsk/L10gb.img | ssh root@192.168.10.1 "cat > /images/L10gb-5.img"
root@192.168.10.1's password:
**real 1m35.749s user 0m43.478s sys 0m11.166s
ssh_local_remote_client.png
ssh_local_remote_server.png
### SSH Pipeline Remote to Local ###
# time ssh root@192.168.10.1 "cat /images/dev/R10gb.img" | cat > /mnt/locdsk/L10gb-6.img
root@192.168.10.1's password:
**real 1m43.745s user 0m44.738s sys 0m20.828s
# time ssh root@192.168.10.1 "cat /images/dev/R10gb.img" | cat > /mnt/locdsk/L10gb-7.img
root@192.168.10.1's password:
**real 1m43.564s user 0m43.976s sys 0m21.966s
ssh_remote_local_client.png
ssh_remote_local_server.png