linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* VM: Buffer vs. Cache
@ 2001-06-08 11:23 Martin.Knoblauch
  2001-06-08 12:10 ` Jonathan Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Martin.Knoblauch @ 2001-06-08 11:23 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 995 bytes --]

Hi,

 just being curious. Since 2.4.4, I am watching my systems memory
behaviour a bit:-) Just recently I realized the following: in the
evening I leave my 128MB system at about 20 MB, 2 MB Buffered and 100 MB
Cached (plus som 40 MB unneccesary swap :-)). When I come back in the
morning, Used is still at 20 MB (a bit down maybe) but Buffered is 50 MB
and Cached is 55 MB. For a few minutes the system is definitely more
sluggish than in the evening. Something I can excuse before my first cup
of coffe anyway...

 So, what actually is the difference between Buffered and Cached.
Apparently quite a lot of the pages that are Cached in the evening are
Buffered 9 houres later.

Thanks
Martin
-- 
------------------------------------------------------------------
Martin Knoblauch         |    email:  Martin.Knoblauch@TeraPort.de
TeraPort GmbH            |    Phone:  +49-89-510857-309
C+ITS                    |    Fax:    +49-89-510857-111
http://www.teraport.de   |    Mobile: +49-170-4904759

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Card for Martin.Knoblauch --]
[-- Type: text/x-vcard; charset=us-ascii; name="Martin.Knoblauch.vcf", Size: 375 bytes --]

begin:vcard 
n:Knoblauch;Martin
tel;cell:+49-170-4904759
tel;fax:+49-89-510857-111
tel;work:+49-89-510857-309
x-mozilla-html:FALSE
url:http://www.teraport.de
org:TeraPort GmbH;C+ITS
adr:;;Garmischer Straße 4;München;Bayern;D-80339;Germany
version:2.1
email;internet:Martin.Knoblauch@TeraPort.de
title:Senior System Engineer
x-mozilla-cpt:;-7008
fn:Martin Knoblauch
end:vcard

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: VM: Buffer vs. Cache
  2001-06-08 11:23 VM: Buffer vs. Cache Martin.Knoblauch
@ 2001-06-08 12:10 ` Jonathan Morton
  2001-06-19  7:27   ` Martin.Knoblauch
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Morton @ 2001-06-08 12:10 UTC (permalink / raw)
  To: Martin.Knoblauch, linux-kernel

> just being curious. Since 2.4.4, I am watching my systems memory
>behaviour a bit:-) Just recently I realized the following: in the
>evening I leave my 128MB system at about 20 MB, 2 MB Buffered and 100 MB
>Cached (plus som 40 MB unneccesary swap :-)). When I come back in the
>morning, Used is still at 20 MB (a bit down maybe) but Buffered is 50 MB
>and Cached is 55 MB. For a few minutes the system is definitely more
>sluggish than in the evening. Something I can excuse before my first cup
>of coffe anyway...
>
> So, what actually is the difference between Buffered and Cached.
>Apparently quite a lot of the pages that are Cached in the evening are
>Buffered 9 houres later.

Think about what happens in the meantime.  Most distros install maintenance
scripts which run late at night (usually at midnight and/or 4am), which
perform heavy disk activity as they update databases and scan for
file-permissions security holes.  Heavy disk activity usually means an
increase in buffer utilisation.  Since most files are only "touched" once,
the cache is shrunk as it aren't being used very much.

--------------------------------------------------------------
from:     Jonathan "Chromatix" Morton
mail:     chromi@cyberspace.org  (not for attachments)

The key to knowledge is not to rely on people to teach you it.

GCS$/E/S dpu(!) s:- a20 C+++ UL++ P L+++ E W+ N- o? K? w--- O-- M++$ V? PS
PE- Y+ PGP++ t- 5- X- R !tv b++ DI+++ D G e+ h+ r++ y+(*)



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: VM: Buffer vs. Cache
  2001-06-08 12:10 ` Jonathan Morton
@ 2001-06-19  7:27   ` Martin.Knoblauch
  0 siblings, 0 replies; 3+ messages in thread
From: Martin.Knoblauch @ 2001-06-19  7:27 UTC (permalink / raw)
  To: Jonathan Morton; +Cc: linux-kernel

Jonathan Morton wrote:
> 
> >
> > So, what actually is the difference between Buffered and Cached.
> >Apparently quite a lot of the pages that are Cached in the evening are
> >Buffered 9 houres later.
> 
> Think about what happens in the meantime.  Most distros install maintenance
> scripts which run late at night (usually at midnight and/or 4am), which
> perform heavy disk activity as they update databases and scan for
> file-permissions security holes.  Heavy disk activity usually means an
> increase in buffer utilisation.  Since most files are only "touched" once,
> the cache is shrunk as it aren't being used very much.
> 

 thanks to all who set me straight. Should have thought of the nightly
stuff myself.

Martin
-- 
------------------------------------------------------------------
Martin Knoblauch         |    email:  Martin.Knoblauch@TeraPort.de
TeraPort GmbH            |    Phone:  +49-89-510857-309
C+ITS                    |    Fax:    +49-89-510857-111
http://www.teraport.de   |    Mobile: +49-170-4904759

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-06-19  7:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-08 11:23 VM: Buffer vs. Cache Martin.Knoblauch
2001-06-08 12:10 ` Jonathan Morton
2001-06-19  7:27   ` Martin.Knoblauch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).