feat(libkernel): report no write throttling in sceKernelWriteThrottlingStatus #1095
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1095"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by kjhq on 2026-10-07T10:42:01Z.
What
Adds
sceKernelWriteThrottlingStatus(uint64_t status[4]). The PS5 limits how much a title may write to the SSD; this call reports the current state. The host has no such budget, so the call always reports that writing is not throttled:status[0](a write allowance in 64 KiB units) =UINT32_MAXstatus[1..3]= 0The signature and the unit of
status[0]come from PPSA17221 (Minecraft). Its only caller (eboot VA0xb7338b0) works as follows:0x8F00000,0x11F00001,0x25700001and0x4AF00001to pick one of five tiers.0x4B000001bytes instead. That takes the same top tier asUINT32_MAX.TechnicalDebt (Functional) records what remains unknown: whether the value is a remaining budget or a rate on hardware, and what the other three qwords mean.
The function sits next to
sceKernelFsyncinFile/src/Stdio.cpp.guest_filesystemchecks the written values.Title
PPSA17221 (Minecraft) needs #716 to load the modules in its app root, so every run below is current
main+ #716 + the PRs of this set (#1088, #1090–#1096), plus local changes outside it: dialog, NpAuth and TextToSpeech2 stubs that open PRs cover (#560, #925, #301) and a GPU end-of-pipe change that is not submitted. With all of them the title loads a world. The line below is from a run with only this PR left out, Windows 11, WinLibs GCC, normal user session.Without it startup stops at load:
YFC3dBBipj8issceKernelWriteThrottlingStatus.Tested
Debian 13 (WSL2), GCC 14.2.0, Release: full
ctest390/390 passed (GPU tests skipped: no Vulkan device in WSL), includingguest_filesystem.Windows 11, WinLibs GCC: PPSA17221 with this PR and the rest of the set loads a world (runs described above). Not tested with Windows
ctest.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-07T13:54:13Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/TechnicalDebt.mdL211docs/dev/TechnicalDebt.mdL211docs/dev/TechnicalDebt.mdL211Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T04:35:57Z.
Progress report (
66b8abd→329c825)➖ System libraries: 85.22% (+0.0%, +1 implemented functions)
✅ 1 implemented
sceKernelWriteThrottlingStatusImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T06:43:59Z.
Checked: build + full ctest on this head (390/390) and on the rebase (419/419);
guest_filesystemfails to link without the change, so it exercises it. The NID matches the one KytyPS5 registers, and the TechnicalDebt entry records what is inferred from PPSA17221 and what is unknown.It conflicted with main in
docs/dev/TechnicalDebt.md(the new Http2 line). I rebased and kept both lines; nothing else changed. Merging once CI is green on the rebased head.