limitlessx 2015-07-16 08:08 采纳率: 0%
浏览 4618
已结题

show profile 中 query end 状态含义

表2000行, id主键,98%update正常,突然有一条很慢, 使用show profile查询的结果是下面这个状态占用时间比较长,
{
"Status": "query end",
"Duration": "1.751142",
"CPU_user": "0.008999",
"CPU_system": "0.003999",
"Context_voluntary": "98",
"Context_involuntary": "0",
"Block_ops_in": "8",
"Block_ops_out": "32",
"Messages_sent": "0",
"Messages_received": "0",
"Page_faults_major": "0",
"Page_faults_minor": "0",
"Swaps": "0",
"Source_function": "mysql_execute_command",
"Source_file": "sql_parse.cc",
"Source_line": "4465"
},
请问这个 "Status": "query end", 状态是什么状态, 这个状态下在执行什么事情?
"Context_voluntary": "98", "Block_ops_in": "8", "Block_ops_out": "32" 这些字段的含义是什么?

大多数时候这些字段都是0, 为什么突然一条这几个字段很高?

  • 写回答

2条回答 默认 最新

  • oyljerry 2015-07-16 08:24
    关注

    CONTEXT_VOLUNTARY and CONTEXT_INVOLUNTARY indicate how many voluntary and involuntary context switches occurred.

    BLOCK_OPS_IN and BLOCK_OPS_OUT indicate the number of block input and output operations.

    STATE is the profiling state to which the row measurements apply.

    评论

报告相同问题?

悬赏问题

  • ¥60 Python如何后台操作Vmwake虚拟机键鼠
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容