您好,欢迎来到二三四教育网。
搜索
您的当前位置:首页system.fs.file_handles Metrics f

system.fs.file_handles Metrics f

来源:二三四教育网

Name

  • system.fs.file_handles.in_use
  • The amount of used allocated file handles over the system max.
  • fraction (unit)
  • system.fs.file_handles.max
  • The max amount of file handles over the system max.
  • handles (unit)
  • system.fs.file_handles.used
  • The amount of used file handles over the system.
  • handles
  • system.fs.file_handles.allocated
  • The amount of allocated file handles over the system.
  • system.fs.file_handles.allocated_unused
  • The amount of unused file handles over the system.

计算公式

# handle_metrics = [23104, 0, 3040400]
# 
# allocated_fh = float(handle_metrics[0])
# allocated_unused_fh = float(handle_metrics[1])
# max_fh = float(handle_metrics[2])
# num_used = allocated_fh - allocated_unused_fh
system.fs.file_handles.allocated = allocated_fh
system.fs.file_handles.allocated_unused = allocated_unused_fh
system.fs.file_handles.in_use = num_used / max_fh
system.fs.file_handles.used = num_used
system.fs.file_handles.max = max_fh

数据来源

# cat /proc/sys/fs/file-nr

23104   0   3040400

Copyright © 2019- how234.cn 版权所有 赣ICP备2023008801号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务