maxcredits and samba

Steve French smfrench at gmail.com
Wed Jun 13 03:11:30 UTC 2018


That is a huge help thanks!

So far it looks like client and server agree on credits - even on
reconnect ... so the problem is most likely only when pending i/o
during a reconnect in which case the number of credits can be off
after reconnect (perhaps goes negative?)

On Tue, Jun 12, 2018 at 6:27 PM, Jeremy Allison <jra at samba.org> wrote:
> On Tue, Jun 12, 2018 at 06:02:32PM -0500, Steve French via samba-technical wrote:
>> Have been trying to debug the number of credits the client asks for on
>> reconnect, and noticed that it is hard to figure out how many credits
>> the server thinks the client has been granted.   Windows has lots of
>> great powershell commands for dumping server and network configuration
>> but it will only dump out the max not the current number of credits
>> apparently.  But I was hoping that for Samba server I could do
>> "smbstatus -v" or equivalent to dump out detailed information on the
>> session including the number of credits granted (but it doesn't seem
>> to display credits)
>>
>> Any ideas the easiest way to dump out the current values for seq_low
>> and seq_range and granted and max from the per-session credits
>> structure in Samba so I can verify that Samba and the client agree?
>
> In current master the credits are listed in their own debugclass,
> so you can just set:
>
> log level = smb2_credits:10
>
> to see all the smbd credit calculations.



-- 
Thanks,

Steve



More information about the samba-technical mailing list