Subject: Re: ccd
To: Tom T. Thai <tomthai@future.net>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: current-users
Date: 06/13/1997 10:56:27
On Fri, 13 Jun 1997 03:51:03 -0500 (CDT)
"Tom T. Thai" <tomthai@future.net> wrote:
> I did a test with my ccd partition.. by rm -rf /var/spool/news/*
> shown below are some stats.. "freelist misses" are way high.. and it's
> not done removing all the files at this point yet..
>
> # df -k
> Filesystem 1K-blocks Used Avail Capacity Mounted on
> /dev/sd0a 18999 10356 7693 57% /
> /dev/sd0e 191383 92107 89706 51% /usr
> /dev/sd0f 708532 193036 480069 29% /var
> /dev/ccd0d 3895084 529744 3170585 14% /var/spool/news
> # ccdconfig -s
> Statistics for ccd0:
> freelist count: 14
> freelist hiwater: 16
> freelist misses: 18360
> ccdbuf allocations: 331151
Ah, if that is the case, you want to rebuid your kernel, with the following
option:
options CCDNBUF=xx
...you might try setting it to 16, which would give you a freelist hiwater
of 32 (if you have 2 components).
...you can also patch that value with gdb ... it's an initialized variable
called "ccdnbuf". That way you don't have to rebuild while you're finding
the right value to use.. just reboot :-)
Heh, actually, you could just ccdconfig -u, patch, then ccdconfig -c :-)
Jason R. Thorpe thorpej@nas.nasa.gov
NASA Ames Research Center Home: 408.866.1912
NAS: M/S 258-6 Work: 415.604.0935
Moffett Field, CA 94035 Pager: 415.428.6939