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.

    评论

报告相同问题?

悬赏问题

  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用
  • ¥15 我想付费需要AKM公司DSP开发资料及相关开发。