SMB metrics

The following section lists all the SMB metrics.

SMBGlobalStats

  • connect count: Number of connections since start of the parent smbd process.
  • disconnect count: Number of connections that are closed since start of the parent smbd process.
  • idle: Describes the idling behavior of smbd.
    • count: Number of times the smbd processes are waiting for events in epoll.
    • time: Times the smbd process that is spend in waiting for events in epoll.
  • cpu_user time: The user time that is determined by the get_rusage system call in seconds.
  • cpu_system time: The system time that is determined by the get_rusage system call in seconds.
  • request count: Number of SMB requests since start of the parent smbd process.
  • push_sec_ctx: SMBDs switch between the user and the root security context. The push action places the current context onto a stack.
    • count: Number of times the current security context is pushed onto the stack.
    • time: The time that it takes to put the current security context, which includes all syscall that is needed to save the current context on the stack.
  • pop_sec_ctx: Getting the last security context from the stack and restore it.
    • count: Number of times the current security context is restored from the stack.
    • time: The time that it takes to put the restore the security context from the stack, which includes all syscall that is needed to get restore the security context from the stack.
  • set_sec_ctx:
    • count: Number of times the security context is set for user.
    • time: The time that it takes to set the security context for user.
  • set_root_sec_ctx:
    • count: Number of times the security context is set for user.
    • time: The time that it takes to set the security context for user.

SMB2 metrics

The SMB2 metrics are available for all SMB2 requests, such as create, read, write, and find.

  • op_count: Number of times the corresponding SMB request is called.
  • op_idle
    • for notify: Time that is taken between a notification request and sending a corresponding notification.
    • for oplock breaks: Time that is waiting until an oplock is broken.
    • For all others, the value is always zero.
  • op_inbytes: Number of bytes that are received for the corresponding request that includes protocol headers.
  • op_outbytes: Number of bytes that are sent for the corresponding request that includes protocol headers.
  • op_time: The total amount of time that is spent for all corresponding SMB2 requests.