1 1

Run processes on separate cores

Recommended Posts


I have a board based on dual core SoC A20, I can run processes on separate cores?
I want run Armbian on the one core and my module on other core.


Share this post

Link to post
Share on other sites

I'm not sure what you want to achieve, but I think you should have a look at:

$ man taskset

TASKSET(1)                                                                          User Commands                                                                         TASKSET(1)

       taskset - retrieve or set a process's CPU affinity

This will pin a process to a cpu set, but it won't be isolated from other activities (other scheduled processes, kernel activities)


If you want your userspace process(es) to be shielded from OS kernel activity, this probably won't be suffcient...


There's the isolcpus kernel boot option: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/kernel-parameters.txt#n1814

Share this post

Link to post
Share on other sites

Thanks vincele,

This complicated question for me, but I try understand.

I want to run Kernel with IRQ and with all user mode applications on the one core.

And I wanr to run my Kernel module with specific  IRQ on other core.

Share this post

Link to post
Share on other sites

Please also check this for H3 here: http://forum.armbian.com/index.php/topic/1901-patch-for-quick-interrupt-handling-on-the-h3-fast-gpio/ (and please be aware that I've no idea whether/how this could be ported to A20 -- but since H3 devices start at $7.99 currently...)

This great example about work with IRQ for H3.

But for my project need only A20, I will try use this method for this SoC.

One more question - can I run a kernel module on the selected SoC core?

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

1 1