All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem with diskstats (kernel 2.6.15-gentoo-r1)
@ 2006-04-01  7:39 Toon van der Pas
  0 siblings, 0 replies; 3+ messages in thread
From: Toon van der Pas @ 2006-04-01  7:39 UTC (permalink / raw)
  To: linux-kernel, mike.miller

Hi,

This morning I discovered a strange problem with the output of
/proc/diskstats; the cciss driver only produces the first 4 fields:

# cat /proc/diskstats
   2    0 fd0 0 0 0 0 0 0 0 0 0 0 0
   1    0 ram0 0 0 0 0 0 0 0 0 0 0 0
   1    1 ram1 0 0 0 0 0 0 0 0 0 0 0
   1    2 ram2 0 0 0 0 0 0 0 0 0 0 0
   1    3 ram3 0 0 0 0 0 0 0 0 0 0 0
   1    4 ram4 0 0 0 0 0 0 0 0 0 0 0
   1    5 ram5 0 0 0 0 0 0 0 0 0 0 0
   1    6 ram6 0 0 0 0 0 0 0 0 0 0 0
   1    7 ram7 0 0 0 0 0 0 0 0 0 0 0
   1    8 ram8 0 0 0 0 0 0 0 0 0 0 0
   1    9 ram9 0 0 0 0 0 0 0 0 0 0 0
   1   10 ram10 0 0 0 0 0 0 0 0 0 0 0
   1   11 ram11 0 0 0 0 0 0 0 0 0 0 0
   1   12 ram12 0 0 0 0 0 0 0 0 0 0 0
   1   13 ram13 0 0 0 0 0 0 0 0 0 0 0
   1   14 ram14 0 0 0 0 0 0 0 0 0 0 0
   1   15 ram15 0 0 0 0 0 0 0 0 0 0 0
   7    0 loop0 0 0 0 0 0 0 0 0 0 0 0
   7    1 loop1 0 0 0 0 0 0 0 0 0 0 0
   7    2 loop2 0 0 0 0 0 0 0 0 0 0 0
   7    3 loop3 0 0 0 0 0 0 0 0 0 0 0
   7    4 loop4 0 0 0 0 0 0 0 0 0 0 0
   7    5 loop5 0 0 0 0 0 0 0 0 0 0 0
   7    6 loop6 0 0 0 0 0 0 0 0 0 0 0
   7    7 loop7 0 0 0 0 0 0 0 0 0 0 0
 104    0 cciss/c0d0 847389 32332 0 2982364 1619046 4086174 0
52598252 0 12069816 55580352
 104    1 cciss/c0d0p1 554 52382 7 20
 104    2 cciss/c0d0p2 29 232 42 336
 104    3 cciss/c0d0p3 84233 5811794 1516187 12129496
 104    4 cciss/c0d0p4 795049 17425244 4190632 33525064
 104   16 cciss/c0d1 86563628 212593 0 655297532 13528298 14360980 0
1485869084 502 371162916 2142684840
 104   17 cciss/c0d1p1 86776123 1102284661 27890200 223121616
   3    0 hda 0 0 0 0 0 0 0 0 0 0 0
 254    0 dm-0 0 0 0 0 0 0 0 0 0 0 0
 254    1 dm-1 0 0 0 0 0 0 0 0 0 0 0
 254    2 dm-2 0 0 0 0 0 0 0 0 0 0 0
 254    3 dm-3 0 0 0 0 0 0 0 0 0 0 0
 254    4 dm-4 0 0 0 0 0 0 0 0 0 0 0
 254    5 dm-5 0 0 0 0 0 0 0 0 0 0 0
 254    6 dm-6 0 0 0 0 0 0 0 0 0 0 0
 254    7 dm-7 0 0 0 0 0 0 0 0 0 0 0

Maybe the cciss maintainer can comment?
Regards,
Toon.

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: Problem with diskstats (kernel 2.6.15-gentoo-r1)
@ 2006-04-03 13:35 Stephen Cameron
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Cameron @ 2006-04-03 13:35 UTC (permalink / raw)
  To: linux-kernel


Toon van der Pas wrote:
 
> This morning I discovered a strange problem with the output of
> /proc/diskstats; the cciss driver only produces the first 4 fields:
>

It's working correctly so far as I can tell. 
Check block/genhd.c, diskstat_show().

It prints per-disk and per-partition information.
There are 4 fields printed for each partition, but more
fields per each disk.  (check your output again, and note
the lines for cciss/c0d0 and cciss/c0d1 (the disks) vs.
the lines for cciss/c0d?p? (the partitions.) Most of your 
devices in there don't have any partition information so 
you just see the per-disk lines, not the per-partition lines
since there are no partitions.  Cciss looks different
than the others because you actually have partitions on that 
device.

-- steve



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 3+ messages in thread
* RE: Problem with diskstats (kernel 2.6.15-gentoo-r1)
@ 2006-04-04 13:51 Miller, Mike (OS Dev)
  0 siblings, 0 replies; 3+ messages in thread
From: Miller, Mike (OS Dev) @ 2006-04-04 13:51 UTC (permalink / raw)
  To: Toon van der Pas, linux-kernel

> -----Original Message-----
> From: Toon van der Pas [mailto:toon@hout.vanvergehaald.nl] 
> Sent: Saturday, April 01, 2006 1:39 AM
> To: linux-kernel@vger.kernel.org; Miller, Mike (OS Dev)
> Subject: Problem with diskstats (kernel 2.6.15-gentoo-r1)
> 
> Hi,
> 
> This morning I discovered a strange problem with the output 
> of /proc/diskstats; the cciss driver only produces the first 4 fields:
> 
> # cat /proc/diskstats
>    2    0 fd0 0 0 0 0 0 0 0 0 0 0 0
>    1    0 ram0 0 0 0 0 0 0 0 0 0 0 0
---
---
---
>    7    6 loop6 0 0 0 0 0 0 0 0 0 0 0
>    7    7 loop7 0 0 0 0 0 0 0 0 0 0 0
>  104    0 cciss/c0d0 847389 32332 0 2982364 1619046 4086174 0
> 52598252 0 12069816 55580352
>  104    1 cciss/c0d0p1 554 52382 7 20
>  104    2 cciss/c0d0p2 29 232 42 336
>  104    3 cciss/c0d0p3 84233 5811794 1516187 12129496
>  104    4 cciss/c0d0p4 795049 17425244 4190632 33525064
>  104   16 cciss/c0d1 86563628 212593 0 655297532 13528298 14360980 0
> 1485869084 502 371162916 2142684840
>  104   17 cciss/c0d1p1 86776123 1102284661 27890200 223121616
>    3    0 hda 0 0 0 0 0 0 0 0 0 0 0
>  254    0 dm-0 0 0 0 0 0 0 0 0 0 0 0
>  254    1 dm-1 0 0 0 0 0 0 0 0 0 0 0
>  254    2 dm-2 0 0 0 0 0 0 0 0 0 0 0
>  254    3 dm-3 0 0 0 0 0 0 0 0 0 0 0
>  254    4 dm-4 0 0 0 0 0 0 0 0 0 0 0
>  254    5 dm-5 0 0 0 0 0 0 0 0 0 0 0
>  254    6 dm-6 0 0 0 0 0 0 0 0 0 0 0
>  254    7 dm-7 0 0 0 0 0 0 0 0 0 0 0
> 
> Maybe the cciss maintainer can comment?

I'm not sure what to comment. I've not made any changes for diskstats to
work with cciss. Or is your concern that no other devices seem to work?

mikem

> Regards,
> Toon.
> 

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

end of thread, other threads:[~2006-04-04 13:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-01  7:39 Problem with diskstats (kernel 2.6.15-gentoo-r1) Toon van der Pas
  -- strict thread matches above, loose matches on Subject: below --
2006-04-03 13:35 Stephen Cameron
2006-04-04 13:51 Miller, Mike (OS Dev)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.