public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jerry McBride <mcbrides9@comcast.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] More memory?
Date: Mon, 6 Dec 2004 12:20:57 -0500	[thread overview]
Message-ID: <200412061220.57998.mcbrides9@comcast.net> (raw)
In-Reply-To: <49bf44f104120608167e0a24a5@mail.gmail.com>

On Monday 06 December 2004 11:16 am, Grant wrote:
> > > Maybe a better way to phrase my question is:  Is it possible to set my
> > > server up so it will use swap when it needs it and then free it back
> > > up when it doesn't need it anymore?  What makes me think that is
> > > necessary is the fact that I see a very snappy response when browsing
> > > my site after a fresh reboot.  After it's been up for awhile, the swap
> > > starts to fill and it slows down.  Rebooting clears out the swap and
> > > the snaps return.
> >
> > Actually, that is the default behaviour.
>
> I'm now using swap again for the first time since my last reboot.
> It's currently at 1036k, but that is guaranteed to keep increasing.
>
> Here's what I don't understand.
>
> total       used       free     shared    buffers     cached
> Mem:           978        731        246          0        164        226
> -/+ buffers/cache:        340        637
> Swap:          494          1        493
>
> If I'm reading that right, I'm only *using* using 340MB.  Why doesn't
> the system get rid of some of the inactive stuff in memory so I don't
> have to use more and more swap and slow down my system?
>
>

Did I miss a previous post? What you don't see is that you are ONLY useing 1 
meg of swapper file... What slow down does that cause?

As for making the kernel use more of the free space in cache.... it will... 
when it needs it. As you load more and more onto the task heap, the buffers 
free space will begin to deminish... same for the free space in the memory 
pool.

As for clearing out swap.... instead of rebooting a perfectly running linux 
box, how about SWAPON/SWAPOFF? See the man pages...
-- 

******************************************************************************
                     Registered Linux User Number 185956
              FSF Associate Member number 2340 since 05/20/2004
             Join me in chat at #linux-users on irc.freenode.net
    Buy an Xbox for $149.00, run linux on it and Microsoft loses $150.00!
    12:10pm  up 57 days, 19:56,  8 users,  load average: 0.10, 0.14, 0.09

--
gentoo-user@gentoo.org mailing list


  reply	other threads:[~2004-12-06 17:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <49bf44f104120306566d7e95cc@mail.gmail.com>
     [not found] ` <1102117306.10326.3.camel@sf.rout.dyndns.org>
     [not found]   ` <49bf44f10412031709175d496@mail.gmail.com>
     [not found]     ` <20041204013213.GA30529@vicerveza.homeunix.net>
     [not found]       ` <49bf44f104120318296c48f892@mail.gmail.com>
2004-12-04 23:49         ` [gentoo-user] More memory? James Colannino
     [not found]         ` <200412040853.22010.uwix@iway.na>
     [not found]           ` <49bf44f104120410162d888ca2@mail.gmail.com>
     [not found]             ` <41B2059F.2010407@pnpitalia.it>
     [not found]               ` <49bf44f10412041057329eda1d@mail.gmail.com>
2004-12-05  1:33                 ` Bastian Balthazar Bux
2004-12-06 16:16           ` Grant
2004-12-06 17:20             ` Jerry McBride [this message]
2004-12-06 17:32             ` Billy
2004-12-06 20:36             ` Uwe Thiem
     [not found]     ` <cor8c2$pgv$1@sea.gmane.org>
2004-12-05  0:27       ` [gentoo-user] " Simon Windsor
2004-12-05  1:39         ` Grant
2004-12-05 12:21           ` Tim Igoe
2004-12-05 18:05             ` Grant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200412061220.57998.mcbrides9@comcast.net \
    --to=mcbrides9@comcast.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox