{"id":1069,"date":"2011-08-02T09:57:06","date_gmt":"2011-08-02T07:57:06","guid":{"rendered":"http:\/\/oldblogs.uct.ac.za\/blog\/big-bytes\/2011\/08\/02\/matlab-on-diet"},"modified":"2015-08-14T13:23:14","modified_gmt":"2015-08-14T11:23:14","slug":"matlab-on-diet","status":"publish","type":"post","link":"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/","title":{"rendered":"Matlab on diet"},"content":{"rendered":"Over the past week we became aware of an issue with Matlab and its desire to consume as many CPUs as possible.\u00a0 This despite the fact that we were no longer running the parallel library.\u00a0 <a href=\"http:\/\/www.mathworks.co.kr\/matlabcentral\/newsreader\/view_thread\/243906\">This thread<\/a> outlines the problem we were experiencing and <a href=\"http:\/\/www.mathworks.com\/help\/techdoc\/ref\/maxnumcompthreads.html\">this thread<\/a> gives the solution, namely calling Matlab with the -singleCompThread argument.\u00a0 In the process list we still noticed 2 threads but one was set to 'Sleep' while only one consumed actual CPU time.\u00a0 The designated CPU seemed to be static, in other words the thread did not jump from one CPU to another and the consumed resource via qstat and SNMP was consistent.\u00a0 Obviously from a user's perspective it is desirable to consume as many CPUs as possible, however a shared environment where the assignemnt of resources is removed from the scheduler will invariably lead to resource contention and overall performance degredation.","protected":false},"excerpt":{"rendered":"<p>Over the past week we became aware of an issue with Matlab and its desire to consume as many CPUs as possible.&nbsp; This despite the fact that we were no longer running the parallel library.&nbsp; <a href=\"http:\/\/www.mathworks.co.kr\/matlabcentral\/newsreader\/view_thread\/243906\">This thread<\/a> outlines the problem we were experiencing and <a href=\"http:\/\/www.mathworks.com\/help\/techdoc\/ref\/maxnumcompthreads.html\">this thread<\/a> gives the solution, namely calling Matlab with the -singleCompThread argument.&nbsp; In the process list we still noticed 2 threads but one was set to &#8216;Sleep&#8217; while only one consumed actual CPU time.&nbsp; The designated CPU seemed to be static, in other words the thread did not jump from one CPU to another and the consumed resource via qstat and SNMP was consistent.&nbsp; Obviously from a user&#8217;s perspective it is desirable to consume as many CPUs as possible, however a shared environment where the assignemnt of resources is removed from the scheduler will invariably lead to resource contention and overall performance degredation.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9,4],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Matlab on diet - UCT HPC<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Matlab on diet - UCT HPC\" \/>\n<meta property=\"og:description\" content=\"Over the past week we became aware of an issue with Matlab and its desire to consume as many CPUs as possible.&nbsp; This despite the fact that we were no longer running the parallel library.&nbsp; This thread outlines the problem we were experiencing and this thread gives the solution, namely calling Matlab with the -singleCompThread argument.&nbsp; In the process list we still noticed 2 threads but one was set to &#039;Sleep&#039; while only one consumed actual CPU time.&nbsp; The designated CPU seemed to be static, in other words the thread did not jump from one CPU to another and the consumed resource via qstat and SNMP was consistent.&nbsp; Obviously from a user&#039;s perspective it is desirable to consume as many CPUs as possible, however a shared environment where the assignemnt of resources is removed from the scheduler will invariably lead to resource contention and overall performance degredation.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/\" \/>\n<meta property=\"og:site_name\" content=\"UCT HPC\" \/>\n<meta property=\"article:published_time\" content=\"2011-08-02T07:57:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-08-14T11:23:14+00:00\" \/>\n<meta name=\"author\" content=\"Andrew Lewis\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andrew Lewis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/\"},\"author\":{\"name\":\"Andrew Lewis\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#\/schema\/person\/c183ad1c0a1063124a72d63963ae9c7e\"},\"headline\":\"Matlab on diet\",\"datePublished\":\"2011-08-02T07:57:06+00:00\",\"dateModified\":\"2015-08-14T11:23:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/\"},\"wordCount\":149,\"publisher\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#organization\"},\"articleSection\":[\"application\",\"hpc\"],\"inLanguage\":\"en-ZA\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/\",\"url\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/\",\"name\":\"Matlab on diet - UCT HPC\",\"isPartOf\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#website\"},\"datePublished\":\"2011-08-02T07:57:06+00:00\",\"dateModified\":\"2015-08-14T11:23:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/#breadcrumb\"},\"inLanguage\":\"en-ZA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ucthpc.uct.ac.za\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Matlab on diet\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#website\",\"url\":\"https:\/\/ucthpc.uct.ac.za\/\",\"name\":\"UCT HPC\",\"description\":\"University of Cape Town High Performance Computing\",\"publisher\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ucthpc.uct.ac.za\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-ZA\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#organization\",\"name\":\"University of Cape Town High Performance Computing\",\"url\":\"https:\/\/ucthpc.uct.ac.za\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-ZA\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/09\/logocircless.png\",\"contentUrl\":\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/09\/logocircless.png\",\"width\":450,\"height\":423,\"caption\":\"University of Cape Town High Performance Computing\"},\"image\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#\/schema\/person\/c183ad1c0a1063124a72d63963ae9c7e\",\"name\":\"Andrew Lewis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-ZA\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9652c9c73beeab594b8dc2383a880048?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9652c9c73beeab594b8dc2383a880048?s=96&d=mm&r=g\",\"caption\":\"Andrew Lewis\"},\"sameAs\":[\"http:\/\/blogs.uct.ac.za\/blog\/big-bytes\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Matlab on diet - UCT HPC","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/","og_locale":"en_US","og_type":"article","og_title":"Matlab on diet - UCT HPC","og_description":"Over the past week we became aware of an issue with Matlab and its desire to consume as many CPUs as possible.&nbsp; This despite the fact that we were no longer running the parallel library.&nbsp; This thread outlines the problem we were experiencing and this thread gives the solution, namely calling Matlab with the -singleCompThread argument.&nbsp; In the process list we still noticed 2 threads but one was set to 'Sleep' while only one consumed actual CPU time.&nbsp; The designated CPU seemed to be static, in other words the thread did not jump from one CPU to another and the consumed resource via qstat and SNMP was consistent.&nbsp; Obviously from a user's perspective it is desirable to consume as many CPUs as possible, however a shared environment where the assignemnt of resources is removed from the scheduler will invariably lead to resource contention and overall performance degredation.","og_url":"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/","og_site_name":"UCT HPC","article_published_time":"2011-08-02T07:57:06+00:00","article_modified_time":"2015-08-14T11:23:14+00:00","author":"Andrew Lewis","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Andrew Lewis","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/#article","isPartOf":{"@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/"},"author":{"name":"Andrew Lewis","@id":"https:\/\/ucthpc.uct.ac.za\/#\/schema\/person\/c183ad1c0a1063124a72d63963ae9c7e"},"headline":"Matlab on diet","datePublished":"2011-08-02T07:57:06+00:00","dateModified":"2015-08-14T11:23:14+00:00","mainEntityOfPage":{"@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/"},"wordCount":149,"publisher":{"@id":"https:\/\/ucthpc.uct.ac.za\/#organization"},"articleSection":["application","hpc"],"inLanguage":"en-ZA"},{"@type":"WebPage","@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/","url":"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/","name":"Matlab on diet - UCT HPC","isPartOf":{"@id":"https:\/\/ucthpc.uct.ac.za\/#website"},"datePublished":"2011-08-02T07:57:06+00:00","dateModified":"2015-08-14T11:23:14+00:00","breadcrumb":{"@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/#breadcrumb"},"inLanguage":"en-ZA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/2011\/08\/02\/matlab-on-diet\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ucthpc.uct.ac.za\/"},{"@type":"ListItem","position":2,"name":"Matlab on diet"}]},{"@type":"WebSite","@id":"https:\/\/ucthpc.uct.ac.za\/#website","url":"https:\/\/ucthpc.uct.ac.za\/","name":"UCT HPC","description":"University of Cape Town High Performance Computing","publisher":{"@id":"https:\/\/ucthpc.uct.ac.za\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ucthpc.uct.ac.za\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-ZA"},{"@type":"Organization","@id":"https:\/\/ucthpc.uct.ac.za\/#organization","name":"University of Cape Town High Performance Computing","url":"https:\/\/ucthpc.uct.ac.za\/","logo":{"@type":"ImageObject","inLanguage":"en-ZA","@id":"https:\/\/ucthpc.uct.ac.za\/#\/schema\/logo\/image\/","url":"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/09\/logocircless.png","contentUrl":"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/09\/logocircless.png","width":450,"height":423,"caption":"University of Cape Town High Performance Computing"},"image":{"@id":"https:\/\/ucthpc.uct.ac.za\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/ucthpc.uct.ac.za\/#\/schema\/person\/c183ad1c0a1063124a72d63963ae9c7e","name":"Andrew Lewis","image":{"@type":"ImageObject","inLanguage":"en-ZA","@id":"https:\/\/ucthpc.uct.ac.za\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9652c9c73beeab594b8dc2383a880048?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9652c9c73beeab594b8dc2383a880048?s=96&d=mm&r=g","caption":"Andrew Lewis"},"sameAs":["http:\/\/blogs.uct.ac.za\/blog\/big-bytes"]}]}},"_links":{"self":[{"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/posts\/1069"}],"collection":[{"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/comments?post=1069"}],"version-history":[{"count":2,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/posts\/1069\/revisions"}],"predecessor-version":[{"id":2220,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/posts\/1069\/revisions\/2220"}],"wp:attachment":[{"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/media?parent=1069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/categories?post=1069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/tags?post=1069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}