For better observability, the ufs_directio_kstat should be made KSTAT_TYPE_NAMED instead of KSTAT_TYPE_RAW. Currently, users have no visibility into UFS DIO to see if it is functioning properly. kstat(1M) cannot see the ufs_directio_kstats as it is currently KSTAT_TYPE_RAW.
----
oss-bite-size
xxxxx@xxxxx.com 2005-06-16 12:31:14 GMT
Work Around
xxxxx@xxxxx.com 2003-10-07
workaround Steve Hahn posted in the email thread which resulted in this rfe:
On Solaris 9 and later, you can easily get this information via mdb(1):
# mdb -k
Loading modules: [ unix krtld genunix ip usba s1394 nca ufs_log sppp
nfs ptm ipc random ]
> ufs_directio_kstats::print
{
logical_reads = 0
phys_reads = 0
hole_reads = 0
nread = 0
logical_writes = 0x4
phys_writes = 0xc
nwritten = 0x100000
nflushes = 0
}