[Samba] Multichannel working at half speed with 2x NICs

Michael Adam obnox at samba.org
Sat Oct 1 12:04:44 UTC 2016


On 2016-09-28 at 21:59 +0000, Kanchana Marasinghe via samba wrote:
> Sorry for the delay Jeremy. I ran strace on the lowest pid for smbd (I ran
> "pidof smbd" to get pids, and used the lowest one of the 4 or so that came
> up).

The lowest pid should be the main smbd.
That's not the one you need to strace:
you need to find out which smbd process belongs
to your session (with smbstatus) and strace _that_ pid.

That one should show reads/writes.

Cheers - Michael

> Command was "strace -f -o strace.log `ls /proc/2019/task/ | xargs -n 1 echo
> -n " -p`". I then copied a 1.3GB file from the server to my client to
> generate traffic. The resulting file was around 93k lines (15MB). I've
> copied the first 2000 lines since it looks like the rest are
> repeats/similar: http://pastebin.com/raw/2EJsk0An
> 
> I can provide the full file as well if required.
> 
> On Wed, Sep 28, 2016 at 1:54 PM Jeremy Allison <jra at samba.org> wrote:
> 
> > On Wed, Sep 28, 2016 at 07:45:03PM +0000, Kanchana Marasinghe via samba
> > wrote:
> > > Hi Jeremy,
> > >
> > > Is it safe to assume it's just "strace -p <pid>", for the running samba
> > > daemon?
> >
> > http://lichtman.io/strace-an-existing-multi-threaded-process/
> >
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba/attachments/20161001/7e489e1d/signature.sig>


More information about the samba mailing list