2013-02-01, 23:17
I am deliberately not posting additional info, because I want to understand if this is a known issue/feature first.
I have a Xubuntu 12.04 64bit server, AMD E-350, 4GB RAM. This runs Samba (default config+added shares) and NFS (nfs-kernel-server) from standard repositories.
XBMC client runs on Kununtu 12.04 64bit, Core i5-2400 3.10GHz, 24GB RAM. XBMC version v12 Frodo from team xbmc stable PPA.
Gigabit LAN network.
NFS is supposed to be much faster than Samba and it is, but only if I mount using "mount -t ntfs", if I access the share using XBMC (libnfs), it is actually slower. Interestingly XBMC's internal Samba implementation is faster than what I get with KDE...
Below are results of tests I performed. Each time I copied different large HD movie file to a tmpfs memory mount on client (to make sure cache is out of question). Tests performed several times. I coped files using XBMC file manager using either internal NFS(libnfs) or dir mounted using "mount -t nfs". I also tried samba with KDE's Dolphin using smb://.
NFSv4 mount: 61Mb/sec (default options: rsize=1,048,576)
NFSv4 mount: 88Mb/sec (best performance rsize=65,536)
NFSv3 mount: 47Mb/sec (default options: rsize=1,048,576)
NFSv3 mount: 53Mb/sec (best performance rsize=131,072)
XBMC NFSv3: 14Mb/sec (default m_readChunkSize=1,048,576)
XBMC NFSv3: 14Mb/sec (m_readChunkSize=65,556, recompiled NFSFile.cpp:m_readChunkSize=65556)
XBMC SMB: 33Mb/sec
Dolphin SMB: 18Mb/sec
May be it is simply kernel space vs user space? But 6x difference, seams a bit high?
I have a Xubuntu 12.04 64bit server, AMD E-350, 4GB RAM. This runs Samba (default config+added shares) and NFS (nfs-kernel-server) from standard repositories.
XBMC client runs on Kununtu 12.04 64bit, Core i5-2400 3.10GHz, 24GB RAM. XBMC version v12 Frodo from team xbmc stable PPA.
Gigabit LAN network.
NFS is supposed to be much faster than Samba and it is, but only if I mount using "mount -t ntfs", if I access the share using XBMC (libnfs), it is actually slower. Interestingly XBMC's internal Samba implementation is faster than what I get with KDE...
Below are results of tests I performed. Each time I copied different large HD movie file to a tmpfs memory mount on client (to make sure cache is out of question). Tests performed several times. I coped files using XBMC file manager using either internal NFS(libnfs) or dir mounted using "mount -t nfs". I also tried samba with KDE's Dolphin using smb://.
NFSv4 mount: 61Mb/sec (default options: rsize=1,048,576)
NFSv4 mount: 88Mb/sec (best performance rsize=65,536)
NFSv3 mount: 47Mb/sec (default options: rsize=1,048,576)
NFSv3 mount: 53Mb/sec (best performance rsize=131,072)
XBMC NFSv3: 14Mb/sec (default m_readChunkSize=1,048,576)
XBMC NFSv3: 14Mb/sec (m_readChunkSize=65,556, recompiled NFSFile.cpp:m_readChunkSize=65556)
XBMC SMB: 33Mb/sec
Dolphin SMB: 18Mb/sec
May be it is simply kernel space vs user space? But 6x difference, seams a bit high?