[Samba] samba performance when writing lots of small files

thoralf schulze t.schulze at tu-berlin.de
Thu Nov 7 12:17:03 UTC 2019


hi jeremy / all,

On 11/6/19 10:39 PM, Jeremy Allison wrote:
> This is re-exporting via ceph whilst creating 1000 files,
> yes ? What timings do you get when doing this via Samba
> onto a local ext4/xfs/btrfs/zfs filesystem ?

yes, creating 10k small files. doing the same on a local ssd, formatted
with an ext4 fs without any special options:

root at plattentest:/mnt-ssd/os# time for s in $(seq 0 9999); do echo $s >
test-$s; done

real	0m0.376s
user	0m0.130s
sys	0m0.246s
root at plattentest:/mnt-ssd/os#

and on the very same ssd, exported via cifs and re-mounted locally,
samba and share config are identical to the ceph test:

root at plattentest:/mnt-ssd-cifs/cifs# time for s in $(seq 0 9999); do
echo $s > test-$s; done

real	0m43.228s
user	0m0.445s
sys	0m2.692s
root at plattentest:/mnt-ssd-cifs/cifs#

that's more in line with what one would expect :-)
do you have any thoughts on why the same test with the ceph share is
more than an order of magnitude slower? afaik the ceph client should
block until all data has been written, no matter if it is being fed by
echo or samba … the cephfs is mounted via the kernel driver, if that
matters.

thank you very much & with kind regards,
t.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba/attachments/20191107/b0925c40/signature.sig>


More information about the samba mailing list