numa and scaleup

8
July 2012 NUMA and Scale Up Zhongke Chen

Upload: zhongke-chen

Post on 15-Jul-2015

224 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: NUMA and scaleup

July 2012

NUMA and Scale Up

Zhongke Chen

Page 2: NUMA and scaleup

Confidential and Proprietary

SMP VS NUMA (NON-UNIFORM MEMORY ARCHITECTURE)

2Technology Education

SMPNUMA (!=MPP)

Page 3: NUMA and scaleup

Confidential and Proprietary

HOW LINUX HANDLES NUMA

3

Default Policy: One process is fixed to one node.

Linux detects NUMA and deals it differently from SMP

Page 4: NUMA and scaleup

Confidential and Proprietary

SCALE UP PROBLEM

What happens if one process uses large memory? (larger than the memory in one node)

4

Page 5: NUMA and scaleup

Confidential and Proprietary

WHAT HAPPENS

5

Only memory on one node is used.

The system starts to swap heavily.

Page 6: NUMA and scaleup

Confidential and Proprietary

WORKAROUNDS

numactl --interleave=all

(inefficient to access remote memory)

6

Page 7: NUMA and scaleup

Confidential and Proprietary

TRUE SOLUTIONS

1.Multiple Smaller Processes

2.Control Policy via libnuma API

3.Another workaround: Virtualization

7