简体   繁体   English

如何判断AIX机器是否在power7 cpu上运行?

[英]How to tell if an AIX machine is running on a power7 cpu?

I know how to query the cpu type in C code using the sys/systemcfg.h __power_7() macro. 我知道如何使用sys / systemcfg.h __power_7()宏查询C代码中的cpu类型。 Is there a handy command that also provides this info? 是否有方便的命令也提供此信息?

You can use "lsattr -El proc0": 您可以使用“ lsattr -El proc0”:

# lsattr -El proc0
frequency   3220000000     Processor Speed       False
smt_enabled true           Processor SMT enabled False
smt_threads 4              Processor SMT threads False
state       enable         Processor state       False
type        PowerPC_POWER7 Processor type        False

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM