Sometimes I use /dev/shm for temporary files, as big as 500MB, (I have 8 GB RAM - Ubuntu 11.04 x86-64) and when I load StarCraft II (with wine) I might get memory errors in the game (corrupted data or "Couldn't load xyz").

If instead I use proper temporary filesystem for my files (like and SSD disk mounted on /disk3) I don't experience any sort of issue.

Could this be due to the fact that /dev/shm gets continuously filled and emptied whilst SC2 (or other programs here) expect to have some available memory and hence malloc fails (and the process then reports errors where it before expected to have some available memory)?

I'm really puzzled by this.

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.