9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Anthony Sorace <a@9srv.net>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] vtcache exhaustion
Date: Mon, 22 Feb 2010 16:03:42 -0500	[thread overview]
Message-ID: <F6965774-9D71-45C1-9D09-841DB3071BF9@9srv.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 1810 bytes --]

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

Adding -v to the vac invocation, it seems to be failing in the same
place each
night. The last file listed is 12k, the next is 13k.

I'm running vac with -a to get the dump-like hierarchy. While the size
of my
current backup set is not much larger than the months of successful
runs, there
were a few days right before the failure when part of a large video
archive was
being accidentally included. The total backup size for those days was
about
10GB, but with low churn. The currently-failing backups have passed
the part
of the filesystem where that data is stored and have correctly omitted
it.

The last paragraph of venti-cache(3) (on p9p, although venti-cache(2)
reads
the same here) includes a few interesting statements. First:

	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.

This isn't happening; I get only the above "asked for" line. I don't
see in the
source anywhere this *ought* to be happening, either. Is the man page
simply
out of date? Was this pulled at some point? It seems like it'd be
helpful.

The same paragraph also notes:

	A full cache indicates either that the cache is too small, or, more
	commonly, that cache blocks are being leaked.

I've had a hard time tracking blocks through their local vs. global
states. Any
tips for tracking down any potential leaks? To get limping along
again, ought it
be safe to simply bump up the size of the cache in the vacfsopen call?

Anthony Sorace
Strand 1


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 201 bytes --]

             reply	other threads:[~2010-02-22 21:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-22 21:03 Anthony Sorace [this message]
2010-02-22 22:20 ` erik quanstrom
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=F6965774-9D71-45C1-9D09-841DB3071BF9@9srv.net \
    --to=a@9srv.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).