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: > > top - 09:55:10 up 14:36, 2 users, load average: > 1.00, 1.00, 0.95 > Tasks: 117 total, 1 running, 116 > sleeping, 0 stopped, 0 > zombie > Cpu(s): 26.2%us, 1.4%sy, 0.0%ni, 71.7%id, > 0.0%wa, 0.2%hi, 0.5%si, 0.0%st > Mem: 6228300k total, 5972452k > used, 255848k > free, 161400k buffers > Swap: 2031608k total, > 76k used, 2031532k free, > 4966648k cached > > PID USER PR NI VIRT > RES SHR S %CPU %MEM TIME+ COMMAND > 2507 root 15 0 2073m > 622m 1748 S 104 10.2 54:23.58 dbsrv9 > 7758 root 18 0 14544 > 3056 2188 S 0 > 0.0 0:01.08 smbd > 7803 root 17 0 14552 > 3032 2140 S 0 > 0.0 0:00.27 smbd > 7764 root 18 0 14556 > 3012 2152 S 0 > 0.0 0:01.49 smbd > 8183 root 18 0 14580 > 2984 2100 S 0 > 0.0 0:00.15 smbd > 7654 nobody 16 0 14548 2968 > 2088 S 1 0.0 0:00.90 > smbd > 8156 root 18 0 14560 > 2968 2108 S 0 > 0.0 0:02.87 smbd > 8167 root 18 0 14568 > 2968 2104 S 0 > 0.0 0:00.33 smbd > 8172 root 18 0 14560 > 2964 2104 S 0 > 0.0 0:01.32 smbd > > 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 _______________________________________________ RLUG mailing list [email protected] http://lists.lug.ro/mailman/listinfo/rlug
