Click here to Skip to main content
15,900,495 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: 8GB no longer enough Pin
abmv26-Aug-19 1:56
professionalabmv26-Aug-19 1:56 
GeneralRe: 8GB no longer enough Pin
raddevus26-Aug-19 2:10
mvaraddevus26-Aug-19 2:10 
GeneralRe: 8GB no longer enough PinPopular
Rage25-Aug-19 20:34
professionalRage25-Aug-19 20:34 
GeneralRe: 8GB no longer enough Pin
enhzflep26-Aug-19 16:47
enhzflep26-Aug-19 16:47 
GeneralRe: 8GB no longer enough Pin
Member 916705725-Aug-19 22:14
Member 916705725-Aug-19 22:14 
GeneralRe: 8GB no longer enough Pin
phil.o25-Aug-19 22:23
professionalphil.o25-Aug-19 22:23 
GeneralRe: 8GB no longer enough Pin
Dan Neely26-Aug-19 3:44
Dan Neely26-Aug-19 3:44 
GeneralRe: 8GB no longer enough Pin
kalberts26-Aug-19 0:29
kalberts26-Aug-19 0:29 
In the old days of virtual memory, when we had to pay for RAM chips (that is, more than small change) ...
There was the concept of "working set": The resources actually in use. If they are not in use, why should they occupy space in RAM?

Fortunately, both Windows and the x32/x64 architecture have roots back to those days. They can shuffle virtual memory pages in and out as they are needed. You can pretend to have a 16 GB RAM machine, because you only make actual use of half of the data/code. All the memory segments have been assigned addresses in memory space, but they are not actually brought into RAM until you actually reference them.

As long as your working set fits into RAM, the performance of your system is very little affected. I can assure you: You are not referencing more than two million different memory pages (each 4 kibyte) all the time! Lots of the code perform functions you are not using (and if you start using them, it takes a handful milliseconds to brin them in), or initialization code that can be thrown out once run, or tables that you are not referencing (say, user messages in some strange language you do not master anyway), and so on.

For a number of years, quite a few people have believed that virtual memory slows down execution even when you have so much RAM that you can load all the segments, not just your working set. They believe that they speed up the machine by turning off paging. Placebo works. They know that it gives better performance. If it can at all be measured, I guess it would be by fractions of a percent - not the least because most of it is handled in hardware that is active even if you turn off the software to handle a possible page fault. Disabling a page fault handler that is never called anyway gives no speed-up.

The main effect of turning off paging is that your physical RAM size sets an absolute limit to the total size of programs you can have in memory. When you hit the ceiling, it is hard.

If you really are banging your head into the ceiling at 8 GByte, it sounds as if paging is turned off on your machine. Turn it on, and you can go up to 16 GByte virtual memory space. You can go even higher, but the default setting in Windows is to set virtual memory to twice the physical one. It will cost you 8 Gbyte of disk space on your primary disk, but that you can afford! (If it is a flash disk, the impact of a page fault will also be far less than with a magnetic disk.)

In the old days, when RAM was super-expensive, you could encounter machines with a very high virtual-to-physical memory rate: One of the early OSes I worked with could in principle run with only two physical memory pages available for paging, after the resident parts of the OS had taken what they required. I never saw any machine that starved on RAM, but we did run one with 18 physical RAM pages, handling 20 interactive users. You have two million, not 18, physical pages to yourself. 8 million physical RAM pages should be a large enough working set for everybody Smile | :)

OK: I'll take exception for things like weather forecasting, FEM modelling and some more extreme simulation models. If you are working with such things, you know that data volumes can be extreme. You are indicating nothing of this sort.
GeneralRe: 8GB no longer enough Pin
raddevus26-Aug-19 1:53
mvaraddevus26-Aug-19 1:53 
GeneralRe: 8GB no longer enough Pin
Dan Neely26-Aug-19 3:51
Dan Neely26-Aug-19 3:51 
GeneralRe: 8GB no longer enough Pin
kalberts26-Aug-19 7:00
kalberts26-Aug-19 7:00 
GeneralRe: 8GB no longer enough Pin
objectvill27-Aug-19 1:54
objectvill27-Aug-19 1:54 
GeneralRe: 8GB no longer enough Pin
kalberts27-Aug-19 5:07
kalberts27-Aug-19 5:07 
GeneralRe: 8GB no longer enough Pin
kalberts28-Aug-19 10:04
kalberts28-Aug-19 10:04 
GeneralRe: 8GB no longer enough Pin
#realJSOP26-Aug-19 0:42
professional#realJSOP26-Aug-19 0:42 
GeneralRe: 8GB no longer enough Pin
raddevus26-Aug-19 1:54
mvaraddevus26-Aug-19 1:54 
GeneralRe: 8GB no longer enough Pin
#realJSOP26-Aug-19 2:30
professional#realJSOP26-Aug-19 2:30 
GeneralRe: 8GB no longer enough Pin
Dan Neely26-Aug-19 3:47
Dan Neely26-Aug-19 3:47 
GeneralRe: 8GB no longer enough Pin
AnotherKen26-Aug-19 6:01
professionalAnotherKen26-Aug-19 6:01 
GeneralRe: 8GB no longer enough Pin
Reelix26-Aug-19 7:38
Reelix26-Aug-19 7:38 
GeneralRe: 8GB no longer enough Pin
raddevus26-Aug-19 7:47
mvaraddevus26-Aug-19 7:47 
GeneralRe: 8GB no longer enough Pin
Member 289602026-Aug-19 10:12
Member 289602026-Aug-19 10:12 
GeneralRe: 8GB no longer enough Pin
raddevus26-Aug-19 10:35
mvaraddevus26-Aug-19 10:35 
GeneralRe: 8GB no longer enough Pin
Daniel Wilianto26-Aug-19 16:22
Daniel Wilianto26-Aug-19 16:22 
GeneralRe: 8GB no longer enough Pin
Member 1391078329-Aug-19 9:21
Member 1391078329-Aug-19 9:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   488 votes