[OpenAFS] Is it in the cache?
Tim Theisen
ttheisen@tomotherapy.com
Mon, 30 Apr 2007 10:44:15 -0500
Jeffrey,
Thanks for the clarification. It appears that there is no way to tell
what chunks are in the cache.
So, I would guess that a reasonable plan B would be to keep track of the
last time a file was read be each node, and assume that if you were the
last node to read a file, that it would still be in your cache. This
heuristic should work almost all of the time.
...Tim
--
Tim Theisen Lead Research Software Engineer
Phone: +1 608 824 2848 TomoTherapy Incorporated
Fax: +1 608 824 2996 1240 Deming Way
Web: http://www.tomotherapy.com Madison, WI 53717-1954 =20
-----Original Message-----
From: Jeffrey Altman [mailto:jaltman@secure-endpoints.com]=20
Sent: Monday, April 30, 2007 10:11
To: Tim Theisen
Cc: FB; OpenAFS-Discussion
Subject: Re: [OpenAFS] Is it in the cache?
All that tells you is whether or not a stat cache entry exists
for the file. The process of evaluating $FILENAME will create
a stat cache entry. The only way this would fail is when $FILENAME
doesn't exist.
Jeffrey Altman
Tim Theisen wrote:
> Thanks for the tip. This will probably suffice.
>=20
> ...Tim
>
> try this:
>=20
> $ fs getfid $FILENAME
> File $FILENAME ($xxxxxxxx.$yy.$zzzz) contained in volume $xxxxxxxxx
> $ cmdebug -servers localhost -long | grep $xxxxxxxxx.$yy.$zzzz
>=20
> This tells you, if a file is "in any way" in the cache. It will
however
> not tell you, which parts (chunks) of it are stored locally.
>=20
> Regards,
>=20
> Frank
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info