--- En date de : Lun 9.3.09, m...@bruningsystems.com <m...@bruningsystems.com> a écrit :
De: m...@bruningsystems.com <m...@bruningsystems.com> Objet: Re: [perf-discuss] Sol10 Leak memory À: "elkhaoul elkhaoul" <elkha...@yahoo.fr> Cc: "'perf-discuss@opensolaris.org'" <perf-discuss@opensolaris.org>, "Chad Mynhier" <cmynh...@gmail.com> Date: Lundi 9 Mars 2009, 14h41 Hi Elkhaoul, elkhaoul elkhaoul wrote: > Thanks Chad, > It seems that it will not return memory to applications, in fact, when the >kernel/buffer cache use the all memory, Applications use swap and The scan >rate is very high : > sar -g 3 ==> > pgscan/s = 5264 > Now, I have this : > ### top > last pid: 1107; load avg: 1.76, 1.66, 1.63; up 2+18:47:21 > 13:37:46 > 703 processes: 700 sleeping, 3 on cpu > CPU states: 66.6% idle, 11.5% user, 21.9% kernel, 0.0% iowait, 0.0% swap > Memory: 8192M phys mem, 2123M free mem, 16G total swap, 16G free swap > And *2123M free mem is incresing.* > ** *Is this any tools to know who use the big portion of RAM ?* > ** *Thanks in advance > * > Have you tried: echo "::memstat" | mdb -k Do this a few times over some interval to see if the kernel is growing. Is there a reason you think the leak is in the buffer cache? Do you have large, growing files in /tmp or a tmpfs mounted file system? That can also eat up memory. Do you have a large process that is growing? You can use prstat -s size or prstat -s rss to see sorted memory usage of processes. max ================================================ Thanks max, Look at Kernel size : it's growing by about 3Mb every 5minutes : ############# echo ::memstat |mdb -k Page Summary Pages MB %Tot ------------ ---------------- ---------------- ---- Kernel 186591 1457 18% Anon 446868 3491 43% Exec and libs 4381 34 0% Page cache 67048 523 6% Free (cachelist) 155799 1217 15% Free (freelist) 180976 1413 17% Total 1041663 8137 Physical 1024808 8006 ############ echo ::memstat |mdb -k Page Summary Pages MB %Tot ------------ ---------------- ---------------- ---- Kernel 186997 1460 18% Anon 447465 3495 43% Exec and libs 4374 34 0% Page cache 72474 566 7% Free (cachelist) 152954 1194 15% Free (freelist) 177399 1385 17% Total 1041663 8137 Physical 1024808 8006 ############ echo ::memstat |mdb -k Page Summary Pages MB %Tot ------------ ---------------- ---------------- ---- Kernel 187109 1461 18% Anon 449102 3508 43% Exec and libs 4392 34 0% Page cache 76641 598 7% Free (cachelist) 150348 1174 14% Free (freelist) 174071 1359 17% Total 1041663 8137 Physical 1024808 8006 I don't know why the kernel is using the 28% of memory (Top commands output : ) 16825 root 1 30 -10 21M 13M sleep 15:31 0.55% gpm last pid: 13270; load avg: 1.80, 1.70, 1.71; up 2+20:21:07 15:11:32 last pid: 24825; load avg: 1.31, 1.55, 1.65; up 2+20:25:07 15:15:32 727 processes: 725 sleeping, 1 running, 1 on cpu CPU states: 68.3% idle, 4.9% user, 26.8% kernel, 0.0% iowait, 0.0% swap Memory: 8192M phys mem, 2408M free mem, 16G total swap, 16G free swap ===> Since I have a lot of Oracle instance, many Libs and shared memory segemtn, prstat -s rss isné relevent : #### prstat -s rss PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP 8649 ora10g 714M 690M sleep 59 0 0:00:29 0.0% oracle/11 14406 ora10g 706M 688M sleep 59 0 0:06:54 0.1% oracle/11 9207 ora10g 706M 688M sleep 59 0 0:00:36 0.0% oracle/11 14397 ora10g 706M 688M sleep 59 0 0:06:56 0.0% oracle/11 12839 ora10g 705M 687M sleep 59 0 0:07:48 0.0% oracle/1 10102 ora10g 704M 686M sleep 59 0 0:03:42 0.0% oracle/1 12872 ora10g 703M 685M sleep 59 0 0:06:57 0.0% oracle/1 14900 ora10g 704M 685M sleep 59 0 0:00:01 0.0% oracle/1 10219 ora10g 703M 685M sleep 59 0 0:01:15 0.0% oracle/1 27205 ora10g 703M 685M sleep 59 0 0:00:31 0.0% oracle/1 16280 ora10g 703M 685M sleep 59 0 0:02:02 0.0% oracle/1 12855 ora10g 703M 685M sleep 59 0 0:41:38 0.3% oracle/1 But, I try with "swapinfo " DTrace script (provided in DTraceToolKit), I get : RAM _______Total 8192 MB RAM Unusable 54 MB RAM Kernel 2251 MB RAM Locked 2 MB RAM Used 3516 MB RAM Free 2367 MB Disk _______Total 16384 MB Disk Resv 4472 MB Disk Avail 11911 MB Swap _______Total 21251 MB Swap Resv 4472 MB Swap Avail 16778 MB Swap (Minfree) 1017 MB The RAM used by the kernel in this case is : 2251, tow days ago, it was ~1000Mb. Thanks for any helps, Rgds ae > > --- En date de : *Lun 9.3.09, Chad Mynhier /<cmynh...@gmail.com>/* a écrit : > > > De: Chad Mynhier <cmynh...@gmail.com> > Objet: Re: [perf-discuss] Sol10 Leak memory > À: "elkhaoul" <elkha...@yahoo.fr> > Cc: perf-discuss@opensolaris.org > Date: Lundi 9 Mars 2009, 13h13 > > On Mon, Mar 9, 2009 at 3:52 AM, elkhaoul <elkha...@yahoo.fr > <http://fr.mc269.mail.yahoo.com/mc/compose?to=elkha...@yahoo.fr>> > wrote: > > Hi, > > > > Solaris 10 3/05 s10_74L2a SPARC use 30% of memory and it > increase every days. > > > > Is there any leak memory in this OS (Sol10 118822-26) ? > > > > No, this is normal behavior. The buffer cache will grow to use all of > free memory. It won't steal memory from applications, though, and it > will return memory to the system for applications that need it. > > Chad > > > ------------------------------------------------------------------------ > > _______________________________________________ > perf-discuss mailing list > perf-discuss@opensolaris.org
_______________________________________________ perf-discuss mailing list perf-discuss@opensolaris.org