My guess is that Oracle runs a few processes using shared memory. The script 
just totals
all the procs, shared or not, so shared memory applications will definitely 
skew the results. 

Ray  

> -----Original Message-----
> From: Linux on 390 Port [mailto:linux-...@vm.marist.edu] On 
> Behalf Of Tom Duerbusch
> Sent: Friday, July 23, 2010 6:05 PM
> To: LINUX-390@VM.MARIST.EDU
> Subject: Re: Reducing Linux virtual machine size
> 
> Hi Ray.
>  
> I tried your script on some of my images.  Works fine, except 
> when Oracle is involved.
>  
> linux62:~ # ps -eo pmem | awk '{pmem += $1};END {print "pmem 
> ="pmem"%"}';
> pmem =1347.1%
> I do have a lot of swap blocks allocated.  This is due to a 
> batch type run, that is run off hours.  During the day, when 
> users are on, we swap very little.
>  
> So if this does include swap pages, I don't think the script 
> would give me what I need, during normal processing.  Do you 
> agree?  Or am off track here?
>  
> Thanks
>  
> Tom Duerbusch
> THD Consulting
> 
> >>> "Mrohs, Ray" <ray.mr...@usdoj.gov> 7/23/2010 1:45 PM >>>
> Start up all your Linux procs and then run this little script.
> 
> #! /bin/sh
> ps -eo pmem | awk '{pmem += $1}; END {print "pmem = "pmem"%"}';
> 
> It will give you a ballpark percentage of current memory utilization.
> I tuned some Apache/ftp servers down to 100M with no ill effects.
> 
> Ray Mrohs
> U.S. Department of Justice
> 202-307-6896
> 
> 
> 
>   
> 
> > -----Original Message-----
> > From: Linux on 390 Port [mailto:linux-...@vm.marist.edu] On 
> > Behalf Of Bruce Furber
> > Sent: Friday, July 23, 2010 11:01 AM
> > To: LINUX-390@VM.MARIST.EDU
> > Subject: Reducing Linux virtual machine size
> > 
> > Can someone recommend a how to procedure for  monitoring a 
> > zLinux machine to determine how much to reduce a machines 
> > virtual memory? 
> > 
> > Getting permission to schedule time to log a machines off is 
> > very difficult so I have to be confident I have it right.  
> > 
> > 
> ----------------------------------------------------------------------
> > For LINUX-390 subscribe / signoff / archive access instructions,
> > send email to lists...@vm.marist.edu with the message: INFO 
> > LINUX-390 or visit
> > http://www.marist.edu/htbin/wlvindex?LINUX-390
> > 
> ----------------------------------------------------------------------
> > For more information on Linux on System z, visit
> > http://wiki.linuxvm.org/
> > 
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to lists...@vm.marist.edu with the message: INFO 
> LINUX-390 or visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit
> http://wiki.linuxvm.org/
> 
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to lists...@vm.marist.edu with the message: INFO 
> LINUX-390 or visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit
> http://wiki.linuxvm.org/
> 
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to