Brief
Explain memory condition in multi process
There are a parent process and several child processes in multi process.
All the process share parent process text segment and refer same memory domain.
On the other hand, data segment is copied by each child processes.
Global variables are not shared in each data segments.
Basic memory segment explanation is below.
https://cocoamaemae-tec-diary.blogspot.jp/search?q=memory
Reference
http://moro-archive.hatenablog.com/entry/2014/09/11/013520
https://teratail.com/questions/15389
http://ts0818.hatenablog.com/entry/2015/09/23/191335
This blog moved to medium->https://medium.com/@cocoamaemae
Regarding TIPS about IT technologies or OSS which I created.
Showing posts sorted by relevance for query memory. Sort by date Show all posts
Showing posts sorted by relevance for query memory. Sort by date Show all posts
Monday, April 2, 2018
Friday, September 8, 2017
Memory segment
Brief
Summarize memory segment
Basic memory segment
Nevertheless any languages, basic memory segment is like the below.
The roles of respective segments are like the below.
Stack segment
Contains stack. Stack is basically used for function calling. Nested functions are put in stack.
Heap segment
Contains heap. Heap is used for dynamic data which is not put in stack.
BSS segment
Contains uninitialized variables including static.
e.g.
int a;
static int a;
Data segment
Contains variables which have a pre-defined variables.
e.g.
int a = 8;
static int a = 8;
char String[] = "hoge";
Text segment
Contains mechanical languages. Data in this segment is always read only.
Summarize memory segment
Basic memory segment
Nevertheless any languages, basic memory segment is like the below.
The roles of respective segments are like the below.
Stack segment
Contains stack. Stack is basically used for function calling. Nested functions are put in stack.
Heap segment
Contains heap. Heap is used for dynamic data which is not put in stack.
BSS segment
Contains uninitialized variables including static.
e.g.
int a;
static int a;
Data segment
Contains variables which have a pre-defined variables.
e.g.
int a = 8;
static int a = 8;
char String[] = "hoge";
Text segment
Contains mechanical languages. Data in this segment is always read only.
Sunday, May 6, 2018
Numa Architecture
What's Numa Architecture
Numa is the abbreviation of "non-uniform memory access".
The objective of Numa is parallelization of *bus.
Numa is an alternative approach that links several small *nodes.
*bus to connect between cpu and RAM.
*node means a pair of processor and RAM.
Features
If Numa architecture is adopted, RAM is divided by the number of bus and accessed.
e.g.
If there are 2 buses on the machine which has 32GB RAM, RAM is divided per 16GB and accessed.
Numa is the abbreviation of "non-uniform memory access".
The objective of Numa is parallelization of *bus.
Numa is an alternative approach that links several small *nodes.
*bus to connect between cpu and RAM.
*node means a pair of processor and RAM.
Features
If Numa architecture is adopted, RAM is divided by the number of bus and accessed.
e.g.
If there are 2 buses on the machine which has 32GB RAM, RAM is divided per 16GB and accessed.
Subscribe to:
Posts (Atom)
Front End Development Tools
TaskRunner Tool executing multiple tasks by only one execution. Tasks are like CSS preprocessor, Transpire, Module Bundler, etc... e.g. ...
-
It is general to create multiple branches and manage them parallel when we do the development by using git. Multiple branches should be mer...
-
TaskRunner Tool executing multiple tasks by only one execution. Tasks are like CSS preprocessor, Transpire, Module Bundler, etc... e.g. ...
-
What dein? The tool to install vim plugin How to install dein OS: Linux(Debian, Ubuntu, REHL, CentOS or etc) # run the below c...


