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

Issue running any workload on rooted Pixel 6 (Android 13) #1199

Closed
ghost opened this issue Jan 3, 2023 · 3 comments
Closed

Issue running any workload on rooted Pixel 6 (Android 13) #1199

ghost opened this issue Jan 3, 2023 · 3 comments
Labels

Comments

@ghost
Copy link

ghost commented Jan 3, 2023

Hi, I wanted to use this tool to run some workloads on my rooted Pixel 6 (Android 13), but every benchmark has an error:

ERROR    Module "cgroups" failed to install on target: Failed to mount "cpuacct" controller
ERROR    Failed to mount "cpuacct" controller

All of this occurred when I was running: wa run dhrystone -f
As for the run log, it comes up like this:

2023-01-03 18:35:13,215 DEBUG    AndroidTar: Installing module cgroups
2023-01-03 18:35:13,216 DEBUG       android: adb -s 25091FDF6004EW shell 'su -c '"'"'(export PATH=/data/local/tmp/bin:$PATH && export LC_ALL=C && /data/local/tmp/bin/busybox cat /proc/cgroups); echo "\n$?"'"'"''
2023-01-03 18:35:13,305 DEBUG       CGroups: Available hierarchies: {3: ['cpuset'], 2: ['cpu'], 0: ['cpuacct', 'memory', 'freezer', 'net_prio'], 1: ['blkio']}
2023-01-03 18:35:13,305 DEBUG       CGroups: Available controllers:
2023-01-03 18:35:13,305 DEBUG    CGroup.cpu: Initialized [cpuset, 3, ['cpuset']]
2023-01-03 18:35:13,305 DEBUG       android: adb -s 25091FDF6004EW shell '(export PATH=/data/local/tmp/bin:$PATH && export LC_ALL=C && mount); echo "\n$?"'
2023-01-03 18:35:13,405 DEBUG       android: adb -s 25091FDF6004EW shell '(export PATH=/data/local/tmp/bin:$PATH && export LC_ALL=C && mount | grep "devlib_cgh3 "); echo "\n$?"'
2023-01-03 18:35:13,502 DEBUG    CGroup.cpu: Controller cpuset mounted under: /storage/emulated/0/devlib-target/cgroups/devlib_cgh3 (noprefix=True)
2023-01-03 18:35:13,503 DEBUG    cgroups.cp: Creating cgroup /storage/emulated/0/devlib-target/cgroups/devlib_cgh3
2023-01-03 18:35:13,503 DEBUG       android: adb -s 25091FDF6004EW shell 'su -c '"'"'(export PATH=/data/local/tmp/bin:$PATH && export LC_ALL=C && [ -d /storage/emulated/0/devlib-target/cgroups/devlib_cgh3 ] || mkdir -p /storage/emulated/0/devlib-target/cgroups/devlib_cgh3); echo "\n$?"'"'"''
2023-01-03 18:35:13,595 DEBUG       CGroups:   cpuset       : /storage/emulated/0/devlib-target/cgroups/devlib_cgh3
2023-01-03 18:35:13,595 DEBUG    CGroup.cpu: Initialized [cpu, 2, ['cpu']]
2023-01-03 18:35:13,596 DEBUG       android: adb -s 25091FDF6004EW shell '(export PATH=/data/local/tmp/bin:$PATH && export LC_ALL=C && mount); echo "\n$?"'
2023-01-03 18:35:13,687 DEBUG       android: adb -s 25091FDF6004EW shell '(export PATH=/data/local/tmp/bin:$PATH && export LC_ALL=C && mount | grep "devlib_cgh2 "); echo "\n$?"'
2023-01-03 18:35:13,757 DEBUG    CGroup.cpu: Controller cpu mounted under: /storage/emulated/0/devlib-target/cgroups/devlib_cgh2 (noprefix=False)
2023-01-03 18:35:13,758 DEBUG    cgroups.cp: Creating cgroup /storage/emulated/0/devlib-target/cgroups/devlib_cgh2
2023-01-03 18:35:13,758 DEBUG       android: adb -s 25091FDF6004EW shell 'su -c '"'"'(export PATH=/data/local/tmp/bin:$PATH && export LC_ALL=C && [ -d /storage/emulated/0/devlib-target/cgroups/devlib_cgh2 ] || mkdir -p /storage/emulated/0/devlib-target/cgroups/devlib_cgh2); echo "\n$?"'"'"''
2023-01-03 18:35:13,839 DEBUG       CGroups:   cpu          : /storage/emulated/0/devlib-target/cgroups/devlib_cgh2
2023-01-03 18:35:13,840 DEBUG    CGroup.cpu: Initialized [cpuacct, 0, ['cpuacct', 'memory', 'freezer', 'net_prio']]
2023-01-03 18:35:13,840 DEBUG       android: adb -s 25091FDF6004EW shell '(export PATH=/data/local/tmp/bin:$PATH && export LC_ALL=C && mount); echo "\n$?"'
2023-01-03 18:35:13,932 DEBUG       android: adb -s 25091FDF6004EW shell 'su -c '"'"'(export PATH=/data/local/tmp/bin:$PATH && export LC_ALL=C && mkdir -p /sdcard/wa/cgroups/devlib_cgh0 2>/dev/null); echo "\n$?"'"'"''
2023-01-03 18:35:14,012 DEBUG       android: adb -s 25091FDF6004EW shell 'su -c '"'"'(export PATH=/data/local/tmp/bin:$PATH && export LC_ALL=C && mount -t cgroup -o cpuacct,memory,freezer,net_prio devlib_cgh0 /sdcard/wa/cgroups/devlib_cgh0); echo "\n$?"'"'"''
2023-01-03 18:35:14,116 DEBUG        signal: Sending error-logged from <ErrorSignalHandler (DEBUG)>
2023-01-03 18:35:14,116 DEBUG        signal: Disconnecting <bound method Executor._error_signalled_callback of executor> from error-logged(<class 'louie.sender.Any'>)
2023-01-03 18:35:14,116 ERROR    AndroidTar: Module "cgroups" failed to install on target: Failed to mount "cpuacct" controller
2023-01-03 18:35:14,117 DEBUG        signal: Sending error-logged from <ErrorSignalHandler (DEBUG)>
2023-01-03 18:35:14,117 ERROR      executor: Failed to mount "cpuacct" controller

I was hoping maybe someone could help with a solution. Thanks!

@ghost ghost added the question label Jan 3, 2023
@marcbonnici
Copy link
Contributor

Hi, It looks like the cgroups module (which is loaded by default) is having issues with your device (we have had similar reports with another Pixel 6 ARM-software/devlib#611)

If you do not explicitly need this module you can disable the default set and re-enable any you may require for your experiments.

To do so, could you try adding the following snippet to your agenda and see if this allows your run to execute correctly?

config:
    device_config:
        load_default_modules: False

@ghost
Copy link
Author

ghost commented Jan 3, 2023

Wow thanks for the quick response!
That worked right away.
There were some warning messages, but the workload completed.
Thank you so much!

@marcbonnici
Copy link
Contributor

Great, no problem and thanks for confirming.
Please let us know if you run into any other issues.

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

No branches or pull requests

1 participant