[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: xosview scaling error on DISK throughput



I've had a look at the source for xosview and I don't see how it can
possibly be giving sensible values for disk activity.  It tries to get
the disk i/o data by looking in /proc/stat for a line starting with
'page', but this seems to have vanished in the 2.6 kernel.  Presumably
because disk statistics are now in /proc/diskstats.

(And incidentally,

    // Find the line with 'page'
    stats >> buf;
    while (strncmp(buf, "page", 9))

Why 9?)

One for bugzilla, perhaps?

Ron



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]