问答 店铺
热搜: ZYNQ FPGA discuz

QQ登录

只需一步,快速开始

微信登录

微信扫码,快速开始

微信扫一扫 分享朋友圈

已有 4989 人浏览分享

开启左侧

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

[复制链接]
4989 4
跑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
越努力越幸运!加油!

举报 使用道具

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

本版积分规则

0

关注

2

粉丝

8

主题
精彩推荐
热门资讯
网友晒图
图文推荐

  • 微信公众平台

  • 扫描访问手机版