steffen.k@gmx.at
2004-Feb-05 09:13 UTC
[Samba] massive performance problems if transferring many small files
Hi, If I try to transfer about 27.000 small HTML-Files from my Windows-PC to our central SAMBA-Server I'll get massive performance problems. First the performance looks ok but after a time period of 3 minutes it goes slow down - appr. one file per second will be transferred. Has anyone an idea what I can tune to avoid this annoying behaviour. My samba server configuration: - OS: Solaris 8 - /etc/system: * SunOS 5 Cache Override fuer ClearCase * * ClearCase Vobs run out of inode tables and directory name * lookup cache. set maxusers=2048 set ncsize=34906 * ClearCase recommends that the size of a VOB host's block buffer * cache about 200% of the size of the hosts largest VOB database * file. * Default bufhwm is 2% ud phys. memory. We try 2% of 2048Mb set bufhwm=46080 * ClearCase MVFS-Tuning for large systems set mvfs:mvfs_largeinit=1 set mvfs:mvfs_dncnoentmax=4000 set mvfs:mvfs_dncregmax=4000 set mvfs:mvfs_dncdirmax=1600 set mvfs:mvfs_vobfreemax=4500 set mvfs:mvfs_cvpfreemax=4500 * GE-Link Parameter * Disable Autonegociation *set ge:ge_adv_1000autoneg_cap=0 *Begin Tuning for max number of open files *avoid samba error: Too many open files set rlim_fd_cur=1024 set rlim_fd_max=2048 *End Tuning for max number of open files - samba version 2.2.8a (64bit compiled) - smb.conf # Global parameters [global] workgroup = AD-Domain netbios name = SAMBA01 server string = Samba %v on (%L) security = DOMAIN encrypt passwords = Yes password server = <Win2000 Active Directory Server> username map = /opt/samba/lib/username.map log level = 1 max log size = 2000 max open files = 30000 os level = 0 wins server = www.xxx.yyy.zzz kernel oplocks = No comment = Globale Definitionen create mask = 0775 directory mask = 0775 browseable = No oplocks = No [homes] comment = Home Directory read only = No create mask = 0755 Thanks, Steffen
Andrew Bartlett
2004-Feb-05 10:06 UTC
[Samba] massive performance problems if transferring many small files
On Thu, 2004-02-05 at 20:12, steffen.k@gmx.at wrote:> Hi, > > If I try to transfer about 27.000 small HTML-Files from my Windows-PC to our > central SAMBA-Server I'll get massive performance problems. First the > performance looks ok but after a time period of 3 minutes it goes slow down - > appr. one file per second will be transferred. Has anyone an idea what I can tune > to avoid this annoying behaviour.> - samba version 2.2.8a (64bit compiled)Are all/many of these files in the same directory? I would suggest that Samba 3.0 might handle this situation better, or in 2.2 set 'mangle method = hash2'. Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20040205/c9a11bd9/attachment.bin