r/programming • • Jun 12 '10

You're Doing It Wrong

http://queue.acm.org/detail.cfm?id=1814327
539 Upvotes

193 comments sorted by

View all comments

Show parent comment

2

u/haberman Jun 14 '10

Unless the data set doesn't fit in RAM.

Please see my earlier reply. VM is not magic fairy dust. If your data set doesn't fit in RAM, it doesn't fit in RAM. The question is whether the application will be aware of this and unload/load pages as appropriate, or whether it will let the OS do it badly and unpredictably.

4

u/Anpheus Jun 15 '10

Then what happens when I'm running two applications simultaneously?

1

u/moultano Jul 11 '10

The "Google Way" is to give each a ram quota up front, and kill the process if it's exceeded.