[Samba] samba profiling

Anoop C S anoopcs at samba.org
Mon Dec 21 05:16:09 UTC 2020


On Sat, 2020-12-19 at 16:34 +0100, Andrea Cucciarre' via samba wrote:
> Hello,
> 
> I am trying to get some samba statistics on CentOS (standard samba
> that 
> comes with CentOS), so I have enabled the profiling in smb.conf:
> 
> smbd profiling level = on
> 
> and the samba seems to be compiled with the profling option:
> 
> # smbd -b | grep -i profil
>     HAVE_PROFILE_H
>     HAVE_KRB5_GET_PROFILE
>     WITH_PROFILE
> 
> However, all the stats values are zero in "smbstatus -P", as you can
> see 
> below.
> am I missing somthing?

Use `smbcontrol <smbd-pid> profile on` to start profiling and
`smbcontrol <smbd-pid> profile off` or `smbcontrol <smbd-pid> profile
flush` to stop or clear profiling stats.

> **** "SMBD loop" 
> **************************************************************
> connect_count: 0
> disconnect_count: 0
> idle_count: 0
> idle_time: 0
> cpu_user_time: 0
> cpu_system_time: 0
> request_count: 0
> push_sec_ctx_count: 0
> push_sec_ctx_time: 0
> set_sec_ctx_count: 0
> set_sec_ctx_time: 0
> set_root_sec_ctx_count: 0
> set_root_sec_ctx_time: 0
> pop_sec_ctx_count: 0
> pop_sec_ctx_time: 0
> **** "System Calls" 
> ***********************************************************
> syscall_opendir_count: 0
> syscall_opendir_time: 0
> syscall_fdopendir_count: 0
> syscall_fdopendir_time: 0
> syscall_readdir_count: 0
> syscall_readdir_time: 0
> syscall_seekdir_count: 0
> syscall_seekdir_time: 0
> syscall_telldir_count: 0
> syscall_telldir_time: 0
> syscall_rewinddir_count: 0
> .....
> 
> 
> 
> 
> 
> 





More information about the samba mailing list