[Samba-it] Uso enorme di CPU su server scarico

Francesco Malvezzi francesco.malvezzi at unimore.it
Fri Nov 16 01:31:37 MST 2007


Cari iscritti alla mailing list,

Ho un problema di performance con samba 3.0.24-6etch4 (Debian/Etch) su
un server praticamente senza connessioni.

L'uso della CPU e' sempre sopra l'80%.

Vi faccio un esempio di top:

top - 09:04:41 up 7 days, 19:16,  2 users,  load average: 0.88, 0.89, 0.79
Tasks:  51 total,   3 running,  48 sleeping,   0 stopped,   0 zombie
Cpu(s): 33.3%us, 43.3%sy,  0.0%ni, 20.0%id,  0.0%wa,  0.0%hi,  3.3%si,
0.0%st
Mem:   1048692k total,   916700k used,   131992k free,   186128k buffers
Swap:   522072k total,       28k used,   522044k free,   573592k cached

   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
22505 nobody    16   0 21236  13m 2544 R 80.5  1.4  22:35.15 smbd
     1 root      16   0  1956  644  552 S  0.0  0.1   0:01.08 init
     2 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 migration/0
     3 root      34  19     0    0    0 S  0.0  0.0   0:00.01 ksoftirqd/0
     4 root      RT   0     0    0    0 S  0.0  0.0   0:00.12 watchdog/0
     5 root      10  -5     0    0    0 S  0.0  0.0   2:37.74 events/0
     6 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 khelper

Ho alzato i log a livello 10 ma non riesco a vedere niente di significativo.

Innanzitutto una domanda: l'istanza di smbd eseguita da nobody di cosa
e' responsabile? Le istanze eseguite dagli utenti quando si connettono
alle shere stanno tutte al massimo sull'1% di uso della CPU.

Posto in seguito lo smb.conf:

[global]
         unix charset = ISO-8859-15
         display charset = UTF-8
         workgroup = UNIMORE
         netbios name = domain
         server string = %h server (PDC di UNIMORE)
         smb passwd file =
         passdb backend = ldapsam:ldap://127.0.0.1
         log level = 10
         log file = /var/log/samba/log.%m
         max log size = 1000
         name resolve order = wins lmhosts host bcast
         name cache timeout = 0
         add machine script = smbldap-useradd -a -w %u
         logon path =
         logon home = \\%L\%U
         logon script = %U.bat
         domain logons = Yes
         os level = 63
         preferred master = Yes
         domain master = Yes
         dns proxy = Yes
         wins support = Yes
         ldap admin dn = cn=adminlocal,dc=unimore,dc=it
         ldap machine suffix = ou=Computers
         ldap suffix = dc=unimore,dc=it
         ldap ssl = off
         panic action = /usr/share/samba/panic-action %d
         enable privileges = yes
         guest account = nobody
         obey pam restrictions = yes
;        printing = cups
         load printers = No
         printcap name = /etc/printcap

[homes]
         comment = Home Directories
#       path = /homel/%U
         read only = No
         create mask = 0700
         directory mask = 0700
         browseable = No
         root preexec = /etc/samba/buildquota %U
vfs objects = recycle
recycle:repository = .cestino/
recycle:keeptree = yes
recycle:touch = yes
recycle:versions= yes
recycle:exclude = *.tmp *.temp *.ldb *.o *.obj ~$*
recycle:exclude_dir = /tmp /temp /cache
recycle:noversions = *.doc *.xls *.ppt

[netlogon]
         root preexec = /etc/samba/logon/lib/invoke_logon.rb %U %m %a %I
         comment = Network Logon Service
         path = /homel/SAMBA/netlogon
         guest ok = Yes
         read only = Yes
         share modes = No


[segreterie]
   available = yes
   comment = Segreteria
   path = /homel/SAMBA/SEGRETE
   force directory mode = 2770
   force create mode = 0770
# Questo + vuol dire gruppo UNIX
  valid users = +segreterie, +"Domain Admins"
# Questo + invece significa che il force group vale solo per chi e'
# membro di questo gruppo
   group = +segreterie_re
   writeable = yes
   veto oplock files = /*.mdb/*.MDB/*.dbf/*.DBF/*.xls/*.XLS/
vfs objects = recycle
recycle:repository = .cestino/
recycle:keeptree = yes
recycle:touch = yes
recycle:versions= yes
recycle:exclude = *.tmp *.temp *.ldb *.o *.obj ~$*
recycle:exclude_dir = /tmp /temp /cache
recycle:noversions = *.doc *.xls *.ppt

A cosa dovrei guardare? Io credo di aver sbagliato una qualche
configurazione, piu' che si tratti di un problema di versione di
software. Ma nel caso sono pronto a compilare samba, se serve.

Grazie e tutti,

Francesco





More information about the samba-it mailing list