Re: [Samba] slow creating files

2012-02-16 Thread
Have you enable the 'ea support' and 'store dos attributes' in your smb.conf?

在 2012年2月17日 上午9:38,Al mailingl...@theflux.net 写道:
 Agreed, run 'top d1' then look at the line:

 Cpu(s):  0.5%us,  0.5%sy,  0.0%ni, 99.0%id,  0.0%wa,  0.0%hi,  0.0%si,
  0.0%st

 If you see '%wa' higher than 15.0 you have slow disk writing...

 On Feb 16, 2012, at 12:36 AM, Pavel Plesov wrote:

 Hello,
 Have you checked the hardware ?
 Tools like dmesg, atop and iostat can be very helpful here.
 On Wed, Feb 8, 2012 at 17:10, Алексей Ганков a.v.gan...@gmail.com wrote:

 We tried to migrate from old Windows fileserver (p4, single HDD) to Samba
 (FedoraCore15, Samba 3.5.12-72.fc15, ext4 volume, xeon, raid5).
 Our pipeline is so, that some special software generates files on that
 fileserver.
 The typical filesize ~50 mbytes.
 On the old hardware, software (win2k3 server) the time of single file
 creation was about 10 seconds. On the new configuration it takes 20-25
 seconds.
 Copying of large files to\from samba server is ok (more than 80
 mbytes\sec).
 It was default Samba installation.
 The usual tuning doesn't help at all (TCPNODELAY etc...)

 Is there any idea for tuning?

 Also, I wrote easy test that confused me:

 #include stdio.h
 #include stdlib.h
 #include time.h
 void main(int argc, char *argv[])
 {
 int fsize=4000;
 int i=0;
 FILE *to;
 char

 str[]=0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890;
 time_t start, end;
 double diff;

 time(start);
 to=fopen(argv[1], w+);
 for(i=0; i  fsize/100; i++)
   {
   fprintf(to, \n%7d-%s,i, str);
 /fflush(to); // makes it slow!/
   }
 fclose(to);
 time(end);
 diff=difftime(end,start);
 printf(\n \t time_diff =  %.2lf, diff);
 }

 This was started on Win7 client PC, It creates about 40 mbytes size file
 in
 pointed path.
 Comparing timings on our samba share and win2k3 share gives: ~40 seconds
 on
 Samba and on  3-4 seconds win2k3!
 That means that fflush cause dramatically slow down of fileshare.

 Alexey
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba




 --
 Pavel Plesov
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba


 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba



-- 
Best Regards.
Yu Liao
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

[Samba] Copying paused under ctdb when the slave node is reboot

2011-11-11 Thread
Hi, Experts

I do the copying test with 2-nodes cluster under ctdb mode. A win2k3
client copies a big file to the share through the public ip of the
master. During the copying, I reboot the slave node forcely.  Then,
the copying through the public ip of the master pause for about 10
sec.

I wonder the ctdbd disturb the smbd. How the ctdbd communicate withe
the smbd. Is the copying disturbed during the ctdbd recover?

And how long is the smbd downtime? What is the factor of the downtime?
e.g. node number, the stress on the master?

-- 
Best Regards.
Yu Liao
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba