тормозят папки на samba

при обращении к сетевым шарам, где стоит win xp, задержек нет и я попадаю туда с винды быстро. Но, когда пытаюсь открыть шару на samba, подвисает на некоторое время , потом открывает и после этого остальные шары на samba открываются быстро. Если подождать и не работать с ними, то потом опять торозит.
Вот лог самбы:

  getpeername failed. Error was Конечная точка передачи не подсоединена
  write_data: write failure in writing to client 0.0.0.0. Error Соединение сброшено другой стороной
[2011/01/19 11:57:05,  0] smbd/process.c:62(srv_send_smb)
  Error writing 4 bytes to client. -1. (Конечная точка передачи не подсоединена)
[2011/01/19 11:57:15,  0] lib/util_sock.c:738(write_data)
[2011/01/19 11:57:15,  0] lib/util_sock.c:1491(get_peer_addr_internal)
  getpeername failed. Error was Конечная точка передачи не подсоединена
  write_data: write failure in writing to client 0.0.0.0. Error Соединение сброшено другой стороной
[2011/01/19 11:57:15,  0] smbd/process.c:62(srv_send_smb)
  Error writing 4 bytes to client. -1. (Конечная точка передачи не подсоединена)
[2011/01/19 11:58:33,  0] lib/util_sock.c:738(write_data)
[2011/01/19 11:58:33,  0] lib/util_sock.c:1491(get_peer_addr_internal)
  getpeername failed. Error was Конечная точка передачи не подсоединена
  write_data: write failure in writing to client 0.0.0.0. Error Соединение сброшено другой стороной
[2011/01/19 11:58:33,  0] smbd/process.c:62(srv_send_smb)
  Error writing 4 bytes to client. -1. (Конечная точка передачи не подсоединена)

вот smb.conf :

#------------------------------------------------------------------------------
 # Modified Calculate-server 2.1.7
 # File of a profile "profile/ftp"
#------------------------------------------------------------------------------

[global]
        workgroup = Calculate
        netbios name = calculate-cds
        server string = Calculate Directory Server
        directory mask = 0755
        directory security mask = 0755
        force directory security mode = 0755
        security mask = 0644
        force security mode = 0644
        create mask = 0644
        enable privileges = yes
        passdb backend = ldapsam:ldap://127.0.0.1/
        ldap admin dn = ou=Samba,ou=Services,dc=calculate
        ldap suffix = ou=Samba,ou=Services,dc=calculate
        ldap group suffix = ou=Groups
        ldap user suffix = ou=Users
        ldap machine suffix = ou=Computers
        ldap ssl = off
        add machine script = /usr/bin/cl-useradd -w "%u" samba
        add user script = /usr/bin/cl-useradd "%u" samba
        ldap delete dn = Yes
        dos charset = UTF-8
        unix charset = UTF-8
        display charset = UTF-8
        local master = yes
        domain master = yes
        preferred master = yes
        os level = 199
        log level = 0 vfs:2
        admin users = admin
        domain logons = yes
        logon script = start.cmd
        logon path = \\%L\profiles\%U
        logon home = \\%L\%U
        logon drive = H:
        hosts allow = 10.1.1.0/24 192.168.1.0/24 192.168.0.0/24 127.
        hosts deny = 0.0.0.0/0
        map to guest = bad user
        security = user
        encrypt passwords = yes
        unix password sync = yes
        null passwords = no
        hide unreadable = yes
        hide dot files = yes
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        wins support = yes
        dns proxy = no
        time server = yes
        block size = 4096
        syslog = 0

[homes]
        path = /var/calculate/server-data/samba/home/%u
        comment = Home Directories
        valid users = %U
        read only = No
        browseable = No

[profiles]
        path = /var/calculate/server-data/samba/profiles/win
        create mask = 0600
        directory mask = 0700
        browseable = No
        guest ok = Yes
        csc policy = disable
        writable = yes
        force user = %U
        valid users = %U

[unix]
        path = /var/calculate/server-data/samba/profiles/unix/%u
        browseable = No
        writable = yes
        directory mask = 0777
        directory security mask = 0777
        force directory security mode = 0
        create mask = 0777
        security mask = 0777
        force security mode = 0
        force user = %U
        valid users = %U
        hide unreadable = no
        root preexec = /usr/lib/calculate/calculate-server/bin/execserv -s --login %U
        root postexec = /usr/lib/calculate/calculate-server/bin/execserv -s --logout %U

[netlogon]
        path = /var/calculate/server-data/samba/netlogon/%u
        browseable = No
        read only = yes
        root preexec = /usr/lib/calculate/calculate-server/bin/execserv -s --makedir %U


[public]
        path = /mnt/server-common/public
        comment = Свалка
        public = yes
        browseable = yes
        writeable = yes
        hide unreadable = yes

...... и тд

Эта проблема существует для windows XP и возникает при попытке подключения к 139 и 445 портам Samba сервера, windows подключается поочередно к этим портам и определяет какой пригоден для работы ошибка возникает при подключении к 445 порту.
Возможное решение.

Нужно добавить параметр в секцию [global] файла /etc/samba/smb.conf

[global]
smb ports = 139

и перезагрузить Samba сервер

/etc/init.d/samba restart

В этом случае будет работать только 139 порт.

Похоже вы пролили свет на это. Но, если так сделать - у меня вообще доступа к шарам нет. Такое чувство , что 139 порт закрыт на сервере. На клиентской машине вырубал KAV 6 , который мог помешать, но доступа всеравно нет. Как протестировать 139 порт на сервере? Может тут с iptables чтото не то.

по 445му работает, но с задержкой. по 139му вообще не работает. Щас смотрел мониторингом сети , что system по 139му не получал ни байта от сервака, по 445му работает, но …