  | | | pagecache and hugetlb tuning for Oracle DB operations | pagecache and hugetlb tuning for Oracle DB operations 2006-06-09 - By David.Knight@(protected)
Back Have you enabled direct I/O or AIO for Oracle and Linux? http://www.rampant-books.com/t_oracle_direct_i_o.htm
We run the same exact Oracle/Linux/Hardware configuration here and don't have that issue. You may also make use of the sync or update commands like people do on Unix systems. What does `cat /proc/meminfo` show?
-David Knight
"Jim Williams" <Jim.Williams@(protected)> Sent by: taroon-list-bounces@(protected) 06/09/2006 02:58 PM Please respond to "Discussion of Red Hat Enterprise Linux 3 (Taroon)" <taroon-list@(protected)>
To taroon-list@(protected) cc
Subject pagecache and hugetlb tuning for Oracle DB operations
I am managing a new server configuration to support Oracle 9i v 9.2.0. The SGA is approximately 7 GB and we are running on a pair of new HP DL585?s with 4 dual-core Opteron CPU?s and 16GB of RAM on our test system, 32GB on production. After going live with the system last week, users started complaining almost immediately about slow performance. Upon investigation, it was determined that we were thrashing swap pretty heavily. I do not mean data just sitting in swap, vmstat reported constant si and so numbers, sometimes over a thousand in a 5 second sample period. We could tell from the output of the free command and top that there was a large amount of RAM dedicated to disk caching, so we decided to decrease the disk cache. I set the vm.pagecache parameter on the test platform to ?1 5 10? and it had absolutely no effect at all that I could see. The developers were able to easily generate disk cache that filled over 90% of RAM. I thought that pagecache setting limited cache to 10% of RAM? We also tried setting the hugetlb_pool parameters to dedicate 8GB of huge pages for the SGA. I set this with the command ?sysctl ?w vm.hugetlb_pool=8192? and according to /proc/meminfo I got 8 pages of 2048K pages. That did not make sense to me, so I put the same setting in sysctl.conf and rebooted. The server hung at boot as it was ?Setting kernel parameters.? I simply commented out the hugetlb_pool setting at it booted without error. Can anyone tell me what I?m missing here or recommend some better setting for our environment? Red Hat Enterprise Linux AS release 3 (Taroon Update 7) Linux XXX.XXXX.com 2.4.21-40.ELsmp #1 SMP Thu Feb 2 22:13:55 EST 2006 x86_64 x86_64 x86_64 GNU/Linux # free total used free shared buffers cached Mem: 16010356 13834384 2175972 0 287552 12683848 -/+ buffers/cache: 862984 15147372 Swap: 8388472 0 8388472 # cat /proc/sys/vm/pagecache 1 5 10 # cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 15 model : 33 model name : AMD Opteron (tm) Processor 880 physical id : 0 siblings : 2 core id : 0 cpu cores : 2 stepping : 2 cpu MHz : 2396.886 cache size : 1024 KB fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext lm 3dnowext 3dnow bogomips : 4771.02 TLB size : 1088 4K pages clflush size : 64 address sizes : 40 bits physical, 48 bits virtual power management: ts fid vid ttp (?. duplicated 7 more times) Jim Williams Linux Administrator Desk: (407) 804-8185 Cell: (407) 687-4532 Jim.Williams@(protected) Taroon-list mailing list Taroon-list@(protected) https://www.redhat.com/mailman/listinfo/taroon-list
<br><font size=2 face="sans-serif">Have you enabled direct I/O or AIO for Oracle and Linux? </font> <br><font size=2 face="sans-serif">http://www.rampant-books.com/t_oracle_direct _i_o.htm</font> <br> <br><font size=2 face="sans-serif">We run the same exact Oracle/Linux/Hardware configuration here and don't have that issue. You may also make use of the sync or update commands like people do on Unix systems.</font> <br><font size=2 face="sans-serif">What does `cat /proc/meminfo` show?</font> <br> <br><font size=2 face="sans-serif">-David Knight</font> <br> <br> <br> <br> <br> <table width=100%> <tr valign=top> <td width=40%><font size=1 face="sans-serif"><b>"Jim Williams" <Jim.Williams@(protected)></b> </font> <br><font size=1 face="sans-serif">Sent by: taroon-list-bounces@(protected)< /font> <p><font size=1 face="sans-serif">06/09/2006 02:58 PM</font> <table border> <tr valign=top> <td bgcolor=white> <div align=center><font size=1 face="sans-serif">Please respond to<br> "Discussion of Red Hat Enterprise Linux 3 (Taroon)" <taroon-list @(protected)></font></div></table> <br> <td width=59%> <table width=100%> <tr valign=top> <td> <div align=right><font size=1 face="sans-serif">To</font></div> <td><font size=1 face="sans-serif">taroon-list@(protected)</font> <tr valign=top> <td> <div align=right><font size=1 face="sans-serif">cc</font></div> <td> <tr valign=top> <td> <div align=right><font size=1 face="sans-serif">Subject</font></div> <td><font size=1 face="sans-serif">pagecache and hugetlb tuning for Oracle DB operations</font></table> <br> <table> <tr valign=top> <td> <td></table> <br></table> <br> <br> <br><font size=2 face="Tahoma">I am managing a new server configuration to support Oracle</font><font size=3> </font><font size=2 face="Tahoma">9i v 9.2.0.</font><font size=3> </font><font size=2 face="Tahoma">The SGA is approximately 7 GB and we are running on a</font><font size=3> </font><font size=2 face="Tahoma">pair of</font><font size=3> </font><font size=2 face="Tahoma">new HP DL585?s with 4 dual-core Opteron CPU?s and</font><font size=3> </font><font size=2 face ="Tahoma">16GB of RAM on our test system, 32GB on production.</font><font size=3> </font><font size=2 face="Tahoma">After going live with the system last week, users started complaining</font><font size=3> </font><font size=2 face="Tahoma">almost immediately</font><font size=3> </font><font size=2 face="Tahoma">about slow performance. Upon investigation, it was determined that we were thrashing swap pretty heavily. I do not mean data</font><font size=3> </font><font size=2 face="Tahoma">just sitting in swap, vmstat reported constant si and so numbers, sometimes</font><font size =3> </font><font size=2 face="Tahoma">over a thousand in a 5 second sample</font> <font size=3> </font><font size=2 face="Tahoma">period. We could tell from the output of the free command and top that there was a large amount of RAM dedicated to disk caching, so we decided to decrease the disk cache. I set the vm .pagecache parameter</font><font size=3> </font><font size=2 face="Tahoma">on the test platform</font><font size=3> </font><font size=2 face="Tahoma">to</font> <font size=3> </font><font size=2 face="Tahoma">?1 5 10? and it had absolutely no effect at all that I could see. The developers were able to easily generate disk cache that filled over 90% of RAM.</font><font size=3> </font><font size=2 face ="Tahoma"> I thought that pagecache setting limited cache to 10% of RAM?</font> <p><font size=2 face="Tahoma">We also tried setting the hugetlb_pool</font> <font size=3> </font><font size=2 face="Tahoma">parameters to dedicate 8GB of huge pages for the SGA.</font><font size=3> </font><font size=2 face="Tahoma">I set this with the command</font><font size=3> </font><font size=2 face="Tahoma"> ?sysctl</font><font size=3> </font><font size=2 face="Tahoma">?w vm.hugetlb_pool=8192? and according to /proc/meminfo I got 8 pages of 2048K pages. That did not make sense to me, so I put the same setting in sysctl.conf and rebooted. The server hung at boot as it was</font><font size=3> </font><font size=2 face="Tahoma"> ?Setting kernel parameters.? I simply commented out the hugetlb_pool setting at it booted without error. Can anyone tell me what I?m missing here or recommend some better setting for our environment?</font> <p><font size=2 face="Tahoma">Red Hat Enterprise Linux AS release 3 (Taroon Update 7)</font> <p><font size=2 face="Tahoma">Linux</font><font size=3> </font><font size=2 face="Tahoma">XXX.XXXX.com 2.4.21-40.ELsmp #1 SMP Thu Feb 2 22:13:55 EST 2006 x86_64 x86_64 x86_64 GNU/Linux</font> <p><font size=2 face="Tahoma"># free</font> <p><font size=2 face="Tahoma"> total used free shared buffers cached</font> <p><font size=2 face="Tahoma">Mem: 16010356 13834384 2175972 0 287552 12683848</font> <p><font size=2 face="Tahoma">-/+ buffers/cache: 862984 15147372</font> <p><font size=2 face="Tahoma">Swap: 8388472 0 8388472</font> <p><font size=2 face="Tahoma"># cat /proc/sys/vm/pagecache</font> <p><font size=2 face="Tahoma">1 5 10</font> <p><font size=2 face="Tahoma"># cat /proc/cpuinfo</font> <p><font size=2 face="Tahoma">processor : 0</font> <p><font size=2 face="Tahoma">vendor_id : AuthenticAMD< /font> <p><font size=2 face="Tahoma">cpu family : 15</font> <p><font size=2 face="Tahoma">model : 33</font> <p><font size=2 face="Tahoma">model name : AMD Opteron (tm) Processor 880</font> <p><font size=2 face="Tahoma">physical id : 0</font> <p><font size=2 face="Tahoma">siblings : 2</font> <p><font size=2 face="Tahoma">core id : 0</font> <p><font size=2 face="Tahoma">cpu cores : 2</font> <p><font size=2 face="Tahoma">stepping : 2</font> <p><font size=2 face="Tahoma">cpu MHz : 2396.886< /font> <p><font size=2 face="Tahoma">cache size : 1024 KB</font> <p><font size=2 face="Tahoma">fpu : yes</font> <p><font size=2 face="Tahoma">fpu_exception : yes</font> <p><font size=2 face="Tahoma">cpuid level : 1</font> <p><font size=2 face="Tahoma">wp : yes</font> <p><font size=2 face="Tahoma">flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext lm 3dnowext 3dnow</font> <p><font size=2 face="Tahoma">bogomips : 4771.02< /font> <p><font size=2 face="Tahoma">TLB size : 1088 4K pages</font> <p><font size=2 face="Tahoma">clflush size : 64</font> <p><font size=2 face="Tahoma">address sizes : 40 bits physical, 48 bits virtual</font> <p><font size=2 face="Tahoma">power management: ts fid vid ttp</font> <p><font size=2 face="Tahoma">(?. duplicated 7 more times)</font> <p><font size=2 face="Comic Sans MS">Jim Williams</font> <p><font size=2 face="Comic Sans MS">Linux Administrator</font> <p><font size=2 face="Comic Sans MS">Desk: (407) 804-8185</font> <p><font size=2 face="Comic Sans MS">Cell: (407) 687-4532</font> <p><a href=mailto:Jim.Williams@(protected)><font size=2 color=blue face= "Comic Sans MS"><u>Jim.Williams@(protected)</u></font></a><font size=2><tt>-- <br> Taroon-list mailing list<br> Taroon-list@(protected)<br> https://www.redhat.com/mailman/listinfo/taroon-list</tt></font> <p>
-- Taroon-list mailing list Taroon-list@(protected) https://www.redhat.com/mailman/listinfo/taroon-list
|
|
 |