This blog moved to medium->https://medium.com/@cocoamaemae

Sunday, May 6, 2018

Numa Architecture and innodb_buffer_pool_size

Event
e.g.
The machine spec
the number of processors: 2
RAM: 32GB

MySQL configuration
innodb_buffer_pool_size = 24GB

If these configurations, Numa architecture divide RAM each16GB. But innodb_buffer_pool_size is over 16GB, so there is possibility that swap occurs.
This event is called as "Swap Insanity".

How to solve

  • Deactivate Numa
  • Decrease innodb_buffer_pool_size

etc...

Reference
http://d.hatena.ne.jp/fat47/20121121/1353495937



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.



Sunday, April 29, 2018

ReactJS Features

Brief
Consideration regarding ReactJS merit and demerit

ReactJS Features

  • JSX is essential


ReactJS Merit

  • Rendering speed is faster than ordinary template engine.
  • Writing logic per a html part is reused.


ReactJS Demerit

  • Not good at Ajax
  • It's not suitable for the pages which do not have many dynamic contents.
  • Rendering speed is slower than JQuery optimized.

Monday, April 2, 2018

Multi process and memory segment

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

Monday, March 12, 2018

Linux Load Balancer Comparison

Brief
Investigation and comparison of Linux Load Balancer

LVS(Linux Virtual Server)
Layer 4 load balancer (make it to possible to load balance by IP addresses)

LVS is a software which enable to make a Linux server a load balancer.

Haproxy
Layer 7 load balancer (make it to possible to load balance by URL or HTTP header)

Nginx
Layer 7 load balancer (make it to possible to load balance by URL or HTTP header)

Sunday, February 11, 2018

Key points of objected oriented design

Brief
Recap key points when using object oriented design and writing codes.


Complete constructor pattern

  • Configure essential information when creating constructor 
  • Not specify arguments of methods as possible as it can. 
  • If member variables are considerably increased, extract new classes.

First class correction
  • Recap related methods or logics and fields to one class 

Tuesday, February 6, 2018

Regarding normalization

What's normalization?
Divide RDB tables to satisfy functional dependencies.

Why normalization is necessary?
Merits

  • Possible to avoid the inconsistency when updating tables
  • To understand meanings of respective tables easier

Demerits

  • Increase JOIN and reduce SQL performance since the number of tables increase

Which normalization should be done?
Basically, it should always be done untill third normalization.




Front End Development Tools

TaskRunner Tool executing multiple tasks by only one execution. Tasks are like CSS preprocessor, Transpire, Module Bundler, etc... e.g. ...