简体   繁体   English

Yocto一次只执行一项任务

[英]Yocto runs only one task inside at a time

I have setup my development environment inside Virtual Machine running Ubuntu 14.04. 我已经在运行Ubuntu 14.04的虚拟机中设置了开发环境。 My company doesn't allow me to run direct Linux Flavoured OS may be due to security reasons. 我的公司不允许我运行直接Linux风味的操作系统,这可能是出于安全原因。

One thing I have observed is that in VM it only runs one task ast a time whereas if i run on my personal laptop it runs multiple tasks at a time. 我观察到的一件事是,在VM中,它一次只能运行一个任务,而如果我在个人笔记本电脑上运行,则一次只能运行多个任务。

Is there any way to configure poky in local.conf file for example or any other file for it to run multiple tasks at the same time. 有没有什么方法可以配置例如在local.conf文件或任何其他文件中的poky使其同时运行多个任务。 I have given more than 6 GB of RAM to the VM. 我已经为虚拟机提供了超过6 GB的RAM。

As it is running one task, build is taking a lot of time.. 由于正在执行一项任务,因此构建要花费大量时间。

Thanks for your time 谢谢你的时间

bitbake task executor enquires for number of CPUs dynamically, so it seems that you might have allocated 1 cpu to your VM. bitbake任务执行器动态查询CPU数量,因此您似乎已为VM分配了1个CPU。 You might be able to see CPUs with below command in VM 您可能可以在VM中使用以下命令查看CPU

lscpu

You might want to allocate more CPUs. 您可能要分配更多的CPU。 VirtualBox lets you do that VirtualBox让您做到这一点

  1. Stop virtual machine 停止虚拟机
  2. Click settings-> click system -> click processor -> Change the number of procesors. 单击设置->单击系统->单击处理器->更改处理器数量。

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

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