Re:Linux ate my RAM
by free652 on Monday November 11, 2013 @07:46AM
(#6711304)
Windows loves to cache and "prefetch" apps, I still need to figure out how to disable prefetching since I have a very fast SSD.
[ Parent
| on HN ]
Re:Linux ate my RAM
by stephencanon on Monday November 11, 2013 @08:18AM
(#6711409)
Memory is still an order of magnitude faster than your “very fast SSD”.
And memory is still an order of magnitude more expensive than SSD, per GB.
I just bought 4 GB of PC-6400 for a laptop at £40. A fast 128GB SSD is £100.
Summary: use RAM judiciously
Re:Linux ate my RAM
by stephencanon on Monday November 11, 2013 @09:40AM
(#6711780)
All the more reason for your OS to use memory aggressively. Surely you don't want your expensive investment sitting around just doing nothing?
Unused memory is wasted memory.
The prefetched data is managed by the OS. If a program needs the RAM, the prefetched data is immediately discarded. Prefetching never creates RAM pressure.
This. It blows my mind how many people who write software don't understand how OS caching and virtual memory work. They are great filter interview questions ;)
Re:Linux ate my RAM
by alcuadrado on Monday November 11, 2013 @08:35AM
(#6711473)
just one?
Re:Linux ate my RAM
by stephencanon on Monday November 11, 2013 @08:53AM
(#6711543)
At least one. Potentially more. The actual multiple depends strongly on the specific SSD and memory configurations in question, and on the benchmark of interest.
Instructions for Win7. http://www.tomshardware.com/reviews/ssd-performance-tweak,29... Why not leave it on, though? RAM is still faster than SSD.
Why? All it does is make it go faster.
And drain your battery for no reason.
Re:Linux ate my RAM
by hansbogert on Monday November 11, 2013 @09:02AM
(#6711584)
Do you have any proof of that? "Free" memory uses as much energy as "used" memory, there is no distinction in SD|DDR-RAM. And if the OS is smart, it only has to keep a simple index of memory pages still relevant. I'd argue that this has a measurable battery-hit.
You're only accounting for the RAM power. Accessing the SSD costs power, too.
Re:Linux ate my RAM
by tedunangst on Monday November 11, 2013 @09:57AM
(#6711872)
Then I think I'd rather Windows prefetched my programs while I'm plugged in so it doesn't have to do so when I'm on battery.
> You're only accounting for the RAM power. Accessing the SSD costs power, too.
A typical modern SSD reads at 500 MiB/s, consumes 3 watts when reading, and 0.3 watts when idle.
A stick of DDR3 RAM consumes about 3 watts, just sitting idle.
The power consumption from prefetching is minor compared to that of the RAM.
Reading from the SSD to laod it into RAM does drain battery. No idea if it is enough to matter though.