[PATCH] bootcharts diskstat support (was Re: boot the eeepc in 5 seconds)

Harald Welte laforge at openmoko.org
Fri Oct 24 09:35:28 CEST 2008


On Fri, Oct 24, 2008 at 02:23:32AM +0200, Alessandro Iurlano wrote:
> On Fri, Oct 24, 2008 at 1:51 AM, Adrian-Ken Rueegsegger <ken at gmx.ch> wrote:
> 
> >
> > > I've noticed that Alessandro complains there are no disk (flash) usage
> > > statistics in bootcharts.  I've cooked up an (untested) patch to fix this
> > for
> > > both mtd and mmcblk devices:
> >
> > Thanks for the patch. Disk throughput/utilization is still not showing
> > up though. AFAIK mtd devices do not write anything to /proc/diskstats so
> > support for that would need to be added to the kernel in order to have
> > such statistics.
> 
> 
> Hi all!
> Yes, the thing that I noticed was that /proc/diskstats has no value for the
> mtd devices and thus bootchart cannot show anything at all. 

Why does my GTA02 look like this, then:

root at om-gta02:~# cat /proc/diskstats 
   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
  31    0 mtdblock0 19 493 4096 1995 0 0 0 0 0 790 1995
  31    1 mtdblock1 0 0 0 0 0 0 0 0 0 0 0
  31    2 mtdblock2 0 0 0 0 0 0 0 0 0 0 0
  31    3 mtdblock3 0 0 0 0 0 0 0 0 0 0 0
  31    4 mtdblock4 0 0 0 0 0 0 0 0 0 0 0
  31    5 mtdblock5 0 0 0 0 0 0 0 0 0 0 0
  31    6 mtdblock6 0 0 0 0 0 0 0 0 0 0 0
 179    0 mmcblk0 3733 2094 91415 44000 868 772 8786 100110 0 25405 144070
 179    1 mmcblk0p1 37 65 0 0
 179    2 mmcblk0p2 5776 91238 1675 8786

-- 
- Harald Welte <laforge at openmoko.org>          	        http://openmoko.org/
============================================================================
Software for the world's first truly open Free Software mobile phone



More information about the devel mailing list