Apple's open-source XNU kernel on Android phones: its own loader and drivers, Metal on the Adreno. Runs from RAM; a reboot gives the phone back to Android.
C
The stall that looked like a second cause was the same one
vcvkk680185c79bf9
diff --git a/README.md b/README.mdindex d80235c..c2991fb 100644--- a/README.md+++ b/README.md@@ -1186,6 +1186,12 @@ Qualcomm, так что за драйвером нет и того, к чемучто-то другое, и следующая догадка — путь контейнера `com.apple.security.cloudkeychainproxy3`, а не каталогпользователя. `bird` и `duetexpertd` собрались в образ без происшествий, но за пустую загрузкуих никто ни разу не спросил, так что они не проверены, а не хороши: нужен сеанс с приложениями.+Наконец, единственный случай, который выглядел второй, независимой причиной, оказался той же самой:+`ALLOW="syncdefaultsd appstored"` тоже терял домашний экран (77 процессов, ни одного виджета), причём безо+всякого шторма переспросов, — но тот прогон был собран ещё до того, как `nsurlsessiond` ушёл из `DENY`.+С ним в образе та же пара доходит до 112 процессов и 15 процессов виджетов и постеров, включая PosterBoard.+Шторм — только у `cloudd`; `syncdefaultsd` и `appstored` ничего не переспрашивают, они просто ждут того,+кто ждёт `nsurlsessiond`. Отсутствие симптома не означало отсутствия болезни.`GL=1 REST=1 userland/build.sh` — образ, в котором оконный сервер рисует через OpenGL ES, а не программнымрастеризатором CoreAnimation: за `EAGLContext` встаёт Mesa (прослойка — `userland/src/eagl.c`). На телефоне сdiff --git a/userland/mkjobs.py b/userland/mkjobs.pyindex f73f7ef..911c298 100755--- a/userland/mkjobs.py+++ b/userland/mkjobs.py@@ -101,17 +101,14 @@ import sys# here only because this was measured in QEMU after the phone runs were done, and the phone is where it# matters -- one flash-root run with ALLOW="cloudd" and nsurlsessiond shipped should settle it for good.# (mobileassetd alone was not measured separately; it is not the one that spins, 2 retries against 2351.)-# One thing still unexplained: ALLOW="syncdefaultsd appstored" loses the home screen the same way (77-# processes, no widgets) with no retry storm at all -- a dozen nsurlsessiond lookups, nothing spinning. So-# the stall has at least one other cause, and whoever picks this up should not assume nsurlsessiond is all of-# it. What is known about it so far, to save repeating the work:-# - it is not memory: the guest has 430 MB free and two memorystatus lines, against 260 in a good run;-# - SpringBoard is not asking for anything and failing -- it makes zero failed lookups, where a good run-# has it asking 138 times for commcenter.xpc alone, so it never reaches the stage that asks;-# - the widget stage is gated late. PosterBoard starts 266 s into a good 420 s run, so there is only about-# 150 s of margin, and a long enough delay would look exactly like a block. A 700 s run tells the two-# apart -- it was done for cloudd+mobileassetd+syncdefaultsd (84 processes, still no widgets, so that-# one is a block) but not yet for syncdefaultsd+appstored alone.+# The one stall that looked like a second cause was the same cause. ALLOW="syncdefaultsd appstored" lost the+# home screen too (77 processes, no widgets) with no retry storm at all, which seemed to rule nsurlsessiond+# out -- but that run was built before nsurlsessiond came out of this tuple. Built again with it there, the+# same pair reaches 112 processes and 15 widget and poster processes, PosterBoard among them. So every stall+# measured in this group traces to the one missing daemon, and nothing here needs a second explanation.+# The thing that nearly hid it: the storm is cloudd's alone. syncdefaultsd and appstored do not spin on+# nsurlsessiond -- they simply wait on something that waits on it -- so "no retry storm" was not evidence of+# a different cause. Absence of the symptom is not absence of the illness.# syncdefaultsd (com.apple.kvsd) is out on its own merits. It serves cloudkeychainproxy3 its store, then# aborts inside changeTokenForStoreWithConfiguration:reply: with# *** Terminating app due to uncaught exception 'NSInvalidArgumentException',