Hi Srikant,
Yes, for the smbd process if you wanted to flush or see the profile
counters, you should use "smbcontrol smbd <> " .
Thanks,
Shweta
On Mon, Aug 11, 2025 at 2:27?PM ., Srikanth N S via samba <
samba at lists.samba.org> wrote:
> Hi Shweta,
>
> We were using "smbcontrol all profile flush? to reset stats. When we
> changed it to "smbcontrol smbd profile flush? it is working as
expected. It
> seems like we should only use "smbcontrol smbd profile flush?. Please
> confirm.
>
> Thanks & Regards,
> Srikanth NS
>
> From: Shweta Sodani <ssodani at redhat.com>
> Date: Tuesday, 5 August 2025 at 4:47?PM
> To: ., Srikanth N S <srikanth.nagasubbaraoseetharaman at hpe.com>
> Subject: Re: [Samba] Stats are not updating after resetting
>
> I am not sure but you can play around with the "smbcontrol smbd
> profilelevel" option while profiling on or off. As I said earlier I
could
> see the count event flush , so to me this is not an issue at all.
>
> Here are some examples I am pasting that may help you.
>
>
> [root at 8c5b36910d95 mnt]# smbcontrol smbd profile off
> [root at 8c5b36910d95 mnt]# smbcontrol smbd profilelevel
> Profiling off on pid 58
>
>
> [root at 8c5b36910d95 mnt]# smbcontrol smbd profile on
> [root at 8c5b36910d95 mnt]# smbcontrol smbd profilelevel
> Profiling count and time on pid 58
>
> [root at 8c5b36910d95 mnt]# smbcontrol smbd profile flush
>
>
> I wrote some data and i could see the count
>
> smb2_create_failed_count:
> 0
> smb2_create_time:
> 2516
> smb2_create_buckets: 0,0,1,1,1,1,1,1,1,1
> smb2_create_idle:
> 0
> smb2_create_inbytes:
> 152
> smb2_create_outbytes:
> 152
> smb2_close_count:
> 1
> smb2_close_failed_count:
> 0
> smb2_close_time:
> 924
> smb2_close_buckets: 1,1,1,1,1,1,1,1,1,1
> smb2_close_idle:
> 0
> smb2_close_inbytes:
> 88
> smb2_close_outbytes:
> 124
>
>
> On Tue, Aug 5, 2025 at 4:28?PM ., Srikanth N S <
> srikanth.nagasubbaraoseetharaman at hpe.com<mailto:
> srikanth.nagasubbaraoseetharaman at hpe.com>> wrote:
> Hi Shweta,
>
> Yes we have enabled the profile "smbcontrol smbd profile on?. We have
seen
> that it does not work all the time. Please let us know how to proceed in
> this case.
>
> Regards,
> Srikanth NS
>
> From: Shweta Sodani <ssodani at redhat.com<mailto:ssodani at
redhat.com>>
> Date: Tuesday, 5 August 2025 at 4:16?PM
> To: ., Srikanth N S <srikanth.nagasubbaraoseetharaman at
hpe.com<mailto:
> srikanth.nagasubbaraoseetharaman at hpe.com>>
> Cc: samba at lists.samba.org<mailto:samba at lists.samba.org> <
> samba at lists.samba.org<mailto:samba at lists.samba.org>>
> Subject: Re: [Samba] Stats are not updating after resetting
>
> Hi Srikanth,
>
> Hope you have enabled the profile using "smbcontrol smbd profile
on" . I
> could see the counters even after using "smbcontrol smbd profile
flush"
> when I performed IO after the flush.
> Hope this helps.
>
> Thanks.
> Shweta
>
>
> On Tue, Aug 5, 2025 at 3:26?PM ., Srikanth N S via samba <
> samba at lists.samba.org<mailto:samba at lists.samba.org>> wrote:
> Hi,
>
> We cannot get the stats (smbstatus -P) after we flushed the stats using
> smbcontrol all profile flush. The counters remain 0 even if IO is running.
>
> Please let us know if this is a known issue.
>
> Thanks & Regards,
> Srikanth NS
>
>
> --
> 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
>