The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
Contextualist

Go 如何排查异常高的“闲置唤醒”数值?

  •  
  •   Contextualist ·
    Contextualist · Feb 22, 2018 · 2836 views
    This topic created in 3026 days ago, the information mentioned may be changed or developed.

    最近在玩 tun2socks,大概就是结合 water 和 user space 的 netstack 接管处理 macOS 上 utun 网络接口的流量,转成 socks 转发。

    虽然 tun2socks 用起来倒没什么问题,但是活动监视器显示闲置唤醒数目却异常得高,轻量负载便上一百,有时更会上千,而这个项对于其他程序一般来说最高就几十,很少上百。没有流量时闲置唤醒倒是正常,就只有个位数。请问各位,这种情况可能是什么问题?应该往什么方向排查?

    2 replies    2018-02-22 11:08:08 +08:00
    ccsexyz
        1
    ccsexyz  
       Feb 22, 2018
    涉及到网络 IO 的程序唤醒数目高我觉得很正常啊
    Contextualist
        2
    Contextualist  
    OP
       Feb 22, 2018
    @ccsexyz 但这个高得也太夸张了,跟 kernel_task 不相上下了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1078 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 18:26 · PVG 02:26 · LAX 11:26 · JFK 14:26
    ♥ Do have faith in what you're doing.