From: William Cohen <wcohen@redhat.com>
To: Jake Maul <jakemaul@gmail.com>
Cc: systemtap@sourceware.org
Subject: Re: Linux VFS cache hit rate script
Date: Thu, 21 Apr 2011 22:31:00 -0000 [thread overview]
Message-ID: <4DB0B049.8070806@redhat.com> (raw)
In-Reply-To: <BANLkTi=1d+1QDCJSjNAwt3_yB1_Xh-mfUg@mail.gmail.com>
On 04/21/2011 04:17 PM, Jake Maul wrote:
> New version of the script uploaded to War Stories, incorporating your
> suggested changes. I have no problem with the GPLv2, so I took your
> wording exactly. :)
>
> http://sourceware.org/systemtap/wiki/WSCacheHitRate
>
> Of course there's still the concern about devname "N/A", but I
> clarified the comment so as to make it obvious where I got that
> assumption from. At least then if does turn out to be incorrect, it
> will be obvious that something other than just this one script needs
> to be fixed.
>
> Jake
Hi Jake,
I traced through vfs.stp and found where the "N/A" is coming from:
function bdevname:string(bdev:long)
{
if (bdev == 0)
return "N/A"
...
}
Whether "N/A" always indicated things are cached I don't know. Need to explore further.
Found a possible reason got the overflow for the associative array; there is an associative array used for caching names in vfs.stp:
global __devnames
function __find_bdevname:string(dev:long, bdev:long)
{
if (dev in __devnames)
return __devnames[dev]
else
return __devnames[dev] = bdevname(bdev)
}
The only way that is going to fill up is if there are a lot of different values for dev.
-Will
next prev parent reply other threads:[~2011-04-21 22:31 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-20 19:04 Jake Maul
2011-04-20 20:09 ` William Cohen
2011-04-20 20:46 ` Jake Maul
2011-04-20 20:57 ` Josh Stone
2011-04-20 22:25 ` Jake Maul
2011-04-21 20:17 ` Jake Maul
2011-04-21 22:31 ` William Cohen [this message]
2011-04-21 23:02 ` Jake Maul
2011-04-21 23:46 ` Josh Stone
2011-04-22 19:17 ` Jake Maul
2011-04-22 20:28 ` Josh Stone
2011-04-22 21:47 ` Jake Maul
2011-04-25 21:54 ` Josh Stone
2011-04-26 2:11 ` Jake Maul
2011-04-25 22:53 ` Josh Stone
2011-04-26 1:59 ` Jake Maul
2011-04-26 2:44 ` Josh Stone
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=4DB0B049.8070806@redhat.com \
--to=wcohen@redhat.com \
--cc=jakemaul@gmail.com \
--cc=systemtap@sourceware.org \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).