onstat -g ath | grep 'cpu.*poll'
tid tcb rstcb prty status vp-class name 8 a362b90 0 2 running 1cpu tlitcppoll 9 a36e8e0 0 2 cond wait arrived 3cpu
status 字段包含下列信息:running 、cond wait 、IO Idle 、IO Idle 、sleeping secs: number_of_seconds 或 sleeping forever。为了提高性能,可以移除或减少标识为 sleeping forever 线程的数量。
有关处理器类型的信息,请参阅 GBase 8s 管理员指南 中的虚拟处理器和线程一章。
该命令有等同的 SQL 管理 API 函数。