Hacker News new | ask | show | jobs
by getsat 5332 days ago
> I'd prefer that applications used my RAM since unused RAM is just wasted electricity.

I... but... er...

This is probably the most ridiculous thing I've ever seen on this site.

You could write a two line C program that allocates all the memory on your system and then sits in a loop doing nothing, but then you'd be wasting even more electricity because your hdd would be reading/writing to your swap space. :|

> I'd rather have it used than have to fetch something from disk or the network.

Modern operating systems do use your free memory for cache. Linux will regularly chill at 90%+ memory usage (the majority being cache that can be freed instantly when other apps need it) and Windows has SuperFetch which does basically the same thing as I understand.

1 comments

Yes, you could write such a program.

Yes modern OSes do use non-Application RAM for caching, mostly files and other small buffers. While Firefox is probably doing a lot of caching for web content, something that modern OSes don't yet do. Hence I have no qualms about it using over a gig of RAM.

I guess my comment was read more angrily than I meant it to sound. What I mean is let applications use as much RAM as they need and be done with it.