[740] in arla-drinkers

home help back first fref pref prev next nref lref last post

Cache full

daemon@ATHENA.MIT.EDU (Simon Josefsson)
Mon Apr 5 08:42:20 1999

From owner-arla-drinkers@stacken.kth.se Mon Apr 05 12:42:18 1999
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 21561 invoked from network); 5 Apr 1999 12:42:17 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
  by bloom-picayune.mit.edu with SMTP; 5 Apr 1999 12:42:17 -0000
Received: (from majordom@localhost)
	by sundance.stacken.kth.se (8.8.8/8.8.8) id OAA01205
	for arla-drinkers-list; Mon, 5 Apr 1999 14:35:29 +0200 (MET DST)
Received: from squid.pdc.kth.se (squid.pdc.kth.se [130.237.221.65])
	by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id OAA01201
	for <arla-drinkers@stacken.kth.se>; Mon, 5 Apr 1999 14:35:25 +0200 (MET DST)
Received: (from jas@localhost)
	by squid.pdc.kth.se (8.8.7/8.8.7) id OAA18482;
	Mon, 5 Apr 1999 14:35:23 +0200 (MET DST)
To: arla-drinkers@stacken.kth.se
Subject: Cache full
From: Simon Josefsson <jas@pdc.kth.se>
Date: 05 Apr 1999 13:43:30 +0200
Message-ID: <iluhfqv47j1.fsf@squid.pdc.kth.se>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Lines: 40
User-Agent: Gnus/5.07008 (Pterodactyl Gnus v0.80) Emacs/20.3.6
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk

Arla 0.22, linux 2.2, glibc2.1, redhat5.2.

Hi. When the cache is full Arla doesn't seem to want to discard old
junk to make room for new junk, and almost everything either hang
(presumably waiting for Arla to fetch it) or return ENOSPC.

This happens after 1-2 weeks or so. I can't reproduce it in a newly
restarted arla -- everything works even when the cache is full, as
expected.

OTOH it's quite reproducable otherwise, just put the machine in a
corner for a week or two (running some cron jobs daily which access
AFS quite heavily), and you'll get ENOSPC from lots of syscalls.

Feels like the cache algorithm doesn't find anything to flush.

Sorry if this has been fixed with 0.23, I'll upgrade now.

bash$ cd
bash$ /usr/arla/bin/fs lq
Volume Name            Quota    Used    % Used   Partition
H.jas                 350000  330884       95%<<       41%      <<WARNING
bash$ df -kP
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/hda1            1018298  852971   112716     88%   /
/dev/hda3            3152666  759446  2230161     25%   /scratch
arla                 1048576       0  1048576      0%   /afs
bash$ /usr/arla/bin/fs getcache
Arla is using 102395 of the cache's available 102400 1K byte blocks
(and 8000 of the cache's available 10000 vnodes)
bash$ strace cat ~/.emacs 2>&1 | grep ENOSPC
open("/afs/pdc.kth.se/home/j/jas/.emacs", O_RDONLY) = -1 ENOSPC (No space left on device)
bash$ strace ls
...
open(".", O_RDONLY|O_NONBLOCK|0x10000)  = 3
fstat(3, {st_mode=S_ISUID|07, st_size=0, ...}) = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
lseek(3, 0, SEEK_CUR)                   = 0
getdents(3, ^C
bash$

home help back first fref pref prev next nref lref last post