Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
pagecache and hugetlb tuning for Oracle DB operations

pagecache and hugetlb tuning for Oracle DB operations

2006-06-09       - By David.Knight@(protected)

 Back
Reply:     1     2     3     4     5     6     7  

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>&quot;Jim Williams&quot;
&lt;Jim.Williams@(protected)&gt;</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>
&quot;Discussion of Red Hat Enterprise Linux 3 (Taroon)&quot; &lt;taroon-list
@(protected)&gt;</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">&nbsp;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">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;total &nbsp; &nbsp; &nbsp; used &nbsp; &nbsp; &nbsp; free &nbsp;
&nbsp; shared &nbsp; &nbsp;buffers &nbsp; &nbsp; cached</font>
<p><font size=2 face="Tahoma">Mem: &nbsp; &nbsp; &nbsp;16010356 &nbsp;
13834384 &nbsp; &nbsp;2175972 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp;
&nbsp; 287552 &nbsp; 12683848</font>
<p><font size=2 face="Tahoma">-/+ buffers/cache: &nbsp; &nbsp; 862984 &nbsp;
15147372</font>
<p><font size=2 face="Tahoma">Swap: &nbsp; &nbsp; &nbsp;8388472 &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;8388472</font>
<p><font size=2 face="Tahoma"># cat /proc/sys/vm/pagecache</font>
<p><font size=2 face="Tahoma">1 &nbsp; &nbsp; &nbsp; 5 &nbsp; &nbsp; &nbsp;
10</font>
<p><font size=2 face="Tahoma"># cat /proc/cpuinfo</font>
<p><font size=2 face="Tahoma">processor &nbsp; &nbsp; &nbsp; : 0</font>
<p><font size=2 face="Tahoma">vendor_id &nbsp; &nbsp; &nbsp; : AuthenticAMD<
/font>
<p><font size=2 face="Tahoma">cpu family &nbsp; &nbsp; &nbsp;: 15</font>
<p><font size=2 face="Tahoma">model &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
: 33</font>
<p><font size=2 face="Tahoma">model name &nbsp; &nbsp; &nbsp;: AMD Opteron
(tm) Processor 880</font>
<p><font size=2 face="Tahoma">physical id &nbsp; &nbsp; : 0</font>
<p><font size=2 face="Tahoma">siblings &nbsp; &nbsp; &nbsp; &nbsp;: 2</font>
<p><font size=2 face="Tahoma">core id &nbsp; &nbsp; &nbsp; &nbsp; : 0</font>
<p><font size=2 face="Tahoma">cpu cores &nbsp; &nbsp; &nbsp; : 2</font>
<p><font size=2 face="Tahoma">stepping &nbsp; &nbsp; &nbsp; &nbsp;: 2</font>
<p><font size=2 face="Tahoma">cpu MHz &nbsp; &nbsp; &nbsp; &nbsp; : 2396.886<
/font>
<p><font size=2 face="Tahoma">cache size &nbsp; &nbsp; &nbsp;: 1024 KB</font>
<p><font size=2 face="Tahoma">fpu &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
: yes</font>
<p><font size=2 face="Tahoma">fpu_exception &nbsp; : yes</font>
<p><font size=2 face="Tahoma">cpuid level &nbsp; &nbsp; : 1</font>
<p><font size=2 face="Tahoma">wp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;: yes</font>
<p><font size=2 face="Tahoma">flags &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
: 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 &nbsp; &nbsp; &nbsp; &nbsp;: 4771.02<
/font>
<p><font size=2 face="Tahoma">TLB size &nbsp; &nbsp; &nbsp; &nbsp;: 1088
4K pages</font>
<p><font size=2 face="Tahoma">clflush size &nbsp; &nbsp;: 64</font>
<p><font size=2 face="Tahoma">address sizes &nbsp; : 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