NUMA- linux tuning — this is humbling level of complexity

This is the processor i have on my laptop. I followed up with this hypothesis and ran numactl –hardware which gives me this output:

available: 1 nodes (0)
node 0 cpus: 0 1 2 3 4 5 6 7
node 0 size: 3971 MB
node 0 free: 634 MB
node distances:
node 0
0: 10

A view at cat /proc/cpuinfo gives me this

processor : 6
vendor_id : GenuineIntel
cpu family : 6
model : 58
model name : Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz
stepping : 9
microcode : 0x

OK, so looking up the processor points me to this http://ark.intel.com/products/71670/Intel-Core-i7-3632QM-Processor-6M-Cache-up-to-3_20-GHz-BGA. Unfortunately that link mentions nothing about the actual architecture involved. Am left to guess that it’s because i have only 4G RAM (all allocated to one node) or my processor just does not belong in the category i thought it does.
Damn it. it’s time figure out this hypothesis. Time to look for other ways to test this.

This link suggests that mine does come under Ivy-bridge, but something called Ivy bridge(Mobile). Ivy bridge is the successor architecture after SandyBridge. That means i was right about the architecture (if only in terms of direction) and the next test is to add RAM and then see if numactl gives a better output. I have a feeling there might be more to this problem than meets the eye.(Like Linux installation time default ubuntu kernel does not have numa optimization or something like that .., but we’ll see. only one way to find out.)

This is a problem i have faced before, though on a different vps hosted server(64G RAM)

These are some other interesting links

http://frosty-postgres.blogspot.com/2012/08/postgresql-numa-and-zone-reclaim-mode.html

http://engineering.linkedin.com/performance/optimizing-linux-memory-management-low-latency-high-throughput-databases

http://lwn.net/Articles/254445/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s