Date: Thu, 24 Feb 2011 16:37:02 -0800 From: Garrett Cooper <yanegomi@gmail.com> To: freebsd-fs@freebsd.org Subject: Are ru_inblock/ru_oublock in struct rusage used in capturing all block/cluster activity? Message-ID: <AANLkTiko%2BQ2t1Qm_XnoRbnTGa42640ZriDuq_w1%2BbBQJ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi FS folks, I'm trying to get a better understanding of these two statistics recorded by getrusage(2): long ru_inblock; /* block input operations */ long ru_oublock; /* block output operations */ Are the block operations limited to filesystem access on disk, or do they also apply to filesystems not backed by physical media, like memory disks, tmpfs, etc? It looks like it applies to all vnode operations in areas (the kern/vfs_*.c files), so I would assume that it applies to non-physical backed filesystem access as well, but just to be sure I thought I would ask the experts. ru_inblock and ru_oublock summed together compose the ac_io statistic used by acct(2), so I'm curious as to whether or not the utility of acct(2) on non-physical media backed filesystems was intentional. Thanks, -Garrett PS As a bonus question, why is ac_io a float primitive if it's just a sum of two longs?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTiko%2BQ2t1Qm_XnoRbnTGa42640ZriDuq_w1%2BbBQJ>