mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* /proc/stat and disk_io
@ 2001-12-09 16:19 James Stevenson
  2001-12-09 18:04 ` Rene Rebe
  2001-12-09 18:05 ` Daniel Kobras
  0 siblings, 2 replies; 3+ messages in thread
From: James Stevenson @ 2001-12-09 16:19 UTC (permalink / raw)
  To: linux-kernel

Hi

from /proc/stat i get the following

disk_io: (3,0):(167751,94458,3917566,73293,2420568)
(3,1):(59314,45093,2747844,14221,114376)
(11,0):(9855,9855,1258392,0,0)

except the device 11,0 is a cd-reader
and there is a device 11,1 which has been used
is there any reson why the stats dont show up ?
after all it is another disk.

thanks
    James


--------------------------
Mobile: +44 07779080838
http://www.stev.org
  4:10pm  up 1 day, 17:44,  2 users,  load average: 0.08, 0.08, 0.02




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: /proc/stat and disk_io
  2001-12-09 16:19 /proc/stat and disk_io James Stevenson
@ 2001-12-09 18:04 ` Rene Rebe
  2001-12-09 18:05 ` Daniel Kobras
  1 sibling, 0 replies; 3+ messages in thread
From: Rene Rebe @ 2001-12-09 18:04 UTC (permalink / raw)
  To: James Stevenson; +Cc: linux-kernel

On Sun, 9 Dec 2001 16:19:45 -0000
"James Stevenson" <mistral@stev.org> wrote:

> Hi
> 
> >from /proc/stat i get the following
> 
> disk_io: (3,0):(167751,94458,3917566,73293,2420568)
> (3,1):(59314,45093,2747844,14221,114376)
> (11,0):(9855,9855,1258392,0,0)
> 
> except the device 11,0 is a cd-reader
> and there is a device 11,1 which has been used
> is there any reson why the stats dont show up ?
> after all it is another disk.

Linux definetly broken in this area! Linux (2.4) does not report other
any devices over either major 16 or minor 16. e.g. no /dev/hdb or /dev/hdd.

For my 4 IDE disk (on two different controllers) I only get:

disk_io: (3,0):(355075,157636,1744492,197439,2633848)

...

I'm thinking about fixing this on my onw using this patch as base:

http://www.swanson.uklinux.net/patch-diskio-2.4.16-1

> thanks
>     James
> 
> 
> --------------------------
> Mobile: +44 07779080838
> http://www.stev.org
>   4:10pm  up 1 day, 17:44,  2 users,  load average: 0.08, 0.08, 0.02


k33p h4ck1n6
  René

-- 
René Rebe (Registered Linux user: #248718 <http://counter.li.org>)

eMail:    rene.rebe@gmx.net
          rene@rocklinux.org

Homepage: http://www.tfh-berlin.de/~s712059/index.html

Anyone sending unwanted advertising e-mail to this address will be
charged $25 for network traffic and computing time. By extracting my
address from this message or its header, you agree to these terms.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: /proc/stat and disk_io
  2001-12-09 16:19 /proc/stat and disk_io James Stevenson
  2001-12-09 18:04 ` Rene Rebe
@ 2001-12-09 18:05 ` Daniel Kobras
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Kobras @ 2001-12-09 18:05 UTC (permalink / raw)
  To: linux-kernel

On Sun, Dec 09, 2001 at 04:19:45PM -0000, James Stevenson wrote:
> from /proc/stat i get the following
> 
> disk_io: (3,0):(167751,94458,3917566,73293,2420568)
> (3,1):(59314,45093,2747844,14221,114376)
> (11,0):(9855,9855,1258392,0,0)
> 
> except the device 11,0 is a cd-reader
> and there is a device 11,1 which has been used
> is there any reson why the stats dont show up ?
> after all it is another disk.

Both cdroms are accounted, but only into the same slot (11,0). In function
disk_index() at the end of include/linux/genhd.h, you can add a line
	case SCSI_CDROM_MAJOR:
above the line containing SCSI_DISK0_MAJOR, and things will work as expected.
Several more complete patches have been floating around for a while.

Regards,

Daniel.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-12-09 18:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-09 16:19 /proc/stat and disk_io James Stevenson
2001-12-09 18:04 ` Rene Rebe
2001-12-09 18:05 ` Daniel Kobras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®