{"id":73,"date":"2010-01-29T12:41:26","date_gmt":"2010-01-29T17:41:26","guid":{"rendered":"http:\/\/www.shainmiley.com\/wordpress\/?p=73"},"modified":"2010-03-04T14:06:44","modified_gmt":"2010-03-04T19:06:44","slug":"poor-write-performance-with-oracle","status":"publish","type":"post","link":"https:\/\/www.shainmiley.com\/wordpress\/2010\/01\/29\/poor-write-performance-with-oracle\/","title":{"rendered":"Poor Write Performance with Oracle"},"content":{"rendered":"<p>We recently deployed an Oracle virtual machine for development and testing purposes.  Imports and database migration scripts were taking several hours on existing VM&#8217;s, so we hoped this new machine with more RAM (32 GB) and more CPU horsepower (quad core Intel Xeon&#8217;s) would allow for those operations to move along much more quickly.<\/p>\n<p>We soon got reports from users that this server was in fact much slower then the existing less powerful Oracle VM&#8217;s.  After doing some poking around (with vztop) we discovered that there were no issues with cpu or memory resources, however the server was performing terribly when it came to I\/O.<\/p>\n<p><!--more--><\/p>\n<p>I started by increasing the size of &#8216;sga_max_size&#8217;.  It was a bit undersized and I thought that sizing it a bit more correctly might allow the system to rely more on memory and less on the underlying filesystem.<\/p>\n<p>I then increased the number of &#8216;db_writer_processes&#8217; from 1 to 3.  Taken from help:<\/p>\n<p>&#8216;DB_WRITER_PROCESSES is useful for systems that modify data heavily. It specifies the initial number of database writer processes for an instance.&#8217;<\/p>\n<p>After looking at the alert log I also found the following &#8216;Checkpoint not complete&#8217;.  To try and combat this I increased the number of redo log groups from 3 to 5.<\/p>\n<p>I also added the following lines to the \/etc\/sysctl.conf file.<\/p>\n<p>kernel.shmall = 2097152<br \/>\nkernel.shmmax = 536870912<br \/>\nkernel.shmmni = 4096<br \/>\nkernel.sem = 250 32000 100 128<br \/>\nfs.file-max = 65536<br \/>\nnet.ipv4.ip_local_port_range = 1024 65000<br \/>\nnet.core.rmem_default=262144<br \/>\nnet.core.wmem_default=262144<br \/>\nnet.core.rmem_max=262144<br \/>\nnet.core.wmem_max=262144<\/p>\n<p>It also turned out that the LSI RAID card that we were using has a long history of poor write performance.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We recently deployed an Oracle virtual machine for development and testing purposes. Imports and database migration scripts were taking several hours on existing VM&#8217;s, so we hoped this new machine with more RAM (32 GB) and more CPU horsepower (quad core Intel Xeon&#8217;s) would allow for those operations to move along much more quickly. We [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,7,15,9],"tags":[],"_links":{"self":[{"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/posts\/73"}],"collection":[{"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/comments?post=73"}],"version-history":[{"count":15,"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/posts\/73\/revisions"}],"predecessor-version":[{"id":97,"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/posts\/73\/revisions\/97"}],"wp:attachment":[{"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/media?parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/categories?post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/tags?post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}