The Linux mmap trap got me AGAIN! ARRRRRRGGGGGGGHHHHHHH... https://www.youtube.com/watch?v=KjmjqlOPd6A …
-
-
I can't think of an example of this hurting other than having to pay the price of commiting on write instead of mmap call. Hint? (were you timing things?)
-
There are at least two ways it can hurt you - one is timing reads, and one is your app thinking an allocation succeeded when actually it failed, and then it will simply fault on the write. That last one is particularly bad for programs that are trying to be careful.
End of conversation
New conversation -
-
-
Have you tried 'MAP_POPULATE' flag? Does that work? How do you fix the problem?
-
I didn't try that myself, I just wrote to each page right away to force the commit. I am not a Linux expert so I have no idea if MAP_POPULATE would be effectively the same.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.