Ray, please check this:
db2p105:~ # free -m
total used free shared buffers cached
Mem: 6025 4285 1739 0 16 4045
-/+ buffers/cache: 223 5801
Swap: 0 0 0
db2p105:~ # ps -eo pmem | awk '{pmem += $1}; END {print "pmem = "pmem"%"}';
pmem = 39.4%
With this, i can say, this machine needs +/- 2GB ?
this machine runs DB2... i'm a little confuse with this because system
requeriments for db2 ask a minimum of 3GB...
thanks for help!
On Fri, Jul 23, 2010 at 3:45 PM, Mrohs, Ray <[email protected]> wrote:
> 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:[email protected]] On
>> Behalf Of Bruce Furber
>> Sent: Friday, July 23, 2010 11:01 AM
>> To: [email protected]
>> 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 [email protected] 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 [email protected] 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 [email protected] 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/