News for hackers. Stuff that matters.
Re:DRAM Prices in ‘Freefall’ by smacktoward on Thursday March 07, 2019 @02:26PM (#19331284)
If you have the RAM, wouldn't you rather the software use it? Is there some benefit to having memory sitting around empty and idle?

As long as the software doesn't require all that memory, but can work OK with less and then scale up to use more if you've got it, I guess I don't see what the problem is.

Re:DRAM Prices in ‘Freefall’ by marcosdumay on Thursday March 07, 2019 @03:16PM (#19331867)
How often do your computer exclusively runs Chrome? How easily can the OS take the memory back from Chrome to run something else (that one is easy, it can not, except on the last case scenario where it kills process).
Re:DRAM Prices in ‘Freefall’ by 781 on Thursday March 07, 2019 @04:15PM (#19332541)
> How easily can the OS take the memory back from Chrome to run something else (that one is easy, it can not, except on the last case scenario where it kills process).

It actually can. It's called swapping. An amazing technology from the 90s.

Re:DRAM Prices in ‘Freefall’ by Jach on Thursday March 07, 2019 @04:31PM (#19332685)
That's not what GP meant, the analogous situation is loading GBs of data into a database, resulting in a GBs sized file on disk. If you truncate the data, it's gone, but the database won't actually shrink the file on disk unless you vacuum too. Chrome might not be using all the memory it has claimed, but it's not necessarily releasing all that it can back to the system either.
Re:DRAM Prices in ‘Freefall’ by 781 on Thursday March 07, 2019 @04:55PM (#19332917)
> but it's not necessarily releasing all that it can back to the system either.

That's exactly the point of swapping. Memory which was not used in a (relatively) long time is taken away forcefully from the process if there is memory pressure on the system.

So it doesn't matter if Chrome releases it or not, it will be taken away if it just sits there.

Re:DRAM Prices in ‘Freefall’ by pritambaral on Friday March 08, 2019 @06:09AM (#19336589)
> is taken away forcefully

To disk. Waiting for the memory a badly behaved app overzealously ate up without using to finish flushing to disk before being able to use it is worse than simply having the memory readily available. This is why I always disable swap, opting to let bad processes die, sometimes even pulling the trigger myself.

Re:DRAM Prices in ‘Freefall’ by bradknowles on Thursday March 07, 2019 @04:40PM (#19332756)
If you ever hit actual swapping, then your system performance is already way past the point of no return.

In modern systems, paging is okay. But not swapping.

Re:DRAM Prices in ‘Freefall’ by 781 on Thursday March 07, 2019 @04:51PM (#19332870)
In even more modern systems, with NVMe NAND storage, even swapping is ok.
Re:DRAM Prices in ‘Freefall’ by jsymolon on Friday March 08, 2019 @11:20AM (#19338928)
> from the 90s.

From the 60s. Atlas computer had virtual memory. I originally thought it was the System360.

https://www.computerhistory.org/timeline/1962/

Re:DRAM Prices in ‘Freefall’ by rhinoceraptor on Thursday March 07, 2019 @04:36PM (#19332724)
That's what the virtual memory system does, provided you're not running with swap disabled. A page fault isn't hard for the kernel to handle, it's just a severe performance hit.
Re:DRAM Prices in ‘Freefall’ by ip26 on Thursday March 07, 2019 @02:30PM (#19331327)
Does it gracefully & rapidly clean house if another app needs some? Does the extra usage benefit you in any way at all, to make up for the disk cache it gets used as otherwise?
Re:DRAM Prices in ‘Freefall’ by est31 on Thursday March 07, 2019 @03:02PM (#19331703)
> Is there some benefit to having memory sitting around empty and idle?

Yes, modern operating systems use free RAM as cache for the HDD. If you have an I/O intensive process, having a large amount of RAM is really helpful.

Re:DRAM Prices in ‘Freefall’ by the8472 on Thursday March 07, 2019 @04:51PM (#19332867)
If you have any kind of workload with IO patterns that are not embarassingly parallel you want your files to be in the page caches, i.e. RAM, to minimize the access latencies and thus the walltime of your workload.

For that to work applications shouldn't be gobbling up all the ram, instead they should leave it to the OS to cache data.

Sure, NVMe drives help, but loading things from RAM is snappier still.

Also, those huge memory footprints themselves can also cause issues. E.g. they can increase GC pauses in GCed languages or decrease cache hit rates when allocations are scattered all over the place.

Re:DRAM Prices in ‘Freefall’ by imtringued on Friday March 08, 2019 @06:56AM (#19336793)
I played minecraft last year again and it did exactly what you said. I was constantly running out of my paltry 8GB of RAM on a linux system that wasn't running anything except minecraft. If I got unlucky it went up from 98.5% RAM utilization to 100% and then the whole system locked up. It probably was the worst gaming experience in my whole life.
Re:DRAM Prices in ‘Freefall’ by 72deluxe on Thursday March 07, 2019 @03:46PM (#19332189)
So should I write software that just leaks and not worry about it?
Re:DRAM Prices in ‘Freefall’ by ionised on Friday March 08, 2019 @06:12AM (#19336596)
That's the Electron way isn't it?

Cut corners and offload the trade-offs onto your end users.