TurnToJPG -->

Start the redroid via:

# docker run -itd --name redroid4cores --memory-swappiness=0 --privileged   -p 5556:5555 --cpuset-cpus 0-3 -v /root/cpus/present:/sys/devices/system/cpu/present -v /root/cpus/online:/sys/devices/system/cpu/online -v /root/cpus/possible:/sys/devices/system/cpu/possible redroid12:latest redroid.fps=120 ro.sf.lcd_density=240 redroid.width=1080 redroid.height=1920 redroid.gpu.mode=host redroid.gpu.node=/dev/dri/renderD128 androidboot.use_memfd=1
root@ctctest-UniServer-R4900-G3:~# docker exec -it redroid4cores sh
fe847de1c10f:/ # setprop sys.use_memfd 1 


Remove the other 3 socs:

# rm -rf /dev/dri/renderD129 /dev/dri/renderD130 /dev/dri/renderD131 
# rm -rf /dev/dri/card1 /dev/dri/card2 /dev/dri/card3

Rerun the benchmark, still the same:


Remove the device:

# echo 1 > /sys/bus/pci/devices/0000:b8:00.0/remove
# echo 1 > /sys/bus/pci/devices/0000:c2:00.0/remove
# echo 1 > /sys/bus/pci/devices/0000:bd:00.0/remove

System hang.

Using udev for removing the socs:

# cat /etc/udev/rules.d/removesg1.rules 
ACTION=="add", KERNEL=="0000:b8:00.0", SUBSYSTEM=="pci", RUN+="/bin/sh -c 'echo 1 > /sys/bus/pci/devices/0000:b8:00.0/remove'"
ACTION=="add", KERNEL=="0000:bd:00.0", SUBSYSTEM=="pci", RUN+="/bin/sh -c 'echo 1 > /sys/bus/pci/devices/0000:bd:00.0/remove'"
ACTION=="add", KERNEL=="0000:c2:00.0", SUBSYSTEM=="pci", RUN+="/bin/sh -c 'echo 1 > /sys/bus/pci/devices/0000:c2:00.0/remove'"

Examine the graphical cards:

# lspci | grep -i vga
0000:05:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 41)
0000:b3:00.0 VGA compatible controller: Intel Corporation Device 4907 (rev 01)

render nodes:

# ls /dev/dri/
by-path  card0  renderD128
# ls /dev/dri/by-path/ -l
total 0
lrwxrwxrwx 1 root root  8 8月  26 11:49 pci-0000:b3:00.0-card -> ../card0
lrwxrwxrwx 1 root root 13 8月  26 11:49 pci-0000:b3:00.0-render -> ../renderD128

Rerun the testing:


Another machine


Turbo boost mode(avd) comparision:

non-turbo boost


turbo boost(sg1):


Turbo boot (t4):


vnc(best perf mode):


no vnc(best perf mode), no scrcpy:


scrcpy with 15fps:


scrcpy with 5fps:


no scrcpy again:


t4 with scrcpy:


ampere t4 with scrcpy:



cpupower frequency-set -g performance

ampere t4 without scrcpy:


should upgrade to oibaf? upgrading to stable.

sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt update
sudo apt upgrade

Next week, upgrading to 5.19.3

Even on 5.19.3, benchmark is very bad: