Steve Dickson wrote:
Thanks Greg for taking a look...
Greg Banks wrote:
Kevin Constantine wrote:
Maybe you can smooth out this difference, and make the code simpler and
cleaner, by making the output always be exactly two columns, one for the
label and one for the value. Then your earlier quoted example would be
something like
nfs v3 client total: 213
nfs v3 client null: 0
[...]
nfs v3 client readdirplus: 0
nfs v3 client fsstat: 126
nfs v3 client fsinfo: 0
nfs v3 client pathconf: 0
nfs v3 client commit: 0
nfs v3 server total: 0
nfs v3 server null: 0
[...]
nfs v3 server commit: 0
Question... Now why are we *not* using the information from /proc/self/mountstats
and doing this per mount?
nfsstat is already parsing /proc/net/rpc/nfs[d]. Re-writing it to parse
/proc/self/mountstats seems like it should be a separate undertaking.
Also, can I assume (not looking at the patches yet) that this same type info
will be available v2 and v4?
Yes. v2 and v4 will look the same. Here's the new format.
nfs v3 server total: 0
------------- ------------- --------
nfs v3 server null: 0
nfs v3 server getattr: 0
nfs v3 server setattr: 0
nfs v3 server lookup: 0
nfs v3 server access: 0
nfs v3 server readlink: 0
nfs v3 server read: 0
nfs v3 server write: 0
nfs v3 server create: 0
nfs v3 server mkdir: 0
nfs v3 server symlink: 0
nfs v3 server mknod: 0
nfs v3 server remove: 0
nfs v3 server rmdir: 0
nfs v3 server rename: 0
nfs v3 server link: 0
nfs v3 server readdir: 0
nfs v3 server readdirplus: 0
nfs v3 server fsstat: 0
nfs v3 server fsinfo: 0
nfs v3 server pathconf: 0
nfs v3 server commit: 0
nfs v3 client total: 203
------------- ------------- --------
nfs v3 client null: 0
nfs v3 client getattr: 23
nfs v3 client setattr: 7
nfs v3 client lookup: 7
nfs v3 client access: 0
nfs v3 client readlink: 0
nfs v3 client read: 7
nfs v3 client write: 21
nfs v3 client create: 7
nfs v3 client mkdir: 0
nfs v3 client symlink: 0
nfs v3 client mknod: 0
nfs v3 client remove: 7
nfs v3 client rmdir: 0
nfs v3 client rename: 0
nfs v3 client link: 0
nfs v3 client readdir: 0
nfs v3 client readdirplus: 0
nfs v3 client fsstat: 124
nfs v3 client fsinfo: 0
nfs v3 client pathconf: 0
nfs v3 client commit: 0
Finally, does it really make sense to show a stats with zero occurrences?
Why not just show what has happen instead of including what has not happen?
The reason I left the zeroed stats in the display is so that the output
stats fairly constant with the values being the only information that
changes. If lines are popping in and out, it makes it difficult to keep
an eye on what you really care about.
steved.
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html