teo wrote:
+++ Ionut Vancea [19/03/09 02:18 -0700]:
Buna,
--- On Thu, 3/19/09, Dan <[email protected]> wrote:
From: Dan <[email protected]>
Subject: [rlug] memory leak
To: "'Romanian Linux Users Group'" <[email protected]>
Date: Thursday, March 19, 2009, 10:02 AM
Am un centos 5.2(x32 cu kernel PAE)
pe un server cu 6Gb de memorie...si din pacate vad doar vreo
200Mb liberi (totusi fara vreo problema de performanta
deocamdata). Problema este ca nu vad (nu are) ce proces sa
consume atata memorie
Top ordonat dupa memorie zice:
aseara cand l-am pornit..erau aceleasi procese si "doar "
5.2Gb liberi...:))
Cum gasesc si eu memoria lipsa:)?..sau
vinovatul/mancatorul?
"That is how linux is. It will use most available memory for file
cache buffers"
"As long as there is free memory, it will continue to cache what it
has read from the disks. I almost never have any free memory as
inidicate in the free column in the output from free(1).
On the other hand, it doesn't hurt. If a program needs more memory,
the kernel just discards an old cache page and maps it the the
program's process, and while it has the information cached, it
doesn't need to re-read it from the disk it was first fetched from,
so it makes disk access a lot faster.
To find out how much RAM is available to your programs, take the
value in the "cached" and "buffers" columns and subtract their sum
from the "used" column."
Ceau,
Ionut
mie unuia "how much RAM is available to your programs" imi suna prost
cind rezultatul este de fapt "cit RAM este ocupat de procese"
mai bine spunem ca de fapt voia sa se uite in output-ul comenzii 'free'
care afiseaza pe linia "-/+ buffers/cache:" cit RAM e used/free by/for
procese. si atunci vedea ca are cam tot atit free cit avea si aseara.
teo
top - 14:43:04 up 19:24, 2 users, load average: 0.06, 0.08, 0.15
Tasks: 132 total, 1 running, 131 sleeping, 0 stopped, 0 zombie
Cpu0 : 0.0%us, 0.3%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si,
0.0%st
Cpu1 : 0.3%us, 0.3%sy, 0.0%ni, 99.3%id, 0.0%wa, 0.0%hi, 0.0%si,
0.0%st
Cpu2 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si,
0.0%st
Cpu3 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si,
0.0%st
Mem: 6228300k total, 6061156k used, 167144k free, 192456k buffers
Swap: 2031608k total, 88k used, 2031520k free, 4292192k cached
Adica dupa ceva ani de administrare servere linux aflu si eu niste
lucruri "de initiere" ...ca sa zic asa
Va multumesc!
Deci in top - ul de mai sus memoria e aproape mancata in intregime
(6061156k) pentru ca s-a creat un swap direct in RAM ( 4292192k)..din
care se servesc procesele actuale..daca pornesc un nou proces caruia ii
aloc 2G de memorie..ar trebui ca used memory sa fie tot asa..dar sa
scada valoarea de la cached?
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug