[Samba] samba 3.0 and 4k files

Ilya Sapunov ilya at 3ka.mipt.ru
Wed Sep 28 22:09:47 GMT 2005


Hello!
I have one directiry, that contains about 4000 some other directory.
When we update our system to kernel 2.6.11 and samba 3.0.20, listing
this directory take more time and smbd process use 40-70% CPU. What
can we do to reduce CPU load? Previos system: kernel 24.29 and samba
2.0, cpu load by one smbd proccess has no more 10%.


our config:
[global]
        security = share
        debug timestamp = yes
        log file = /var/log/samba/log.%m
        syslog=0
        load printers = No
        unix extensions = no
        os level = 255
        announce version = 5.4
        domain logons = no
        preferred master = Yes
        domain master = Yes
        local master = Yes
        protocol = NT1
        wins proxy = yes
        oplocks = False
        lock dir = /var/lock/samba
        guest account = ftp
        invalid users = root secoff
        unix charset = KOI8-R
        encrypt passwords = yes
        smb passwd file = /etc/samba/smbpasswd
#test perfomance
        socket options = TCP_NODELAY SO_SNDBUF=65536 SO_RCVBUF=65536 IPTOS_LOWDELAY 
        use sendfile = no
        lock spin time = 15
        lock spin count = 100


-- 
Best regards,
 Ilya                          mailto:ilya at 3ka.mipt.ru



More information about the samba mailing list