Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multithreading in gem5 aarch64 FS using taskset #139

Open
itamarbon opened this issue Dec 2, 2020 · 2 comments
Open

Multithreading in gem5 aarch64 FS using taskset #139

itamarbon opened this issue Dec 2, 2020 · 2 comments

Comments

@itamarbon
Copy link

itamarbon commented Dec 2, 2020

I am trying to explore multithreading on a gem5 simulator running through LKMC. I want to run different processes on different CPUs, and am trying to bind the tasks to each CPU using taskset.
I get -/bin/sh: taskset: not found when I try to run the command.
What can I do to enable this utility in for aarch64 FS?
Thanks,
Itamar

@cirosantilli
Copy link
Owner

Ah, now I understood the problem taskset is not built in by default, can you rebuild the image with:

./build-buildroot \
  --arch aarch64 \
  --config 'BR2_PACKAGE_UTIL_LINUX=y' \
  --config 'BR2_PACKAGE_UTIL_LINUX_SCHEDUTILS=y' \
;

This is mentioned at: https://cirosantilli.com/linux-kernel-module-cheat/#gdb-step-debug-multicore-userland but might not be clear from other sections.

@itamarbon
Copy link
Author

thanks, this works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants