Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2872 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  réseaux et sécurité

  Samba trés lent en gigabit ?

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Samba trés lent en gigabit ?

n°876020
colouryour​mind
Tu aimes la OS? Tu aimes MacOS
Posté le 06-01-2007 à 11:54:28  profilanswer
 

Je viens d'installer une debian sarge en serveur :
P3 1GHZ - 512Mo RAM - 3 * 200Go (haparm -tT /dev/diskx = 56Mo/s) - carte gigabit (donc debit > 50Mo/s)

  

Mon soucis se situe au niveau du transfert d'un mac mini (en gigabit lui aussi , relié par un switch gigabit) vers ce serveur.
Le logiciels de backup (Personal backup 4x à 72€ )semble ne plus transférer pendant 2 voir 4 minutes puis reprends , cela se produit surtout sur les très gros fichiers vidéos > 1Go.

 

Je sauvegarde mon disque externe de 50 go ( relié au mac mini) vers une home directory du serveur Debian , dois-je toucher à des paramètres smb.conf pour avoir une écriture direct .. ou autre.
(comme modif. j'ai juste rajouter les TCPNODELAY  SNDBUF)

 

je suis assez embêter car de mac à WindAUb je ne vois pas ce soucis ...

 

un peu d'aide serait apprécié.

 

Mon smb.conf :

 
Code :
  1. #
  2. # Sample configuration file for the Samba suite for Debian GNU/Linux.
  3. #
  4. #
  5. # This is the main Samba configuration file. You should read the
  6. # smb.conf(5) manual page in order to understand the options listed
  7. # here. Samba has a huge number of configurable options most of which
  8. # are not shown in this example
  9. #
  10. # Any line which starts with a ; (semi-colon) or a # (hash)
  11. # is a comment and is ignored. In this example we will use a #
  12. # for commentary and a ; for parts of the config file that you
  13. # may wish to enable
  14. #
  15. # NOTE: Whenever you modify this file you should run the command
  16. # "testparm" to check that you have not many any basic syntactic
  17. # errors.
  18. #
  19. #======================= Global Settings =======================
  20. [global]
  21. ## Browsing/Identification ###
  22. # Change this to the workgroup/NT-domain name your Samba server will part of
  23.    workgroup = WORKGROUP
  24. # server string is the equivalent of the NT Description field
  25.    server string = %h NAS (Samba %v)
  26. # Windows Internet Name Serving Support Section:
  27. # WINS Support - Tells the NMBD component of Samba to enable its WINS Server
  28. ;   wins support = no
  29. # WINS Server - Tells the NMBD components of Samba to be a WINS Client
  30. # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
  31. ;   wins server = w.x.y.z
  32. # This will prevent nmbd to search for NetBIOS names through DNS.
  33.    dns proxy = no
  34. # What naming service and in what order should we use to resolve host names
  35. # to IP addresses
  36. ;   name resolve order = lmhosts host wins bcast
  37. #### Debugging/Accounting ####
  38. # This tells Samba to use a separate log file for each machine
  39. # that connects
  40.    log file = /var/log/samba/log.%m
  41. # Put a capping on the size of the log files (in Kb).
  42.    max log size = 1000
  43. # If you want Samba to only log through syslog then set the following
  44. # parameter to 'yes'.
  45. ;   syslog only = no
  46. # We want Samba to log a minimum amount of information to syslog. Everything
  47. # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
  48. # through syslog you should set the following parameter to something higher.
  49.    syslog = 0
  50. # Do something sensible when Samba crashes: mail the admin a backtrace
  51.    panic action = /usr/share/samba/panic-action %d
  52. ####### Authentication #######
  53. # "security = user" is always a good idea. This will require a Unix account
  54. # in this server for every user accessing the server. See
  55. # /usr/share/doc/samba-doc/htmldocs/ServerType.html in the samba-doc
  56. # package for details.
  57.    security = user
  58. # You may wish to use password encryption.  See the section on
  59. # 'encrypt passwords' in the smb.conf(5) manpage before enabling.
  60.    encrypt passwords = true
  61. # If you are using encrypted passwords, Samba will need to know what
  62. # password database type you are using. 
  63.    passdb backend = tdbsam guest
  64.    obey pam restrictions = yes
  65. ;   guest account = nobody
  66.    invalid users = root
  67. # This boolean parameter controls whether Samba attempts to sync the Unix
  68. # password with the SMB password when the encrypted SMB password in the
  69. # passdb is changed.
  70. ;   unix password sync = no
  71. # For Unix password sync to work on a Debian GNU/Linux system, the following
  72. # parameters must be set (thanks to Augustin Luton <aluton@hybrigenics.fr> for
  73. # sending the correct chat script for the passwd program in Debian Potato).
  74.    passwd program = /usr/bin/passwd %u
  75.    passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
  76. # This boolean controls whether PAM will be used for password changes
  77. # when requested by an SMB client instead of the program listed in
  78. # 'passwd program'. The default is 'no'.
  79. ;   pam password change = no
  80. ########## Printing ##########
  81. # If you want to automatically load your printer list rather
  82. # than setting them up individually then you'll need this
  83. ;   load printers = yes
  84. # lpr(ng) printing. You may wish to override the location of the
  85. # printcap file
  86. ;   printing = bsd
  87. ;   printcap name = /etc/printcap
  88. # CUPS printing.  See also the cupsaddsmb(8) manpage in the
  89. # cupsys-client package.
  90. ;   printing = cups
  91. ;   printcap name = cups
  92. # When using [print$], root is implicitly a 'printer admin', but you can
  93. # also give this right to other users to add drivers and set printer
  94. # properties
  95. ;   printer admin = @ntadmin
  96. ######## File sharing ########
  97. # Name mangling options
  98. ;   preserve case = yes
  99. ;   short preserve case = yes
  100. ############ Misc ############
  101. # Using the following line enables you to customise your configuration
  102. # on a per machine basis. The %m gets replaced with the netbios name
  103. # of the machine that is connecting
  104. ;   include = /home/samba/etc/smb.conf.%m
  105. # Most people will find that this option gives better performance.
  106. # See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/speed.html
  107. # for details
  108. # You may want to add the following on a Linux system:
  109. #         SO_RCVBUF=8192 SO_SNDBUF=8192
  110.    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
  111. # The following parameter is useful only if you have the linpopup package
  112. # installed. The samba maintainer and the linpopup maintainer are
  113. # working to ease installation and configuration of linpopup and samba.
  114. ;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
  115. # Domain Master specifies Samba to be the Domain Master Browser. If this
  116. # machine will be configured as a BDC (a secondary logon server), you
  117. # must set this to 'no'; otherwise, the default behavior is recommended.
  118. ;   domain master = auto
  119. # Some defaults for winbind (make sure you're not using the ranges
  120. # for something else.)
  121. ;   idmap uid = 10000-20000
  122. ;   idmap gid = 10000-20000
  123. ;   template shell = /bin/bash
  124. #======================= Share Definitions =======================
  125. [homes]
  126.    comment = Rerpertoire personnel
  127.    browseable = yes
  128. # By default, the home directories are exported read-only. Change next
  129. # parameter to 'yes' if you want to be able to write to them.
  130.    writable = yes
  131. # File creation mask is set to 0700 for security reasons. If you want to
  132. # create files with group=rw permissions, set next parameter to 0775.
  133.    create mask = 0700
  134. # Directory creation mask is set to 0700 for security reasons. If you want to
  135. # create dirs. with group=rw permissions, set next parameter to 0775.
  136.    directory mask = 0700
  137. # Un-comment the following and create the netlogon directory for Domain Logons
  138. # (you need to configure Samba to act as a domain controller too.)
  139. ;[netlogon]
  140. ;   comment = Network Logon Service
  141. ;   path = /home/samba/netlogon
  142. ;   guest ok = yes
  143. ;   writable = no
  144. ;   share modes = no
  145. [printers]
  146.    comment = All Printers
  147.    browseable = no
  148.    path = /tmp
  149.    printable = yes
  150.    public = no
  151.    writable = no
  152.    create mode = 0700
  153. # Windows clients look for this share name as a source of downloadable
  154. # printer drivers
  155. [print$]
  156.    comment = Printer Drivers
  157.    path = /var/lib/samba/printers
  158.    browseable = yes
  159.    read only = yes
  160.    guest ok = no
  161. # Uncomment to allow remote administration of Windows print drivers.
  162. # Replace 'ntadmin' with the name of the group your admin users are
  163. # members of.
  164. ;   write list = root, @ntadmin
  165. # A sample share for sharing your CD-ROM with others.
  166. ;[cdrom]
  167. ;   comment = Samba server's CD-ROM
  168. ;   writable = no
  169. ;   locking = no
  170. ;   path = /cdrom
  171. ;   public = yes
  172. # The next two parameters show how to auto-mount a CD-ROM when the
  173. #       cdrom share is accesed. For this to work /etc/fstab must contain
  174. #       an entry like this:
  175. #
  176. #       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
  177. #
  178. # The CD-ROM gets unmounted automatically after the connection to the
  179. #
  180. # If you don't want to use auto-mounting/unmounting make sure the CD
  181. #       is mounted on /cdrom
  182. #
  183. ;   preexec = /bin/mount /cdrom
  184. ;   postexec = /bin/umount /cdrom


Message édité par colouryourmind le 06-01-2007 à 11:56:26
mood
Publicité
Posté le 06-01-2007 à 11:54:28  profilanswer
 

n°876021
dreamer18
CDLM
Posté le 06-01-2007 à 11:59:21  profilanswer
 

As-tu vérifié la présence d'erreurs sur les interfaces réseaux ? La vitesse et le duplex ? Pour info; pour le gigabit; faut jamais forcer les paramètres des interfaces mais tout laisser en auto.


---------------
"Parceque toi tu fracasses du migrant à la batte de baseball, c'est ça ?" - Backbone-
n°876023
colouryour​mind
Tu aimes la OS? Tu aimes MacOS
Posté le 06-01-2007 à 12:18:04  profilanswer
 

dreamer18 a écrit :

As-tu vérifié la présence d'erreurs sur les interfaces réseaux ? La vitesse et le duplex ? Pour info; pour le gigabit; faut jamais forcer les paramètres des interfaces mais tout laisser en auto.

 

j'ai ça sur debian :

 
Code :
  1. eth0      Lien encap:Ethernet  HWaddr 00:0F:B5:FF:0F:D4 
  2.           inet adr:10.0.1.1  Bcast:10.0.1.255  Masque:255.255.255.0
  3.           adr inet6: fe80::20f:b5ff:feff:fd4/64 Scope:Lien
  4.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  5.           RX packets:110188990 errors:0 dropped:0 overruns:0 frame:0
  6.           TX packets:87119719 errors:0 dropped:0 overruns:0 carrier:0
  7.           collisions:0 lg file transmission:1000
  8.           RX bytes:4129247448 (3.8 GiB)  TX bytes:1658344307 (1.5 GiB)
  9.           Interruption:6 Adresse de base:0x5000
 

et sur le mac  (qui est un BSD ;-) ):

Code :
  1. en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
  2.         inet6 fe80::216:cbff:fe97:cedb%en0 prefixlen 64 scopeid 0x4
  3.         inet 10.0.1.14 netmask 0xffffff00 broadcast 10.0.1.255
  4.         ether 00:16:cb:97:ce:db
  5.         media: autoselect (100baseTX <full-duplex,flow-control> ) status: active
  6.         supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 10baseT/UTP <full-duplex,flow-control> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback> 100baseTX <full-duplex,flow-control> 1000baseT <full-duplex> 1000baseT <full-duplex,hw-loopback> 1000baseT <full-duplex,flow-control> none
 

peut etre le mini qui est en 100 pouah ?


Message édité par colouryourmind le 06-01-2007 à 12:51:23
n°876024
fighting_f​alcon
Posté le 06-01-2007 à 12:31:30  profilanswer
 

j'ai le même genre de problème, sur le même type de config :
serveur samba en gigabit <-> switch giga <-> client giga
 
Lorsque je copie du serveur vers le client, je suis à 15-20Mo/s
lorsque je copie du client vers le serveur, je suis à 5Mo/s
(mais pas de coupures pour ma part ...)
 
J'ai cherché, cherché, mais j'avais rien trouvé de vraiment concrêt ...

n°876034
Taz
bisounours-codeur
Posté le 06-01-2007 à 13:05:24  profilanswer
 
n°876053
colouryour​mind
Tu aimes la OS? Tu aimes MacOS
Posté le 06-01-2007 à 14:26:32  profilanswer
 


oui, et c quoi cet outil (je suppose que c'est un outil) ?

n°876058
ph75
Posté le 06-01-2007 à 14:51:09  profilanswer
 

- problème de négociation de vitesse ?  
- utiliser les jumbo frames ? http://sd.wareonearth.com/~phil/jumbo.html
- augmenter la MTU ?

Message cité 1 fois
Message édité par ph75 le 06-01-2007 à 14:52:04
n°876062
M300A
Sehr hopfen, vielen IBU, wow!
Posté le 06-01-2007 à 15:28:13  profilanswer
 

ethtool, parce que mii raconte n'importe quoi.

n°876070
colouryour​mind
Tu aimes la OS? Tu aimes MacOS
Posté le 06-01-2007 à 16:37:29  profilanswer
 

ph75 a écrit :

- problème de négociation de vitesse ?
- utiliser les jumbo frames ? http://sd.wareonearth.com/~phil/jumbo.html
- augmenter la MTU ?


ouaih deja le problème de negociation je l'ai ca c sure, car sur le mac j'ai une negoc à 100mbit :p as bon (j'ai du brancher sur le mauvis switch ..pouahh).

 

Par contre le transfert de 54Go tourne depuis ce matin 11h30 , c pas normal. même pour du 100mbit je dois avoir un blème .

 

A l'install de debien sur mon /home (disque de 200go) j'ai choisi l'option large file pour les option d partition : c grave docteur ?

 


c quoi c truc de MTU en mode jumbo , c fiable ou pas ? ps: je n'ai pas a sauté de routeur" (un zywall5 fait fw rout.)

 

Mon ds106 synology le propose aussi mais je ne suis plus très au gout du jour en terme de réseau (lol) donc ce mtu à 9000 c fiable ?


Message édité par colouryourmind le 06-01-2007 à 16:39:08
n°876176
colouryour​mind
Tu aimes la OS? Tu aimes MacOS
Posté le 07-01-2007 à 01:05:42  profilanswer
 

pour la negociation du mac c'etait un pauvre cable cat 5  et pas cat5e encore moins FTP ... donc le cable mais ... aprés c samba qui rame ...

 

mac vers windows 2003 serveur pour 699Mo = 25 à 30 seconde.
mac vers debian pour 699 Mo = 1mn .... cherchez l'erreur.


Message édité par colouryourmind le 07-01-2007 à 01:06:58
mood
Publicité
Posté le 07-01-2007 à 01:05:42  profilanswer
 

n°876178
colouryour​mind
Tu aimes la OS? Tu aimes MacOS
Posté le 07-01-2007 à 03:12:02  profilanswer
 

au joie , magie ...
 
je viens de mettre en place Netatalk sur la debian .... et bien on fait du 23 Mo/s ...  
j'accroche les performance de win2k3 quand je testai en gigabit donc. samba, limite pas mal le bougre.
j'ai pas encore testé en nfs.
 
En fait je crois je crois que quand on joue avec *NIX il faux prendre nfs ou afp si c du mac.
 
voila pour les mac user mon retour d'expérience.
 
A vous.


---------------
Vista, eh ben ... désolè pas bon : Have a taste with Mac OS X .... leopard !!!
n°1107052
garfield38
Posté le 24-01-2009 à 00:27:50  profilanswer
 

effectivement apres quelques mois avec le mac tout d'un coup le debit de mac vers linux samba est terriblement ralenti pour les gros fichiers
le transfert de samba vers mac reste lui inchange a 23Mo/s
 
J'ai trouve une petite solution au probleme ici: http://www.mat.ethz.ch/services/it [...] read/index
 
sudo sysctl -w net.inet.tcp.delayed_ack=0
 
permet de remonter le upload du mac vers samba a 11Mo/s c'est pas encore 23 mais c'est deja mieux...


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  réseaux et sécurité

  Samba trés lent en gigabit ?

 

Sujets relatifs
arrêt très long : gconfd fautif ?Gestion des droits avec samba
[SAMBA] [RESOLU]"Incorrect parameter" quand je joint un domaine...Pbl samba ldap
[RESOLU][SAMBA] Synchro des passwords depuis XPPB lecture seule avec samba (.conf posté) resolu
accés SAMBA avec un XP homeListing des repertoires avec samba
SambaInstallation sur samba d'une imprimante partagée sous XP
Plus de sujets relatifs à : Samba trés lent en gigabit ?


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR