跑linux系统的时候,使用的CPU是两个同时吗? 他的主频是多少
首页 / AMD-FPGA / 帖子
跑linux系统的时候,使用的CPU是两个同时吗? 他的主频是多少
我们默认程序都是跑667M CPU最大支持776M
我也好奇,是一个CPU跑还是两个同时跑哈,楼主没有回答哈
楼主好,
关于使用多少CPU的问题,可以参考如下网页:
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/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
ok