Hello,

I tried to set up an eCryptfs onto an CIFS share which resulted in an incredibly slow transfer rate. The CIFS share is located on a QNAP NAS with Gbit-Ethernet connection.

The CIFS share was normally mounted with:
$ mount -o username=guest,password=guest -t cifs //nas/Public /tmp/test/

Test of the bare CIFS transfer rate, looks good:
$ dd if=/dev/zero of=test.bin bs=1M count=1000
1048576000 bytes (1.0 GB) copied, 10.2111 s, 103 MB/s

Then I mounted a eCryptfs into the CIFS share with the following options:
  ecryptfs_unlink_sigs
  ecryptfs_fnek_sig=d395309aaad4de06
  ecryptfs_key_bytes=16
  ecryptfs_cipher=aes
  ecryptfs_sig=d395309aaad4de06
$ mount -t ecryptfs .ecryptfs_test/ ecryptfs_test/
Mounted eCryptfs

And then tried again the transfer rate into the eCryptfs:
$ dd if=/dev/zero of=test.bin bs=1M count=100
104857600 bytes (105 MB) copied, 22.5929 s, 4.6 MB/s

Let's try the same again on a NFS share:
$ mount -t nfs nas:/Public test/
$ dd if=/dev/zero of=test.bin bs=1M count=1000
1048576000 bytes (1.0 GB) copied, 10.5861 s, 99.1 MB/s

$ mount -t ecryptfs .ecryptfs_test/ ecryptfs_test/
(with same options)

$ dd if=/dev/zero of=test.bin bs=1M count=1000
1048576000 bytes (1.0 GB) copied, 13.8161 s, 75.9 MB/s

This is a speedup of 16.5 from CIFS -> NFS. But there is no big speed difference between the bare CIFS and NFS.

Is there any way to speedup the eCryptfs on CIFS or is this a known issue?

--
Michael

Reply via email to