Re: Do I need more RAM?

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Mark Phillips
Date:  
To: Main PLUG discussion list
Subject: Re: Do I need more RAM?
Here goes - the output of ps -aux

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1   2116   616 ?        Ss   Jan12   0:06 init [2]
root         2  0.0  0.0      0     0 ?        S<   Jan12   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S<   Jan12   0:00
[migration/0]
root         4  0.0  0.0      0     0 ?        S<   Jan12   0:05
[ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   Jan12   0:10
[watchdog/0]
root         6  0.0  0.0      0     0 ?        S<   Jan12   0:11 [events/0]
root         7  0.0  0.0      0     0 ?        S<   Jan12   0:00 [khelper]
root        19  0.0  0.0      0     0 ?        S<   Jan12   0:00 [xenwatch]
root        20  0.0  0.0      0     0 ?        S<   Jan12   0:00 [xenbus]
root        30  0.0  0.0      0     0 ?        S<   Jan12   0:00
[migration/1]
root        31  0.0  0.0      0     0 ?        S<   Jan12   0:04
[ksoftirqd/1]
root        32  0.0  0.0      0     0 ?        S<   Jan12   0:00
[watchdog/1]
root        33  0.0  0.0      0     0 ?        S<   Jan12   0:07 [events/1]
root        34  0.0  0.0      0     0 ?        S<   Jan12   0:00
[migration/2]
root        35  0.0  0.0      0     0 ?        S<   Jan12   0:13
[ksoftirqd/2]
root        36  0.0  0.0      0     0 ?        S<   Jan12   0:01
[watchdog/2]
root        37  0.0  0.0      0     0 ?        S<   Jan12   0:06 [events/2]
root        38  0.0  0.0      0     0 ?        S<   Jan12   0:00
[migration/3]
root        39  0.0  0.0      0     0 ?        S<   Jan12   0:08
[ksoftirqd/3]
root        40  0.0  0.0      0     0 ?        S<   Jan12   0:01
[watchdog/3]
root        41  0.0  0.0      0     0 ?        S<   Jan12   0:12 [events/3]
root        68  0.0  0.0      0     0 ?        S<   Jan12   0:00 [kblockd/0]
root        69  0.0  0.0      0     0 ?        S<   Jan12   0:00 [kblockd/1]
root        70  0.0  0.0      0     0 ?        S<   Jan12   0:00 [kblockd/2]
root        71  0.0  0.0      0     0 ?        S<   Jan12   0:00 [kblockd/3]
root        81  0.0  0.0      0     0 ?        S<   Jan12   0:00 [kseriod]
root       128  0.0  0.0      0     0 ?        S    Jan12   0:00 [pdflush]
root       129  0.0  0.0      0     0 ?        S    Jan12   0:03 [pdflush]
root       130  0.0  0.0      0     0 ?        S<   Jan12   0:00 [kswapd0]
root       131  0.0  0.0      0     0 ?        S<   Jan12   0:00 [aio/0]
root       132  0.0  0.0      0     0 ?        S<   Jan12   0:00 [aio/1]
root       133  0.0  0.0      0     0 ?        S<   Jan12   0:00 [aio/2]
root       134  0.0  0.0      0     0 ?        S<   Jan12   0:00 [aio/3]
root       257  0.0  0.0      0     0 ?        S<   Jan12   0:00
[net_accel/0]
root       258  0.0  0.0      0     0 ?        S<   Jan12   0:00
[net_accel/1]
root       259  0.0  0.0      0     0 ?        S<   Jan12   0:00
[net_accel/2]
root       260  0.0  0.0      0     0 ?        S<   Jan12   0:00
[net_accel/3]
root       675  0.0  0.0      0     0 ?        S<   Jan12   0:03 [kjournald]
root       752  0.0  0.1   2304   488 ?        S<s  Jan12   0:00 udevd
--daemon
root      1135  0.0  0.0      0     0 ?        S<   Jan12   0:00 [kjournald]
root      1136  0.0  0.0      0     0 ?        S<   Jan12   0:01 [kjournald]
root      1137  0.0  0.0      0     0 ?        S<   Jan12   0:00 [kjournald]
root      1329  0.0  0.3  28180  1424 ?        Sl   Jan12   0:01
/usr/sbin/rsyslogd -c3
root      1350  0.0  0.2   5432   808 ?        Ss   Jan12   0:01
/usr/sbin/sshd
root      1393  0.0  0.3   2848  1208 ?        S    Jan12   0:00 /bin/sh
/usr/bin/mysqld_safe
mysql     1434  0.0  1.4 129232  5464 ?        Sl   Jan12   1:59
/usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/run/mys
root      1436  0.0  0.1   1764   560 ?        S    Jan12   0:00 logger -p
daemon.err -t mysqld_safe -i -t mysqld
root      1591  0.0  0.4   5640  1612 ?        Ss   Jan12   0:02
/usr/lib/postfix/master
postfix   1602  0.0  0.4   5696  1724 ?        S    Jan12   0:00 qmgr -l -t
fifo -u
root      1614  0.0  0.2   3960   780 ?        Ss   Jan12   0:01
/usr/sbin/cron
root      1630  0.0  0.8  13932  3096 ?        Ss   Jan12   0:26
/usr/sbin/apache2 -k start
root      1706  0.0  0.1   1780   500 tty1     Ss+  Jan12   0:00 /sbin/getty
38400 tty1
plone     1722  0.0  0.4  12564  1804 ?        Ss   Jan12   0:04
/opt/Plone-2.5.5/Python-2.4.4/bin/python
/opt/Plone-2.5.5/lib/python/zdaemon/zdrun.py -S /opt
plone     1723  0.0  3.1  26612 11632 ?        S    Jan12   1:04
/opt/Plone-2.5.5/Python-2.4.4/bin/python
/opt/Plone-2.5.5/lib/python/ZEO/runzeo.py -C /opt/Pl
root      1727  0.0  0.4  10644  1544 ?        Ss   Jan12   0:05
/opt/Plone-2.5.5/Python-2.4.4/bin/python
/opt/Plone-2.5.5/lib/python/zdaemon/zdrun.py -S /opt
plone     1728  1.4 48.2 230384 178020 ?       Sl   Jan12 186:10
/opt/Plone-2.5.5/Python-2.4.4/bin/python
/opt/Plone-2.5.5/lib/python/Zope2/Startup/run.py -C
root      1732  0.0  0.2  10644  1092 ?        Ss   Jan12   0:04
/opt/Plone-2.5.5/Python-2.4.4/bin/python
/opt/Plone-2.5.5/lib/python/zdaemon/zdrun.py -S /opt
plone     1733  0.0 19.1 127792 70788 ?        Sl   Jan12   0:11
/opt/Plone-2.5.5/Python-2.4.4/bin/python
/opt/Plone-2.5.5/lib/python/Zope2/Startup/run.py -C
postfix   2333  0.0  0.7   6020  2612 ?        S    Jan13   0:00 tlsmgr -l
-t unix -u -c
root      8321  0.0  0.1   2308   672 ?        S    Jan17   0:05
/usr/sbin/rotatelogs /var/log/apache2/usage/
ahsnews.com/ahsnews.com-error.log 86400
root      8324  0.0  0.1   2308   664 ?        S    Jan17   0:00
/usr/sbin/rotatelogs /var/log/apache2/usage/
ahsnews.com/ahsnews.com-access.log 86400
www-data  8328  0.0  0.5  13932  1976 ?        S    Jan17   0:00
/usr/sbin/apache2 -k start
www-data  8390  0.0  1.4 236584  5348 ?        Sl   Jan17   0:09
/usr/sbin/apache2 -k start
www-data  8391  0.0  1.4 236720  5468 ?        Sl   Jan17   0:09
/usr/sbin/apache2 -k start
postfix  13544  0.0  0.4   5652  1720 ?        S    11:37   0:00 pickup -l
-t fifo -u -c
root     13584  0.0  0.7   8176  2616 ?        Ss   13:06   0:00 sshd: mark
[priv]
mark     13587  0.0  0.3   8176  1464 ?        S    13:06   0:00 sshd:
mark@pts/0
mark     13588  0.0  0.5   5252  1944 pts/0    Ss   13:06   0:00 -bash
root     13594  0.0  0.3   4264  1140 pts/0    S    13:06   0:00 su
root     13595  0.0  0.4   4748  1652 pts/0    S    13:06   0:00 bash
root     13596  0.0  0.2   4180   960 pts/0    R+   13:06   0:00 ps aux


I am not sure if I am running any junk. I need python, zope, plone, apache,
mysql, postfix.

Mark

On Thu, Jan 21, 2010 at 12:54 PM, <
> wrote:

> Feel free to post the output of:
>
> ps aux
>
> I'm sure you're running junk you don't need.
> Junk that is eating memory and cycles.
> ET
>
> PS: More stupid unrelated wisdom:
> The difference between the Mafia and the IRS,
> is that the Mafia has a code of honor.
> (I'm about to print that on T-shirt...)
>
>
>
>
>
> Mark Phillips writes:
>
> > Thanks for the explanation! We don't need t hold a car wash (bad timing
> this
> > week anyway....;-)) to raise the money for the next larger linode....just
> > pass the collection jar around for the $50.
> >
> > Cheers!
> >
> > Mark
> >
> > On Thu, Jan 21, 2010 at 10:24 AM, Joseph Sinclair <
>
> >> wrote:
> >
> >> According to the free -t line, you have around 80M of "free" RAM on the
> >> machine. If money is tight then you're fine with the amount of RAM you
> have.
> >> If the system starts to slow down in a few months you may want to
> >> re-investigate.
> >>
> >> BTW, free reports numbers in "k", and the free column is the amount of
> >> memory actually unused after adjustments, so the "-/+ buffers/cache"
> line
> >> shows 81388 K free for program use.
> >>
> >> Mark Phillips wrote:
> >> > LOL.....Thanks to everyone for helping me do a better job of phrasing
> my
> >> > question....;-) and for your good suggestions.
> >> >
> >> > I agree, one can always use more
> >> > (clean) air
> >> > FOOD
> >> > BEER (wine for some)
> >> > RAM, CPU,s, (but maybe not ROM)
> >> >
> >> > I should have said...."Given a miniscule budget with no extra cash
> laying
> >> > around (other than in my pocket or the newspaper class teacher's
> pocket),
> >> I
> >> > am faced with two options to spend money.
> >> > A - $50/year for an additional 2GB of disk space, which is enough for
> the
> >> > next year or so, and we need that disk space for articles and photos.
> >> > B - $109/year for 8GB of additional disk space (don't need all that
> now,
> >> but
> >> > will grow into it), 180 MB of RAM (do I really need it?) and
> additional
> >> > bandwidth that I don't need."
> >> > Both amounts are due up front - ie discounted over the normal monthly
> >> cost
> >> > for up front payment and non-profit status.
> >> >
> >> > The minimum RAM requirement (from the documentation) for a Plone site
> is
> >> > 512MB. But I have run many small sites on less and they work just
> fine.
> >> This
> >> > one is a case in point.
> >> >
> >> > The results of free -t:
> >> >
> >> >             total       used       free     shared    buffers
> cached
> >> > Mem:        368836     363408       5428          0      24248
>  51712
> >> > -/+ buffers/cache:     287448      81388
> >> > Swap:       524280      47180     477100
> >> > Total:      893116     410588     482528

> >> >
> >> > Can someone help me interpret these numbers? Based on "The "-/+
> >> > buffers/cache:" line will tell you how much memory the system is
> >> > taking because nobody else is using it." I would conclude that the OS
> (ie
> >> > the "system") as opposed to the application is using most of the
> memory
> >> > because it can, so the app is not being starved. But I can argue the
> >> other
> >> > way as well, so I am a little lost.
> >> >
> >> > For what it is worth, Plone/Zope are Python beasts. Is there a way to
> see
> >> if
> >> > any of the application is in swap versus RAM? The system does not have
> a
> >> > noticeable lag when pages are accessed - it is not instantaneous, but
> >> faster
> >> > than my Google apps account. ;-)
> >> >
> >> > Thanks!
> >> >
> >> > Mark
> >> >
> >> > On Thu, Jan 21, 2010 at 8:54 AM, <
> >> > > wrote:
> >> >
> >> >> Do I need more air?
> >> >> Do I need more FOOD?
> >> >> Do I need MORE BEER!!!
> >> >>
> >> >> Give more, MORE, MOOOREEEE!!!!
> >> >> Gawd, I need more Prozac too... :)
> >> >>
> >> >> You will never have too much memory, or extrapolating to aviation:
> >> >> The only time I have too much fuel is when the airplane is on fire...
> >> ;-)
> >> >>
> >> >> top alone will only hand you part of the picture.
> >> >> Try:
> >> >> free -t
> >> >> Look at the line:
> >> >> -/+ buffers/cache: XXXX
> >> >>
> >> >> Memory is used by buffers that are there only for efficiency, but
> will
> >> be
> >> >> returned to the system on demand. Sometimes very little used stuff
> will
> >> go
> >> >> to swap, and adding memory will not really help anything (and it
> won't
> >> hurt
> >> >> anything either, other than your checkbook)
> >> >>
> >> >> The "-/+ buffers/cache:" line will tell you how much memory the
> system
> >> is
> >> >> taking because nobody else is using it.
> >> >> YMMV...
> >> >> ET
> >> >>
> >> >> PS: And that "airplane on fire" wisdom is not always true, but works
> for
> >> >> novice pilots...
> >> >> Or:
> >> >> My job is not to teach how to fly.
> >> >> My job is to help you stay alive while you learn... :)
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> Mark Phillips writes:
> >> >>
> >> >>> I have a Zope/Plone 2.5 web site running on Debian on a Linode
> virtual
> >> >> host.
> >> >>> It has grown over the last few years, and now I need to add some
> more
> >> >> disk
> >> >>> space. The site is for a school newspaper, so from August - June,
> >> >> students
> >> >>> add news articles and photos.
> >> >>>
> >> >>> I was also looking at the output of top, and perhaps I need more RAM
> as
> >> >>> well? Top shows I have only 5 MB free out of 368 MB of total RAM,
> but I
> >> >> am
> >> >>> only using 9% of my swap, so perhaps I don't need more RAM. The site
> >> does
> >> >>> not seem slow.
> >> >>>
> >> >>> Tasks:  69 total,   1 running,  68 sleeping,   0 stopped,   0 zombie
> >> >>> Cpu(s):  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:    368836k total,   363364k used,     5472k free,     8316k
> >> buffers
> >> >>> Swap:   524280k total,    46716k used,   477564k free,    67436k
> cached

> >> >>>
> >> >>> Thanks for any suggestions you may have.
> >> >>>
> >> >>> Mark
> >> >> ---------------------------------------------------
> >> >> PLUG-discuss mailing list -
> >> >> To subscribe, unsubscribe, or to change your mail settings:
> >> >> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> >> >>
> >> >
> >> >
> >> >
> ------------------------------------------------------------------------
> >> >
> >> > ---------------------------------------------------
> >> > PLUG-discuss mailing list -
> >> > To subscribe, unsubscribe, or to change your mail settings:
> >> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> >>
> >>
> >> ---------------------------------------------------
> >> PLUG-discuss mailing list -
> >> To subscribe, unsubscribe, or to change your mail settings:
> >> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> >>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss