From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] vtcache exhaustion
Date: Mon, 22 Feb 2010 17:20:55 -0500 [thread overview]
Message-ID: <1971ab47ab615932bad737e1350bc893@ladd.quanstro.net> (raw)
In-Reply-To: <F6965774-9D71-45C1-9D09-841DB3071BF9@9srv.net>
> I've been running a vac-based backup on a few unix systems for a while
> now. A bit over a week ago, one of them started failing with this
> error:
>
> vac: vtcachelocal: asked for block #6289076; only 6288808
> blocks
>
[...]
>
> If a new cache block must be allocated... but the cache is
> filled...
> the
> library prints the score and reference count of every block in
> the
> cache
> and then aborts.
i mention this because it sounds so similar to a bug i found
in ken's fs. i hope this is useful, but it probablly isn't.
if you change an indirect block but not a direct
block, it's possible to miss dumping the direct block if that
block doesn't happen to be cached. this is because the test
was
from cw.c:/^isdirty
if(tag >= Tind1 && tag <= Tmaxind)
/* botch, get these modified */
if(s != Cnone)
return 1;
but i found that this is safer:
/*
* botch: we should mark the parents of modified
* indirect blocks as split-on-dump.
*/
if(tag >= Tind1 && tag <= Tmaxind)
return 2;
a better solution would be to do as the comment suggests.
i think that vac cache.c:/^lumpWalk makes the same sort
of determination about these lines (from the plan 9 version)
cache.c:623,626
if(0)fprint(2, "lumpWalk: %V:%s %d:%d-> %V:%d\n", u->score, lumpState(u->state), u->type, offset, score, type);
v = cacheGetLump(c, score, type, size);
if(v == nil)
return nil;
- erik
next prev parent reply other threads:[~2010-02-22 22:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-22 21:03 Anthony Sorace
2010-02-22 22:20 ` erik quanstrom [this message]
2010-02-23 0:15 ` Russ Cox
2010-02-23 0:54 ` Venkatesh Srinivas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1971ab47ab615932bad737e1350bc893@ladd.quanstro.net \
--to=quanstro@quanstro.net \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).