[X]关闭

跑linux系统的时候,使用的CPU是两个同时吗? 他的主频是多少

文档创建者:vortex
浏览次数:4007
最后更新:2019-04-18
跑linux系统的时候,使用的CPU是两个同时吗? 他的主频是多少

发表评论已发布 4

uisrc

发表于 2019-4-15 11:42:55 | 显示全部楼层

我们默认程序都是跑667M  CPU最大支持776M
越努力越幸运!加油!

菲尼克兔

发表于 2019-4-17 17:01:04 | 显示全部楼层

我也好奇,是一个CPU跑还是两个同时跑哈,楼主没有回答哈

菲尼克兔

发表于 2019-4-18 10:54:11 | 显示全部楼层

楼主好,
    关于使用多少CPU的问题,可以参考如下网页:
https://xilinx-wiki.atlassian.ne ... 18841961/Zynq+Linux
    照抄一段:
SMP
By default the kernel is configured to use both CPUs in SMP mode. The following command shows the CPU information and should indicate two CPUs, numbered 0 and 1.
By default, the kernel handles all interrupts on the 1st CPU. They can be pushed to the 2nd CPU and there are user space daemons that will do interrupt load balancing.
zynq> cat /proc/cpuinfo
Using A Single CPU
A user may cause it to use only one CPU by adding "maxcpus=1" to the kernel command line in the device tree.
Specifying A CPU
A user may cause an application to run on a specific CPU using the BusyBox utility taskset.
The following command will display the help information for the taskset command.
zynq> taskset --help
The mask field of the command specifies the CPU and is a value of 1 or 2.
The following command starts the application top running on the 2nd CPU.
zynq> taskset 2 top

uisrc

发表于 2019-4-18 13:20:16 | 显示全部楼层

ok
越努力越幸运!加油!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则