Skip to contentSkip to conversation

Output Virtual Block Device requests information to /proc/xen/vbd

PATCH Satoshi Uchida 3 participants 4 messages Jun 21, 2006

lore
Share & tools
lore
#0 lore raw

Hi, Keir.

Quoted 7 lines
Quoted 4 lines

This patch add /xen/proc/vbd.
This proc file stores counts of I/O requests for VBD. I/O requests is counted for each Domains.

We keep getting complained at for adding stuff to /proc. Shouldn't this go

under the blkback's sysfs directory somewhere?

Quoted 2 lines

-- Keir

Uom.

In my subjective, currently, procfs is used for representing dynamic information such as statistical data, and sysfs is used for representing statical information such as module parameters.
In this case, I think that this I/O information is former, so information is put into procfs in this time.
As similar example, ballon infromation exist in procfs.

Is it better that realizing at sysfs?

Thanks,
Satoshi UCHIDA

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 6 lines · Satoshi Uchida

Uom.

In my subjective, currently, procfs is used for representing dynamic information such as statistical data, and sysfs is used for representing statical information such as module parameters.

/proc is for process information. This stuff definitely belongs in sysfs. It's analogous to /sys/class/net/eth0/statistics/.

Quoted 4 lines

In this case, I think that this I/O information is former, so information is put into procfs in this time.
As similar example, ballon infromation exist in procfs.

The balloon driver shouldn't be using proc.

Regards,

Anthony Liguori

Quoted 12 lines

Is it better that realizing at sysfs?

Thanks,
Satoshi UCHIDA

------------------------------------------------------------------------

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 5 lines · Anthony Liguori
Quoted 3 lines

In my subjective, currently, procfs is used for representing dynamic information such as statistical data, and sysfs is used for representing statical information such as module parameters.

/proc is for process information. This stuff definitely belongs in sysfs. It's analogous to /sys/class/net/eth0/statistics/.

Yes. The patchset looks good and is obviously useful -- we'd like to apply it if this gets fixed.

-- Keir

#3 lore raw
Quoted 8 lines · Keir Fraser
Quoted 5 lines · Anthony Liguori
Quoted 4 lines

In my subjective, currently, procfs is used for representing dynamic information such as statistical data, and sysfs is used for representing
statical information such as module parameters.

Quoted 5 lines
Quoted 2 lines

/proc is for process information. This stuff definitely belongs in sysfs. It's analogous to /sys/class/net/eth0/statistics/.

Yes. The patchset looks good and is obviously useful -- we'd like to apply it if this gets fixed.

Agreed! It's a very common feature request so it'll be great to get this in the tree. This information is sort of available in /sys/block/<backend-dev>/stat but it's not terribly reliable in my experience (it's always zero's for loop devices IIRC).

These patches are missing Signed-Off-By lines too btw. When you resubmit, make sure to include those.

Thanks,

Anthony Liguori

Quoted 1 line

-- Keir