Click here to Skip to main content
16,004,535 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: Building a new desk and looking for a new mouse pad... Pin
MarkTJohnson16hrs 28mins ago
professionalMarkTJohnson16hrs 28mins ago 
GeneralRe: Building a new desk and looking for a new mouse pad... Pin
Jeremy Falcon16hrs 17mins ago
professionalJeremy Falcon16hrs 17mins ago 
GeneralRe: Building a new desk and looking for a new mouse pad... Pin
Mike Hankey16hrs ago
mveMike Hankey16hrs ago 
GeneralRe: Building a new desk and looking for a new mouse pad... Pin
Jeremy Falcon15hrs 49mins ago
professionalJeremy Falcon15hrs 49mins ago 
GeneralRe: Building a new desk and looking for a new mouse pad... Pin
Nelek14hrs 41mins ago
protectorNelek14hrs 41mins ago 
GeneralRe: Building a new desk and looking for a new mouse pad... Pin
Jeremy Falcon13hrs 46mins ago
professionalJeremy Falcon13hrs 46mins ago 
GeneralRe: Building a new desk and looking for a new mouse pad... Pin
Choroid14hrs 36mins ago
Choroid14hrs 36mins ago 
GeneralA Discussion of Address Space & Memory Pin
raddevus16hrs 45mins ago
mvaraddevus16hrs 45mins ago 
I'll make some statements I believe to be true and then you can respond to each statement with true/false & reasoning.

On Windows x64 (and maybe Linux too) a (normal) process

1. gets an address space which is 4GB in size when the process starts
2. OS modules take up certain portion of that address space (1GB?)
3. The rest (3GB) is used for the stack & heap of the running process
4. As the app instantiates new objects (allocates memory for objects) on the heap, the amount of memory the process uses grows -- but it can never grow beyond the 3GB (4GB total) anyways, right?
5 ## This is a biggie ## A process can never eat up more memory than its address space allows 3GB (4GB total) so a process can never really impact another process anyways because each one is limited to 4GB anyways, right?
6. Extreme Example - If there is 128GB RAM in the hardware and we say OS (associated services) take up 28GB (to make things easy) and there are two services running (2 X 4GB = 8GB) then this machine could never run out of memory, since it would have 92GB just sitting idle
7 Driving A Point Home - So when a developer notices that the app he wrote running on the Server keeps crashing with "out of memory" error, then looks around and says, "Hey, wait a second, I think your service (which has been running on the Server long before aforementioned dev's app) is eating up memory and making mine die", then that developer doesn't understand process address space, right? Right? Right! Roll eyes | :rolleyes:

This is also why
A. you can solve memory problems created by lots of processes running, by installing more memory (if hardware is further expandable)
B. You cannot solve memory problems of a service or app that crashes due to low memory (since it is simply eating it's own memory) by installing more memory (even if hardware is furhter expandable).

Agree? Agree some? Disagree? Disagree entirely?

modified 15hrs ago.

GeneralRe: A Discussion of Address Space & Memory Pin
obermd16hrs 37mins ago
obermd16hrs 37mins ago 
GeneralRe: A Discussion of Address Space & Memory Pin
raddevus16hrs 25mins ago
mvaraddevus16hrs 25mins ago 
GeneralRe: A Discussion of Address Space & Memory Pin
MarkTJohnson16hrs 31mins ago
professionalMarkTJohnson16hrs 31mins ago 
GeneralRe: A Discussion of Address Space & Memory Pin
raddevus16hrs 21mins ago
mvaraddevus16hrs 21mins ago 
GeneralRe: A Discussion of Address Space & Memory Pin
Jeremy Falcon15hrs 53mins ago
professionalJeremy Falcon15hrs 53mins ago 
GeneralRe: A Discussion of Address Space & Memory Pin
raddevus15hrs 43mins ago
mvaraddevus15hrs 43mins ago 
GeneralRe: A Discussion of Address Space & Memory Pin
Jeremy Falcon15hrs 26mins ago
professionalJeremy Falcon15hrs 26mins ago 
GeneralRe: A Discussion of Address Space & Memory Pin
raddevus15hrs 19mins ago
mvaraddevus15hrs 19mins ago 
GeneralRe: A Discussion of Address Space & Memory Pin
Jeremy Falcon14hrs 54mins ago
professionalJeremy Falcon14hrs 54mins ago 
GeneralRe: A Discussion of Address Space & Memory Pin
honey the codewitch11hrs 4mins ago
mvahoney the codewitch11hrs 4mins ago 
GeneralRe: A Discussion of Address Space & Memory Pin
raddevus10hrs 30mins ago
mvaraddevus10hrs 30mins ago 
GeneralRe: A Discussion of Address Space & Memory Pin
honey the codewitch10hrs 29mins ago
mvahoney the codewitch10hrs 29mins ago 
GeneralRe: A Discussion of Address Space & Memory Pin
charlieg3hrs 21mins ago
charlieg3hrs 21mins ago 
GeneralRe: A Discussion of Address Space & Memory Pin
honey the codewitch3hrs 17mins ago
mvahoney the codewitch3hrs 17mins ago 
GeneralRe: A Discussion of Address Space & Memory Pin
Peter_in_27808hrs 3mins ago
professionalPeter_in_27808hrs 3mins ago 
GeneralWordle 1,189 Pin
Shane010319-Sep-24 18:10
Shane010319-Sep-24 18:10 
GeneralRe: Wordle 1,189 Pin
GKP199219-Sep-24 18:32
professionalGKP199219-Sep-24 18:32 

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.