How to specified one i.MX6 CPU core for running one Linux application?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to specified one i.MX6 CPU core for running one Linux application?

1,374件の閲覧回数
m_c
Senior Contributor I

As title.

ラベル(2)
0 件の賞賛
返信
1 返信

1,121件の閲覧回数
Yuri
NXP Employee
NXP Employee

Hello,

   Basically Linux supports SMP architecture, that provides balanced load

for all cores in multicore systems.  In this sense running specific application

on separate core contradicts SMP.

  Nevertheless, it is possible to run a program or process on specific CPU cores on Linux :

to assign particular CPU cores to a program or process, one can use taskset, a command
line tool for retrieving or setting a process' CPU affinity on Linux.
Also, it is possible to restrict numbers of cores for Linux via kernel boot parameter

  “maxcpus”.


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------