Skip to content

Best practice: IDE reads stall every task below priority 12, with two V4 tests - #96

Open
slaapliedje wants to merge 1 commit into
ApolloTeam-dev:mainfrom
slaapliedje:best-practice/disk-reads-stall
Open

slaapliedje wants to merge 1 commit into
ApolloTeam-dev:mainfrom
slaapliedje:best-practice/disk-reads-stall

Conversation

@slaapliedje

Copy link
Copy Markdown

New hardware/best-practices/disk-reads-stall-lower-priorities.md and two hardware tests, tools/v4/tests/ide-read-rate and tools/v4/tests/ide-read-stall.

On a V4 Standalone (Core 12846, CF card on the IDE port) the CPU moves the data of every read, and while it does, tasks below priority 12 wait: a task at priority 5 woke up to 4.1 ms late during 64 KB reads (one piece at 16 MB/s), a task at priority 12 was not delayed. Advice: raise the IDE speed after a write check, stream large files in small pieces at the rate they are used, keep archives open. Numbers from a game port (music read whole at every theme change: 4.7 frames/s) are in the Evidence table.

The tests read the files named in AKB_READ_FILES (cold files on the drive under test). The waking task always sleeps, so the stall test cannot starve the machine. Built here with GCC 6.5 (libnix) and -Wall without warnings, and run on the V4; CI will build them with ApolloCrossDev.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NWALVGtmg35zN3v1pCUHCA

… V4 tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NWALVGtmg35zN3v1pCUHCA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant