Re: [Samba] Samba4 consumes more CPU

2013-10-02 Thread Thiago Fernandes Crepaldi
Googling around copy_user_generic_unrolled() - a kernel space function - seen in my previous smbd profiling, I found what might be a clue for the performance drop. It is a comment on line #31 (see below) that says: 31 /* 32 * If CPU has ERMS feature, use copy_user_enhanced_fast_string. 33 * Otherw

Re: [Samba] Samba4 consumes more CPU

2013-10-01 Thread Thiago Fernandes Crepaldi
That is funny. Now that I replaced samba 4 and libc-2.13.so with debug symbols, the perf profile seems to be have changed a bit after the same tests ! Events: 54K cycles - 3.06% smbd [kernel.kallsyms] [k] copy_user_generic_unrolled - copy_user_generic_unrolled 52.63% __read_

Re: [Samba] Samba4 consumes more CPU

2013-09-30 Thread Thiago Fernandes Crepaldi
Agreed. For some strange reason I though perf would "follow" the new smbd forked and account their data too =) Unfortunately, I don't have the libc symbols (at least for today) to see what is going on there, but here is what I got in the child smbd process on the server side. The client side is a

Re: [Samba] Samba4 consumes more CPU

2013-09-30 Thread Jeremy Allison
On Mon, Sep 30, 2013 at 05:21:44PM -0300, Thiago Fernandes Crepaldi wrote: > Andrew, in my company we are also experiencing a higher CPU usage of Samba > 4 (smbd) if compared to Samba 3. > > In fact, it almost reaches 100% of CPU and uses all the memory during *dir > copies* (individual file copy

Re: [Samba] Samba4 consumes more CPU

2013-09-30 Thread Thiago Fernandes Crepaldi
Andrew, in my company we are also experiencing a higher CPU usage of Samba 4 (smbd) if compared to Samba 3. In fact, it almost reaches 100% of CPU and uses all the memory during *dir copies* (individual file copy is as good as samba 3's). I strongly believe that this CPU usage is the responsible f

Re: [Samba] Samba4 consumes more CPU

2013-09-02 Thread Andrew Bartlett
On Mon, 2013-08-26 at 22:39 +0530, Prema wrote: > Dear Andrew, > > As per your suggestion , I have attached the gdb log of the samba and smbd > process log running in the single server mode. > Also when I noted in the perf top, libndr.so consumes the maximum cpu. > I noticed that it happens soon a

Re: [Samba] Samba4 consumes more CPU

2013-08-31 Thread Prema
Dear Andrew, As per your suggestion , I have attached the gdb log of the samba and smbd process log running in the single server mode. Also when I noted in the perf top, libndr.so consumes the maximum cpu. I noticed that it happens soon after sometime the samba process is started and the CPU is fi

Re: [Samba] Samba4 consumes more CPU

2013-08-28 Thread Andrew Bartlett
On Mon, 2013-08-26 at 22:39 +0530, Prema wrote: > > > Dear Andrew, > > > As per your suggestion , I have attached the gdb log of the samba and > smbd process log running in the single server mode. > > Also when I noted in the perf top, libndr.so consumes the maximum cpu. > I noticed that it h