How to know to adjust the kernel buffer and cache usage

tushaar gohil <[email protected]> Fri, 9 Sep 2005 15:48:02 +0530
Newsgroups gmane.linux.redhat.stronghold
Message-ID <[email protected]>
--===============0552874327==
Content-Type: multipart/alternative; 
	boundary="----=_Part_2213_19786500.1126261082876"

------=_Part_2213_19786500.1126261082876
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

HI,=20
If anyone knows, I'ld like to know how to adjust the kernel buffer and cach=
e=20
usage...
  System: 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386=
=20
GNU/Linux (Red Hat Enterprise Linux ES release 3=20
 *Free*
 total used free shared buffers cached=20
 Mem: 8248744 6864308 1384436 0 178236 4976432
-/+ buffers/cache: 1709640 6539104
Swap 2096440 0 2096440
=20
Shared Memory=20

*ipcs -lm*

------ Shared Memory Limits --------
max number of segments =3D 4096
max seg size (kbytes) =3D 32768
max total shared memory (kbytes) =3D 8388608
min seg size (bytes) =3D 1

*ipcs -am*

------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000064 0 root 600 1712 0
0x0c6629c9 32769 root 640 695584 2
0x06347849 65538 root 666 70340 1
0x31050002 98307 root 666 131164 3

------ Semaphore Arrays --------
key semid owner perms nsems
0x31050002 720898 root 666 1
0x00000000 163843 root 600 1
0xffffffff 753668 root 666 1
0x00000000 524293 root 600 1
0x00000000 557062 root 600 1
0x00000000 589831 root 600 1
0x00000000 655369 root 600 1
0x00000000 688138 root 600 1
------ Message Queues --------
key msqid owner perms used-bytes messages
 *TOP:*

10:14:19 up 14 days, 20:40, 6 users, load average: 1.64, 1.58, 1.60
158 processes: 157 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 36.1% 0.0% 2.0% 0.0% 0.0% 0.0% 61.7%
cpu00 56.9% 0.0% 0.5% 0.0% 0.0% 0.0% 42.4%
cpu01 42.1% 0.0% 3.3% 0.0% 0.0% 0.0% 54.4%
cpu02 5.3% 0.0% 0.0% 0.0% 0.0% 0.0% 94.6%
cpu03 39.9% 0.0% 4.1% 0.0% 0.0% 0.1% 55.6%
Mem: 8248744k av, 6881872k used, 1366872k free, 0k shrd, 178216k buff
2207772k actv, 2055408k in_d, 65080k in_c
Swap: 2096440k av, 0k used, 2096440k free 4979924k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
17766 webm 25 0 199M 199M 19680 S 24.9 2.4 357:28 1 java
1 root 15 0 500 500 448 S 0.0 0.0 0:16 1 init



I'ld really like to turn this down. I don't need such large buffers, and in
spite of the memory I've had instances where Java application has run low o=
n=20
ram
causing the system to freeze during garbage collection...
Please do the needful at your earliest and reply back to this mail
 Thanks,
Tushar Gohil

<[email protected]>

------=_Part_2213_19786500.1126261082876
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

HI,
<div>&nbsp;</div>
<div>If anyone knows, I'ld like to know how to adjust the kernel buffer and=
 cache usage...</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>System:&nbsp;2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i6=
86 i386 GNU/Linux (Red Hat Enterprise Linux ES release 3&nbsp;<br>&nbsp;</d=
iv>
<div><u><strong>Free</strong></u></div>
<div>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp; &nbsp;total&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp; used&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shared&nbsp;&nbs=
p;&nbsp; buffers&nbsp;&nbsp;&nbsp;&nbsp; cached </div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; Mem:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8248744&nbsp;&nbsp;&nbsp=
; 6864308&nbsp;&nbsp;&nbsp; 1384436&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; 178236&nbsp;&nbsp;&nbsp; 4976432<b=
r>-/+ buffers/cache:&nbsp;&nbsp;&nbsp;&nbsp; 1709640&nbsp;&nbsp;&nbsp; 6539=
104<br>Swap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;2096440&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp; 2096440<br>&nbsp;</div>
<p>Shared Memory </p>
<p><u><strong>ipcs -lm</strong></u></p>
<p>------ Shared Memory Limits --------<br>max number of segments =3D 4096<=
br>max seg size (kbytes) =3D 32768<br>max total shared memory (kbytes) =3D =
8388608<br>min seg size (bytes) =3D 1<br></p>
<p><strong><u>ipcs -am</u></strong></p>
<p>------ Shared Memory Segments --------<br>key&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; shmid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; owner&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp; perms&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bytes&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp; nattch&nbsp;&nbsp;&nbsp;&nbsp; status<br>0x00000064 0&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p; 600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1712&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp; 0<br>0x0c6629c9 32769&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp; 640&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 69=
5584&nbsp;&nbsp;&nbsp;&nbsp; 2
<br>0x06347849 65538&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp; 666&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 70340&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; 1<br>0x31050002 98307&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 666&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
 131164&nbsp;&nbsp;&nbsp;&nbsp; 3</p>
<p>------ Semaphore Arrays --------<br>key&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp; semid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; owner&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp; perms&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nsems<br>0x31050002 720898&nbsp;=
&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 666&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp; 1<br>0x00000000 163843&nbsp;&nbsp;&nbsp;&nbsp; roo=
t&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p; 1<br>0xffffffff 753668&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp; 666&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1
<br>0x00000000 524293&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp; 600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<br>0x00000000 557062&=
nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 600&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<br>0x00000000 589831&nbsp;&nbsp;&nbsp;&nbsp=
; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp; 1<br>0x00000000 655369&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp; 600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<br>0x0000000=
0 688138&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 600&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1
</p>
<div>------ Message Queues --------<br>key&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp; msqid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; owner&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp; perms&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; used-bytes&nbsp;&nbsp; messages<=
/div>
<div>&nbsp;</div>
<div><u><strong>TOP:</strong></u></div>
<div><br>&nbsp;10:14:19&nbsp; up 14 days, 20:40,&nb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sp;&nbsp;&nbsp; 0.0%&nbsp;&nbsp;&nbsp; 0.0%&nbsp;&nbsp; 94.6=
%<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cpu03&nbs=
p;&nbsp; 39.9%&nbsp;&nbsp;&nbsp; 0.0%&nbsp;&nbsp;&nbsp; 4.1%&nbsp;&nbsp; 0.=
0%&nbsp;&nbsp;&nbsp;&nbsp; 0.0%&nbsp;&nbsp;&nbsp; 0.1%&nbsp;&nbsp; 55.6%<br=
>Mem:&nbsp; 8248744k av, 6881872k used, 1366872k free,&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; 0k shrd,&nbsp; 178216k buff
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2207772k actv, 2055408k in_d,&nbsp;&n=
bsp; 65080k in_c<br>Swap: 2096440k av,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
0k used, 2096440k free&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4979924k cached</div>
<p>&nbsp; PID USER&nbsp;&nbsp;&nbsp;&nbsp; PRI&nbsp; NI&nbsp; SIZE&nbsp; RS=
S SHARE STAT %CPU %MEM&nbsp;&nbsp; TIME CPU COMMAND<br>17766 webm&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp; 25&nbsp;&nbsp; 0&nbsp; 199M 199M 19680 S&nbsp;&nbsp;&n=
bsp; 24.9&nbsp; 2.4 357:28&nbsp;&nbsp; 1 java<br>&nbsp;&nbsp;&nbsp; 1 root&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 15&nbsp;&nbsp; 0&nbsp;&nbsp; 500&nbsp; 500&nb=
sp;&nbsp; 448 S&nbsp;&nbsp;&nbsp;&nbsp; 0.0&nbsp; 0.0&nbsp;&nbsp; 0:16&nbsp=
;&nbsp; 1 init
<br></p>
<p><br><br>I'ld really like to turn this down. I don't need such large buff=
ers, and in<br>spite of the memory I've had instances where&nbsp;Java appli=
cation &nbsp;has run low on ram<br>causing the system to freeze during garb=
age collection...
</p>
<div><span style=3D"FONT-SIZE: 10pt"><font face=3D"Courier New" color=3D"#0=
000ff">Please do the needful at your earliest and reply back to this mail</=
font></span></div>
<div><span style=3D"FONT-SIZE: 10pt"><font face=3D"Courier New" color=3D"#0=
000ff"></font></span>&nbsp;</div>
<div>Thanks,</div>
<div>Tushar Gohil</div>
<p><a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D"mail=
to:[email protected]"></a>&nbsp;</p>

------=_Part_2213_19786500.1126261082876--


--===============0552874327==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Stronghold-users mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/stronghold-users
--===============0552874327==--