首页 / AMD-FPGA / 帖子

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

作者 vortex 2019-04-13 9406 次浏览 4 条回复 论坛存档
v
vortex
2019-04-13
楼主

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

uisrc
uisrc
2019-04-15
#1

我们默认程序都是跑667M CPU最大支持776M

菲
菲尼克兔
2019-04-17
#2

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

菲
菲尼克兔
2019-04-18
#3

楼主好,

关于使用多少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

uisrc
uisrc
2019-04-18
#4

ok

这是论坛时期的原帖存档,只读。新的讨论请到 提问, 沉淀下来的内容会进 知识库 和 方案库。