SMB2 performance is worse than SMB1 while iometer 512byte transfer
Volker Lendecke
Volker.Lendecke at SerNet.DE
Sun Sep 15 14:26:14 CEST 2013
On Sun, Sep 15, 2013 at 06:21:27AM +0800, Jones wrote:
> Hi Jeremy,
>
> 2013/9/14 Jeremy Allison <jra at samba.org>
> >
> >
> > talloc_chunk_from_ptr should be inlined, so I'm assuming
> > inlined functions shouldn't show up on perf (I may be
> > wrong here :-).
> >
> > How are you compiling smbd. Are you using -O<level> ?
> >
>
> You are right! It is my fault!
> There is no optimization level is specified when I compiling samba4,
> After re-run the configuration phase with CFLAGS="-O -g" and re-compiling,
> perf top does not show talloc_chunk_from_ptr anymore.
>
> With samba-3.6, though -O is not specified in configuration phase,
> source3/Makefile could see this
> CFLAGS= -O -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS $(FLAGS)
> -D_SAMBA_BUILD_=3
>
> With samba-4 series, it is likely -O should be explicit specified,
> now samba4 is deployed with python-style waf so cannot found the Makefile
> as expected.
>
> Found following links but not get much hint to where add the optimize flags,
> is ./configure CFLAGS="-O" sufficient?
I always do
CFLAGS=-O ./configure
Just one question: Does -O3 make a difference?
Volker
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
*****************************************************************
visit us on it-sa:IT security exhibitions in Nürnberg, Germany
October 8th - 10th 2013, hall 12, booth 333
free tickets available via code 270691 on: www.it-sa.de/gutschein
******************************************************************
More information about the samba-technical
mailing list