Posts

Showing posts with the label cache

Bit errors still not a myth

I had this post in draft for a long time now, however it is evergreen. Just consider the recent exploits  focused on RAM leakage. Although, do note that ECC by itself can't give 100% protection against row hammer, so it is only loosely related. An excellent empirical work has been published in 2009 regarding DRAM Errors in the Wild: A Large Scale Field Study . " About a third of machines and over 8% of DIMMs in our fleet saw at least one correctable error per year. " - analysis by  James Hamilton " Besides error rates much higher than expected - which is plenty bad - the study found that error rates were motherboard, not DIMM type or vendor, dependent. This means that some popular mobos have poor EMI hygiene. " - analysis by ZDnet Note that such an event plainly translates to faults on non-ECC machines. So despite the fact that human error is much more probable, it is not unlikely at all that you encounter bit errors in everyday life. Consider the foll...

trAInsported - the programming game

Image
If you ever felt that Transport Tycoon or Railroad Tycoon made you do too much micromanagement, this is just the kind game for you. In trAInsported, your mission is to write an AI that optimizes traffic better than your opponents. Although, it makes me sad to see such an influential project being hosted via vaporware methods. Setting up any kind of free shared hosting and embedding the small dynamic scoreboard and match parts via an iframe would be trivial. Caching daily stats would also be a good idea. A simple solution would be to use github.io to host the site directly from the repository, which would be both durable and scalable. For the record, if anything happens to the project, here are some relevant pointers: Official (dynamic DNS) site and scoreboard  supposedly running on a Raspberry Pi Source code, documentation, wiki at  github Forum at  indiedb Introduction at  moddb History at  yellloh Summary at  love2d Featured on  indiega...

Read a file by inode - the hard way

I found a nice hack to undelete an open file: Undeleting an open file by inode Though, I generally use cat , as that's much easier. It's also useful to view cached content of plugins which delete their files upon download.