Skip to content

Long boot time with WSL2 6.6 and redroid13 #899

Description

@palchrb

I have built a custom kernel and kernel modules following this guide; https://gist.github.com/onomatopellan/c5220c0efddaff69aaff77cca80b7b8e I tried the redroid deepwiki guide first, but that did not specify how to build modules as well and then nothing - including docker- worked. So could be an idea to update the wiki based on this? I also had to include loading binderfs upon wsl boot in wsl.conf.

I can then get redroid13 to run, but it does take a long time as it gets stuck here for quite some time... Looking for any improvements i could implement to make it a bit snappier?

[   22.043746] init: Exec service is hung? Waited 10.0115 without SIGCHLD
[   22.048464] init: exec service opened: /dev/null
[   22.049953] init: exec service opened: /dev/null
[   22.050637] init: exec service opened: /dev/null
[   22.051263] init: exec service opened: /dev/binderfs/binder
[   22.052144] init: exec service: Name:\x09vdc
[   22.052635] init: exec service: Umask:\x090077
[   22.053197] init: exec service: State:\x09D (disk sleep)
[   22.054282] init: exec service: Tgid:\x0933
[   22.054597] init: exec service: Ngid:\x090
[   22.054890] init: exec service: Pid:\x0933
[   22.055192] init: exec service: PPid:\x091
[   22.055512] init: exec service: TracerPid:\x090
[   22.055973] init: exec service: Uid:\x091000\x091000\x091000\x091000
[   22.056347] init: exec service: Gid:\x091000\x091000\x091000\x091000
[   22.056774] init: exec service: FDSize:\x0964
[   22.057195] init: exec service: Groups:\x09
[   22.058888] init: exec service: NStgid:\x0933
[   22.059252] init: exec service: NSpid:\x0933
[   22.059591] init: exec service: NSpgid:\x0933
[   22.059815] init: exec service: NSsid:\x091
[   22.060043] init: exec service: Kthread:\x090
[   22.060206] init: exec service: VmPeak:\x0910820092 kB
[   22.060513] init: exec service: VmSize:\x0910819920 kB
[   22.060864] init: exec service: VmLck:\x09       0 kB
[   22.061323] init: exec service: VmPin:\x09       0 kB
[   22.062347] init: exec service: VmHWM:\x09    4024 kB
[   22.062738] init: exec service: VmRSS:\x09    4024 kB
[   22.062967] init: exec service: RssAnon:\x09     596 kB
[   22.063267] init: exec service: RssFile:\x09    3300 kB
[   22.063521] init: exec service: RssShmem:\x09     128 kB
[   22.063755] init: exec service: VmData:\x09    8540 kB
[   22.063979] init: exec service: VmStk:\x09     132 kB
[   22.064176] init: exec service: VmExe:\x09      68 kB
[   22.064453] init: exec service: VmLib:\x09    3144 kB
[   22.064664] init: exec service: VmPTE:\x09     132 kB
[   22.065021] init: exec service: VmSwap:\x09       0 kB
[   22.066094] init: exec service: HugetlbPages:\x09       0 kB
[   22.066580] init: exec service: CoreDumping:\x090
[   22.066879] init: exec service: THP_enabled:\x091
[   22.067129] init: exec service: untag_mask:\x090xffffffffffffffff
[   22.067457] init: exec service: Threads:\x091
[   22.067633] init: exec service: SigQ:\x092/29217
[   22.067832] init: exec service: SigPnd:\x090000000000000000
[   22.068089] init: exec service: ShdPnd:\x090000000000000000
[   22.068292] init: exec service: SigBlk:\x090000000080000000
[   22.068547] init: exec service: SigIgn:\x090000002000000000
[   22.068815] init: exec service: SigCgt:\x090000004c400084f8
[   22.069286] init: exec service: CapInh:\x090000000000000000
[   22.070461] init: exec service: CapPrm:\x090000000000000000
[   22.070803] init: exec service: CapEff:\x090000000000000000
[   22.071004] init: exec service: CapBnd:\x09000001ffffffffff
[   22.071257] init: exec service: CapAmb:\x090000000000000000
[   22.071497] init: exec service: NoNewPrivs:\x090
[   22.071774] init: exec service: Seccomp:\x092
[   22.071949] init: exec service: Seccomp_filters:\x091
[   22.072154] init: exec service: Speculation_Store_Bypass:\x09thread vulnerable
[   22.072562] init: exec service: SpeculationIndirectBranch:\x09conditional enabled
[   22.073009] init: exec service: Cpus_allowed:\x09ffff
[   22.074590] init: exec service: Cpus_allowed_list:\x090-15
[   22.075515] init: exec service: Mems_allowed:\x0900000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001
[   22.077726] init: exec service: Mems_allowed_list:\x090
[   22.078614] init: exec service: voluntary_ctxt_switches:\x094
[   22.078919] init: exec service: nonvoluntary_ctxt_switches:\x092
[   22.079443] init: Attempting to handle any stuck SIGCHLDs...
[   22.180218] init: signal_fd: received unexpected signal 0: Try again
[   32.190252] init: Exec service is hung? Waited 20.1593 without SIGCHLD
[   42.201888] init: Exec service is hung? Waited 30.1709 without SIGCHLD
[   48.502528] hv_balloon: Max. dynamic memory size: 7558 MB
[   52.213433] init: Exec service is hung? Waited 40.1827 without SIGCHLD
[   62.224823] init: Exec service is hung? Waited 50.1945 without SIGCHLD
[   72.236027] init: Exec service is hung? Waited 60.2061 without SIGCHLD
[   82.247186] init: Exec service is hung? Waited 70.2176 without SIGCHLD
[   92.258289] init: Exec service is hung? Waited 80.229 without SIGCHLD
[  102.266948] init: Exec service is hung? Waited 90.2401 without SIGCHLD
[  112.277825] init: Exec service is hung? Waited 100.252 without SIGCHLD
[  122.289229] init: Exec service is hung? Waited 110.263 without SIGCHLD
[  132.300778] init: Exec service is hung? Waited 120.275 without SIGCHLD
[  142.311679] init: Exec service is hung? Waited 130.287 without SIGCHLD
[  152.322458] init: Exec service is hung? Waited 140.298 without SIGCHLD
[  162.328997] init: Exec service is hung? Waited 150.305 without SIGCHLD
[  172.339695] init: Exec service is hung? Waited 160.317 without SIGCHLD
[  182.349961] init: Exec service is hung? Waited 170.327 without SIGCHLD
[  192.360466] init: Exec service is hung? Waited 180.338 without SIGCHLD
[  202.371122] init: Exec service is hung? Waited 190.35 without SIGCHLD
[  212.382321] init: Exec service is hung? Waited 200.361 without SIGCHLD
[  222.393328] init: Exec service is hung? Waited 210.373 without SIGCHLD
[  232.404585] init: Exec service is hung? Waited 220.385 without SIGCHLD
[  242.415200] init: Exec service is hung? Waited 230.396 without SIGCHLD
[  252.426342] init: Exec service is hung? Waited 240.408 without SIGCHLD
[  254.407978] binder_alloc_selftest: PASSED
[  254.408851] binder: 1812:1812 cannot find target node

This is based on running this docker-compose.yml.

services:
  redroid13:
    build:
      context: /home/user/redroidtest
      dockerfile: Dockerfile
    container_name: redroid13
    privileged: true
    restart: always

    ports:
      - "127.0.0.1:5555:5555"

    devices:
      - "/dev/kvm:/dev/kvm"
      - "/dev/dri:/dev/dri" # i probably dont need this given guest mode on gpu..

    volumes:
      - ./data:/data

    shm_size: "2g"

    command: >
      androidboot.redroid_width=1080
      androidboot.redroid_height=1920
      androidboot.redroid_dpi=480
      androidboot.redroid_fps=60
      androidboot.redroid_gpu_mode=guest
      androidboot.use_memfd=true
      ro.setupwizard.mode=DISABLED

Custom image built based on github.com/redroid-script logic with mtg with this dockerfile;

FROM debian:bookworm-slim AS fetch
ARG GAPPS_URL="https://github.com/MindTheGapps/13.0.0-x86_64/releases/download/MindTheGapps-13.0.0-x86_64-20231025_201203/MindTheGapps-13.0.0-x86_64-20231025_201203.zip"
RUN apt-get update && apt-get install -y --no-install-recommends curl unzip ca-certificates && \
    rm -rf /var/lib/apt/lists/*
RUN curl -fL "$GAPPS_URL" -o /mtg.zip && mkdir -p /mtg && unzip -q /mtg.zip -d /mtg

FROM redroid/redroid:13.0.0-latest
COPY --from=fetch /mtg/system/ /system/
CMD ["/init"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions