228 z/VM and Linux on IBM System z: The Virtualization Cookbook for Red Hat Enterprise Linux 6.0
To test copy a file with and without cryptographic acceleration, perform the following steps:
1. Start an SSH session to a Linux.
2. Create a 200 MB test file for copying in the /tmp/ directory:
# cd /tmp
# dd if=/dev/zero of=testdata.txt bs=1048576 count=200
200+0 records in
200+0 records out
209715200 bytes (210 MB) copied, 17.87 s, 11.7 MB/s
# ls -lh testdata.txt
-rw-r--r--. 1 root root 200M Oct 9 14:51 testdata.txt
3. Copy the file locally with the scp command, two times with specific encryption algorithms
and once without, prefixing them all with the time command:
# time scp -c 3des-cbc /tmp/testdata.txt localhost:/dev/null
The authenticity of host 'localhost (::1)' can't be established.
RSA key fingerprint is 41:77:58:10:50:09:ba:2a:6a:7b:8b:56:95:1a:37:79.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
root@localhost's password:
testdata.txt 100% 200MB 4.6MB/s 00:44
real 0m51.295s
user 0m17.797s
sys 0m1.047s
# time scp -c aes128-cbc /tmp/testdata.txt localhost:/dev/null
root@localhost's password:
testdata.txt 100% 200MB 28.6MB/s 00:07
real 0m10.780s
user 0m1.212s
sys 0m0.698s
[root@gpok225 ssl]# time scp /tmp/testdata.txt localhost:/dev/null
root@localhost's password:
testdata.txt 100% 200MB 16.7MB/s 00:12
real 0m15.977s
user 0m3.072s
sys 0m0.753s
The output shows throughputs of about 4.6, 28.6, and 16.7 MBps and a user times of
about 17.7, 1.2, and 3.0 seconds.
4. Determine if the necessary cryptographic-related RPMs are installed:
# rpm -qa | grep openssl-ibmca
No output shows that they are not installed.
5. Install the RPM by using the yum install command:
# yum -y install openssl-ibmca openssl-ibmca.s390
...
Installed:
openssl-ibmca.s390 0:1.1-3.el6 openssl-ibmca.s390x 0:1.1-3.el6
Dependency Installed:
glibc.s390 0:2.12-1.7.el6 keyutils-libs.s390 0:1.4-1.el6
krb5-libs.s390 0:1.8.2-3.el6 libcom_err.s390 0:1.41.12-3.el6
Kommentare zu diesen Handbüchern