Jump to content

Run processes on separate cores


Recommended Posts

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)

NAME
       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

Link to comment
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?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines