News for hackers. Stuff that matters.
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.