logoalt Hacker News

zozbot234today at 5:26 PM1 replyview on HN

> The kernel's page fault handler is reactive — it doesn't know you're about to read layer 47's FFN weights, so it can't prefetch.

man 2 madvise


Replies

astrangetoday at 9:40 PM

That works for readahead but it's not good for random access. readv, aio, dispatch_io are better there.

show 1 reply