🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.development
Article #20

Kernel Question: buffer cache

#20
From: Mike Battersby
Date: Sun, 06 Feb 1994 05:57
27 lines
1962 bytes
First things first, a description of my setup.

        80386-40, no copro
        4mb RAM, IDE HD's (single controller), ext2 fs
        ET4000 video card
        vanilla ALPHA-pl14{p,x,z} pl15

Lately I've noticed that the amount of system memory used for the
buffer cache (as reported by 'free' or 'cat /proc/meminfo') is
behaving (at least what I see as) weirdly.  The cache size will
start out at zero, as would be expected, and slowly grow, as is
expected, but once past a certain size, will not shrink again
below that size.  This size is (usually) 1500k, but varies
depending on how many filesystems I have mounted (for example if
I unmount some filesystems, then the size will shrink).

Firstly, is this normal? If so, can somebody explain the reasons
behind this behaviour.

Secondly, if this *is* normal, doesn't such behaviour violate the
reasons for a shared memory between processes/buffer cache?  The
cache will seemingly never shrink below the given size, no matter
what the system is doing (even when it is thrashing like you
wouldn't believe), and I really don't like the idea of permanently
giving up half of my avalailble memory to the buffer cache.

 - Mike
Technical Details
Message-ID: <2j20sa$3tq@harbinger.cc.monash.edu.au>
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!usc!yeshua.marcam.com!zip.eecs.umich.edu!caen!msuinfo!harbinger.cc.monash.edu.au!lindblat.cc.monash.edu.au!ins122a

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,ef664eb2b5cc1599
X-Google-Attributes: gid102983,public
X-Google-Thread: 10c7cf,ef664eb2b5cc1599
X-Google-Attributes: gid10c7cf,public
X-Google-ArrivalTime: 1994-02-06 16:38:01 PST
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!usc!yeshua.marcam.com!zip.eecs.umich.edu!caen!msuinfo!harbinger.cc.monash.edu.au!lindblat.cc.monash.edu.au!ins122a
From: ins122a@lindblat.cc.monash.edu.au (Mike Battersby)
Newsgroups: comp.os.linux.development,aus.computers.linux
Subject: Kernel Question: buffer cache
Date: 6 Feb 1994 05:57:30 GMT
Organization: Monash University
Lines: 29
Message-ID: <2j20sa$3tq@harbinger.cc.monash.edu.au>
NNTP-Posting-Host: lindblat.cc.monash.edu.au