> Jamey Maze writes:
>> My SPARC2 was recently upgraded and we had a special partition set aside for
>> the AFS cache. Everything was working fine 'till this afternoon when I
>> started getting "/cache: write failed, file system is full" messages. I did
>> a df and saw
>>
>> tdum:/# df /cache
>> Filesystem            kbytes    used   avail capacity  Mounted on
>> /dev/sd3d              55648   50924       0   102%    /cache
>>
>> My /usr/vice/etc/cacheinfo says
>>
>> /afs:/cache:55000
>>
>> So I reduced the cache size until things started working correctly. I tried
>> 54000, 50000, and finally 45000 before things straightened out. Any ideas?

>Mark Forster,  Imperial College Centre for Computing Services.
> We experienced a similar problem with a sun4c running Sunos 4.1.2 and
> afs 3.1a, and with it's cache in a dedicated partition.  The overflow
> occurred several times when a safety margin of ca. 10%
> was left between the cache size and total available space.
> We raised the margin to 15% and the problem has not yet recurred.

When you create a filesystem a portion of it is set aside (by default, 10%)
and can only be used by root.  So if you have a filesys with a nominal size
of 55648KB, then 5565KB is "reserved", leaving you with 50083KB usable.
It has been my experience that you can set your cachesize very close to
this number (99% for example, 49582).  I have a very small disk (104MB)
on my workstation, so here are some of the things I found which could give
me more AFS cache (your mileage may vary)...  I checked the number of inodes
used with "df -i" and found it never went above 22% so I recreated my
cache filesystem with half as many inodes and only a 5% disk reserve (as
described in "man newfs") and set my cache size to 99% of the resulting
size (it was 90% of the old size).  This raised my cache from ~18MB to ~30MB.

John
-------------------------------------------------------------------------------
John Hascall                        An ill-chosen word is the fool's messenger.
Project Vincent
Iowa State University Computation Center                       [EMAIL PROTECTED]
Ames, IA  50011                                                  (515) 294-9551

Reply via email to