News for hackers. Stuff that matters.
Re:Using mmap to make LLaMA load faster by loeg on Thursday April 06, 2023 @11:01AM (#35469252)
The fault will also raise a signal if there is an error reading the sector from the drive (what would be an EIO from read()). Lack of error handling in mmap isn't only a problem for removable media.
Re:Using mmap to make LLaMA load faster by dekhn on Thursday April 06, 2023 @06:53PM (#35475629)
yes, that sounds like a good idea to me. Like I said: if you use mmap, the expectation is that the drive will not bork and if it does, it should terminate the application.