public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.5.44: /proc/stat not reporting all disks statistics
@ 2002-10-22 23:42 venom
  2002-10-23  8:03 ` Daniel Kobras
  0 siblings, 1 reply; 2+ messages in thread
From: venom @ 2002-10-22 23:42 UTC (permalink / raw)
  To: linux-kernel


HI,

I was modifying xosview to support I/O statistics (one graph for each
disk?) with new
/proc/stat, but then I saw that on my IDE system this file
was not reporting statistics from all disks.

I have on this system two disks, primary master and secondary master,
hda and hdc.

In /proc/stat
i see just:

disk_io: (3,0):(24382,16849,158610,7533,382512)

so, I see 22,0 disk (hdc) is somehow missing.

If needed I can check on a scsi system with three disks.

bests

Luigi



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

* Re: 2.5.44: /proc/stat not reporting all disks statistics
  2002-10-22 23:42 2.5.44: /proc/stat not reporting all disks statistics venom
@ 2002-10-23  8:03 ` Daniel Kobras
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Kobras @ 2002-10-23  8:03 UTC (permalink / raw)
  To: venom, linux-kernel

On Wed, Oct 23, 2002 at 01:42:18AM +0200, venom@sns.it wrote:
> I have on this system two disks, primary master and secondary master,
> hda and hdc.
> 
> In /proc/stat
> i see just:
> 
> disk_io: (3,0):(24382,16849,158610,7533,382512)
> 
> so, I see 22,0 disk (hdc) is somehow missing.

By default, the kernel only collects statistics on majors 1 to 16.  If
you want the disks on your second IDE channel to show up, go to
include/linux/kernel_stat.h and raise the limit DK_MAX_MAJOR to 22 or
higher.  (Assuming 2.5 stats still work the same as in 2.4, that is.)

Daniel.


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

end of thread, other threads:[~2002-10-23  7:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-22 23:42 2.5.44: /proc/stat not reporting all disks statistics venom
2002-10-23  8:03 ` Daniel Kobras

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