linux_dsm_epyc7002/include
Ben Woodard 837c787877 [BLOCK] increase size of disk stat counters
The kernel's representation of the disk statistics uses the type unsigned
which is 32b on both 32b and 64b platforms.  Unfortunately, most system
tools that work with these numbers that are exported in /proc/diskstats
including iostat read these numbers into unsigned longs.  This works fine
on 32b platforms and when the number of IO transactions are small on 64b
platforms.  However, when the numbers wrap on 64b platforms & you read the
numbers into unsigned longs, and compare the numbers to previous readings,
then you get an unsigned representation of a negative number.  This looks
like a very large 64b number & gives you bizarre readouts in iostat:

ilc4: Device:    rrqm/s wrqm/s r/s    w/s  rsec/s  wsec/s    rkB/s wkB/s avgrq-sz avgqu-sz   await  svctm  %util
ilc4: sda        5.50   0.00   143.96 0.00 307496983987862656.00 0.00 153748491993931328.00     0.00 2136028725038430.00     7.94   55.12    5.59  80.42

Though fixing iostat in user space is possible, and a quick survey
indicates that several other similar tools also use unsigned longs when
processing /proc/diskstats.  Therefore, it seems like a better approach
would be to extend the length of the disk_stats structure on 64b
architectures to 64b.  The following patch does that.  It should not affect
the operation on 32b platforms.

Signed-off-by: Ben Woodard <woodard@redhat.com>
Cc: Rick Lindsley <ricklind@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jens Axboe <axboe@suse.de>
2006-03-27 09:29:02 +02:00
..
acpi [PATCH] s/;;/;/g 2006-03-24 07:33:24 -08:00
asm-alpha [PATCH] bitops: alpha: use generic bitops 2006-03-26 08:57:11 -08:00
asm-arm [PATCH] bitops: arm: use generic bitops 2006-03-26 08:57:12 -08:00
asm-arm26 [PATCH] bitops: arm26: use generic bitops 2006-03-26 08:57:12 -08:00
asm-cris [PATCH] bitops: cris: use generic bitops 2006-03-26 08:57:12 -08:00
asm-frv [PATCH] bitops: frv: use generic bitops 2006-03-26 08:57:12 -08:00
asm-generic [PATCH] bitops: update include/asm-generic/bitops.h 2006-03-26 08:57:15 -08:00
asm-h8300 [PATCH] bitops: h8300: use generic bitops 2006-03-26 08:57:12 -08:00
asm-i386 [PATCH] bitops: i386: use generic bitops 2006-03-26 08:57:12 -08:00
asm-ia64 [PATCH] bitops: ia64: use generic bitops 2006-03-26 08:57:12 -08:00
asm-m32r [PATCH] bitops: m32r: use generic bitops 2006-03-26 08:57:12 -08:00
asm-m68k [PATCH] m68k: fix undefined reference to generic_find_next_zero_le_bit 2006-03-26 08:57:13 -08:00
asm-m68knommu [PATCH] bitops: m68knommu: use generic bitops 2006-03-26 08:57:13 -08:00
asm-mips [PATCH] bitops: mips: use generic bitops 2006-03-26 08:57:13 -08:00
asm-parisc [PATCH] bitops: parisc: use generic bitops 2006-03-26 08:57:14 -08:00
asm-powerpc [PATCH] bitops: powerpc: use generic bitops 2006-03-26 08:57:14 -08:00
asm-ppc powerpc: Implement accurate task and CPU time accounting 2006-02-24 14:05:56 +11:00
asm-s390 [PATCH] bitops: s390: use generic bitops 2006-03-26 08:57:14 -08:00
asm-sh [PATCH] bitops: sh: make thread_info.flags an unsigned long 2006-03-26 08:57:15 -08:00
asm-sh64 [PATCH] bitops: sh64: use generic bitops 2006-03-26 08:57:14 -08:00
asm-sparc [PATCH] bitops: sparc: use generic bitops 2006-03-26 08:57:14 -08:00
asm-sparc64 [PATCH] bitops: sparc64: use generic bitops 2006-03-26 08:57:14 -08:00
asm-um [PATCH] x86: SMP alternatives 2006-03-23 07:38:04 -08:00
asm-v850 [PATCH] bitops: v850: use generic bitops 2006-03-26 08:57:14 -08:00
asm-x86_64 [PATCH] bitops: x86_64: use generic bitops 2006-03-26 08:57:14 -08:00
asm-xtensa [PATCH] bitops: xtensa: use generic bitops 2006-03-26 08:57:15 -08:00
keys
linux [BLOCK] increase size of disk stat counters 2006-03-27 09:29:02 +02:00
math-emu
media V4L/DVB (3599): Implement new routing commands for wm8775 and cs53l32a. 2006-03-24 16:27:00 -03:00
mtd
net [IPV4]: Aggregate route entries with different TOS values 2006-03-25 01:38:55 -08:00
pcmcia [PATCH] pcmcia: Add macro to match PCMCIA cards by numeric ID and first vendor string 2006-03-01 11:11:26 +01:00
rdma IB/umad: Add support for large RMPP transfers 2006-03-20 10:08:23 -08:00
rxrpc
scsi [PATCH] Make libata not powerdown drivers on PM_EVENT_FREEZE. 2006-03-24 09:51:36 -05:00
sound [PATCH] sound: remove PC98-specific OPL3_HW_OPL3_PC98 2006-03-24 07:33:26 -08:00
video [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00