{"id":5353,"date":"2017-11-08T14:33:31","date_gmt":"2017-11-08T12:33:31","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=5353"},"modified":"2022-02-10T13:31:50","modified_gmt":"2022-02-10T11:31:50","slug":"numa","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=5353","title":{"rendered":"NUMA \u0432 Solaris"},"content":{"rendered":"<p>\u0427\u0442\u043e \u0431\u044b \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f <strong>NUMA\u00a0<\/strong>\u0438\u0449\u0435\u043c \u043e\u043f\u0446\u0438\u044e \u0432 \u0431\u0438\u043e\u0441\u0435 &#8220;<strong>node interleaving<\/strong>&#8221; (\u0434\u043b\u044f <strong>Dell<\/strong>-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <strong>Memory<\/strong>) \u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0451 \u0432 <strong>Disabled<\/strong> (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 <strong>Dell<\/strong> \u043e\u043d\u0430 \u043a\u0430\u043a \u0440\u0430\u0437 <strong>disabled<\/strong>). \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0436\u0435 <strong>Enable<\/strong> \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 <strong>Numa<\/strong>. \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u043f\u0446\u0438\u044e <strong>Alternate RTID<\/strong> (<strong>Requestor Transaction ID<\/strong>) (\u0434\u043b\u044f <strong>Dell<\/strong>-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <strong>Processor<\/strong>) \u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0451 \u0432 <strong>Disabled<\/strong> (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 <strong>Dell<\/strong> \u043e\u043d\u0430 \u043a\u0430\u043a \u0440\u0430\u0437 <strong>disabled<\/strong>)<\/p>\n<p><!--more--><\/p>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 <strong>memory<\/strong> \u043f\u0440\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u043e\u0439 <strong>NUMA<\/strong> (\u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 2-\u0441\u043e\u043a\u0435\u0442\u043d\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430):<\/p>\n<pre>(global-zone)# lgroup 0 (root):\n        Children: none\n        CPUs: 0-39\n        Memory: installed 256G, allocated 248G, free 8.3G\n        \"default\" memory: installed 256G, allocated 248G, free 8.3G\n        Lgroup resources: 0 (CPU); 0 (memory)\n        Load: 0.197\n        Latency: 0\n<\/pre>\n<p>\u0430 \u0432\u043e\u0442 \u0442\u0430\u043a &#8211; \u043f\u0440\u0438 \u0432\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u043e\u0439:<\/p>\n<pre>(global-zone)# lgrpinfo\nlgroup 0 (root):\n        Children: 1 2\n        CPUs: 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38\n        Memory: installed 256G, allocated 16G, free 240G\n        Lgroup resources: 1 2 (CPU); 1 2 (memory)\n        Latency: 21\nlgroup 1 (leaf):\n        Children: none, Parent: 0\n        CPUs: 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38\n        Memory: installed 128G, allocated 4.7G, free 123G\n        Lgroup resources: 1 (CPU); 1 (memory)\n        Load: 3.08\n        Latency: 10\nlgroup 2 (leaf):\n        Children: none, Parent: 0\n        Memory: installed 128G, allocated 11G, free 117G\n        Lgroup resources: 2 (CPU); 2 (memory)\n        Load: 0.0146\n<\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b\u00a0\u0447\u0435\u0440\u0435\u0437 <strong>plgrp<\/strong>:<\/p>\n<pre>(global-zone)# plgrp 3727|head -2\n     PID\/LWPID    HOME\n    3727\/1        2     \n(global-zone)# plgrp $\n     PID\/LWPID    HOME\n    5151\/1        1     \n<\/pre>\n<p>\u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441 <strong>pid&#8217;\u043e\u043c<\/strong> 3727 \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u043d\u0430 <strong>lgroup2<\/strong>, \u0430 \u0441\u0430\u043c\u0430 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0430 &#8211; <strong>lgroup1<\/strong>. \u0415\u0441\u043b\u0438 \u0437\u0430\u0439\u0442\u0438 \u0432 \u0437\u043e\u043d\u0443, \u0442\u043e \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0437\u0435\u0440\u043a\u0430\u043b\u044c\u043d\u0430\u044f:<\/p>\n<pre>(zone)# lgrpinfo \nlgroup 0 (root):\n        Children: 1 2\n        CPUs: 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39\n        Memory: installed 256G, allocated 132G, free 124G\n        Lgroup resources: 1 2 (CPU); 1 2 (memory)\n        Latency: 21\nlgroup 1 (leaf):\n        Children: none, Parent: 0\n        Memory: installed 128G, allocated 63G, free 65G\n        Lgroup resources: 1 (CPU); 1 (memory)\n        Load: 0.0056\nlgroup 2 (leaf):\n        Children: none, Parent: 0\n        CPUs: 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39\n        Memory: installed 128G, allocated 69G, free 59G\n        Lgroup resources: 2 (CPU); 2 (memory)\n        Load: 0.0575\n        Latency: 10\n<\/pre>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c <strong>plgrp<\/strong>:<\/p>\n<pre>(zone)# plgrp 3727 | head -2\n     PID\/LWPID    HOME\n    3727\/1        2     \n(zone)# plgrp $\n     PID\/LWPID    HOME\n    5318\/1        2     \n<\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u0432\u0441\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u044b \u0432 <strong>lgroup2<\/strong>, \u0442\u0430\u043a \u043a\u0430\u043a \u0434\u043b\u044f \u0437\u043e\u043d\u044b \u043c\u044b \u0432\u044b\u0434\u0435\u043b\u0438\u043b\u0438 \u0432\u0435\u0441\u044c <strong>socket<\/strong> (\u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u043e\u043a\u0435\u0442\u043e\u0432 \u0441 0-\u043b\u044f, \u0432\u044b\u0434\u0435\u043b\u0435\u043d \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043e\u043a\u0435\u0442):<\/p>\n<pre>(global-zone)# zonecfg -z zone info dedicated-cpu\ndedicated-cpu:\n        ncpus not specified\n        cpus not specified\n        cores not specified\n        sockets: 1\n<\/pre>\n<p>\u041a\u0430\u043a \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c <strong>NUMA<\/strong> \u0434\u043b\u044f \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439:<\/p>\n<p><span style=\"color: #ff6600;\"><strong><em>&#8211; mysql<\/em><\/strong><\/span><\/p>\n<p><code>flush_caches = 1<br \/>\ninnodb_numa_interleave = 1<\/code><\/p>\n<p><span style=\"color: #ff6600;\"><em><strong>&#8211; java<\/strong><\/em><\/span><\/p>\n<p><code>-XX:+UseNUMA<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0427\u0442\u043e \u0431\u044b \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f NUMA\u00a0\u0438\u0449\u0435\u043c \u043e\u043f\u0446\u0438\u044e \u0432 \u0431\u0438\u043e\u0441\u0435 &#8220;node interleaving&#8221; (\u0434\u043b\u044f Dell-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 Memory) \u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0451 \u0432 Disabled (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 Dell \u043e\u043d\u0430 \u043a\u0430\u043a \u0440\u0430\u0437 disabled). \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0436\u0435 Enable \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Numa. \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u043f\u0446\u0438\u044e Alternate RTID (Requestor Transaction ID) (\u0434\u043b\u044f Dell-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 Processor) \u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0451 \u0432 Disabled [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-5353","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5353"}],"version-history":[{"count":7,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5353\/revisions"}],"predecessor-version":[{"id":5834,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5353\/revisions\/5834"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}