[Samba] Performance problem when tagging mp3 files

Jörg Spilker js at jetsys.de
Sun Aug 24 08:05:38 GMT 2008


Hello you,

maybe you can help me with a performance problem i´ve when tagging mp3 
files from a windows vista system where the files are located on a samba 
share hosted by a suse linux 9.3.

these are my performance relevant settings.

# These settings are a suggestion for a local network. Cf. section
# 'socket options' in the man page of smb.conf and socket(7).
         time server = yes
         getwd cache = yes
         level2 oplocks = yes
         preserve case = yes
         case sensitive = no
         map archive = no
         socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY

the performance when transferring large files is great in my opinion. 
I´ve hand stopped 72 seconds for transferring about 800MB to a share (in 
a 100MBit network).

But tagging mp3 files is incredibly slow. For example: If i just change 
the album tag of 10 mp3 files and save the result, saving lasts about 30 
seconds or more.

And my samba log (with log level 2) shows something like:

[2008/08/24 10:01:04, 2] smbd/open.c:open_file(352)
   js opened file mp3/Rock/U2/U218 Singles/U2 And Green Day - U218 
Singles - 17 - The Saints Are Coming.mp3 read=Yes write=No (numopen=1)
[2008/08/24 10:01:04, 2] smbd/close.c:close_normal_file(344)
   ftp closed file mp3/Rock/U2/U218 Singles/U2 And Green Day - U218 
Singles - 17 - The Saints Are Coming.mp3 (numopen=0)
[2008/08/24 10:01:04, 2] smbd/open.c:open_file(352)
   js opened file mp3/Rock/U2/U218 Singles/U2 And Green Day - U218 
Singles - 17 - The Saints Are Coming.mp3 read=Yes write=Yes (numopen=1)
[2008/08/24 10:01:07, 2] smbd/close.c:close_normal_file(344)
   ftp closed file mp3/Rock/U2/U218 Singles/U2 And Green Day - U218 
Singles - 17 - The Saints Are Coming.mp3 (numopen=0)
[2008/08/24 10:01:07, 2] smbd/open.c:open_file(352)
   js opened file mp3/Rock/U2/U218 Singles/U2 And Green Day - U218 
Singles - 17 - The Saints Are Coming.mp3 read=Yes write=No (numopen=1)

there is this strange 3 seconds delay on the write operation? I must say 
that the share has force user ftp and force group daemon and myself i 
logged on the windows system with the account "js".

Can i do anything against this problem?

Greetings, Jörg.


More information about the samba mailing list