Thread (5 messages) flat view 5 messages, 4 authors, 2015-02-08

Re: [RFC] implementing tape statistics single file vs multi-file in sysfs

From: "Kai Mäkisara (Kolumbus)"<kai.makisara@kolumbus.fi>
Date: 2015-02-08 08:32:27
Also in: linux-scsi

Possibly related (same subject, not in this thread)

On 8.2.2015, at 4.45, Greg KH [off-list ref] wrote:

On Sat, Feb 07, 2015 at 09:27:05PM -0500, Laurence Oberman wrote:
quoted
Hello
Its not going to be tens of thousands of devices. That count was an
aggregate based on 1000's of servers.
In reality its unlikely to ever be more than 100 tapes drives per
individual Linux kernel instance.
Therefore sysfs will be the valid way to do this and make the data
available to user space.
Even if it is only 2 tape drives, again, what's wrong with using the
existing i/o statistic interfaces that all block devices have?  Don't go
making special one-off interfaces for one type of device if at all
possible.
The tape driver does not have access to the block device i/o statistics because the tapes are not block devices but character devices. They use the Linux block subsystem enough to do i/o but this does not include access to the statistics counters.

The purpose of the suggested text vector format patch is to create statistics that have the same format as the existing i/o statistics that the block devices so that the existing tools can be used with minimal modifications. One alternative is, of course, to tie the st driver more into the Linux block device system. I have looked into this several times but have never seen how to do this in a simple enough way.

Thanks,
Kai
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help