* Disk IO statistics still buggy @ 2002-07-04 11:52 Jochen Suckfuell 2002-07-04 11:59 ` Jochen Suckfuell 2002-07-04 18:31 ` Adrian Bunk 0 siblings, 2 replies; 13+ messages in thread From: Jochen Suckfuell @ 2002-07-04 11:52 UTC (permalink / raw) To: Linux Kernel Hi! The IO statistics displayed in /proc/partitions are still buggy, because after some time, the value for the currently running requests gets too high or too low (see the archives, look for "/proc/partitions"). Is anyone working on a fix? Or does someone have an idea where the error might occur? Which parts of the kernel play a role in starting/stopping block IO requests (that are not part of ll_rw_blk.c) and might not handle the accounting correctly? I'd like to fix this and would appreciate any pointers, since after a first look there is no obvious error in ll_rw_blk.c . Thanks in advance, Jochen Suckfuell ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Disk IO statistics still buggy 2002-07-04 11:52 Disk IO statistics still buggy Jochen Suckfuell @ 2002-07-04 11:59 ` Jochen Suckfuell 2002-07-04 18:31 ` Adrian Bunk 1 sibling, 0 replies; 13+ messages in thread From: Jochen Suckfuell @ 2002-07-04 11:59 UTC (permalink / raw) To: Linux Kernel > The IO statistics displayed in /proc/partitions are still buggy, because > after some time, the value for the currently running requests gets too > high or too low (see the archives, look for "/proc/partitions"). I forgot: This is on all recent 2.4 kernels; I can't tell for 2.5. Bye Jochen ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Disk IO statistics still buggy 2002-07-04 11:52 Disk IO statistics still buggy Jochen Suckfuell 2002-07-04 11:59 ` Jochen Suckfuell @ 2002-07-04 18:31 ` Adrian Bunk 2002-07-06 4:15 ` Bill Davidsen 1 sibling, 1 reply; 13+ messages in thread From: Adrian Bunk @ 2002-07-04 18:31 UTC (permalink / raw) To: Jochen Suckfuell; +Cc: Linux Kernel On Thu, 4 Jul 2002, Jochen Suckfuell wrote: > Hi! Hi Jochen! > The IO statistics displayed in /proc/partitions are still buggy, because > after some time, the value for the currently running requests gets too > high or too low (see the archives, look for "/proc/partitions"). > > Is anyone working on a fix? >... Marcelos' BK repository (that will become 2.4.19-rc2) includes a patch to remove these statistics completely from /proc/partitions... > Thanks in advance, > > Jochen Suckfuell cu Adrian -- You only think this is a free country. Like the US the UK spends a lot of time explaining its a free country because its a police state. Alan Cox ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Disk IO statistics still buggy 2002-07-04 18:31 ` Adrian Bunk @ 2002-07-06 4:15 ` Bill Davidsen 2002-07-06 7:48 ` Andries Brouwer 0 siblings, 1 reply; 13+ messages in thread From: Bill Davidsen @ 2002-07-06 4:15 UTC (permalink / raw) To: Adrian Bunk; +Cc: Jochen Suckfuell, Linux Kernel On Thu, 4 Jul 2002, Adrian Bunk wrote: > On Thu, 4 Jul 2002, Jochen Suckfuell wrote: > > > Hi! > > Hi Jochen! > > > The IO statistics displayed in /proc/partitions are still buggy, because > > after some time, the value for the currently running requests gets too > > high or too low (see the archives, look for "/proc/partitions"). > > > > Is anyone working on a fix? > >... > Marcelos' BK repository (that will become 2.4.19-rc2) includes a patch to > remove these statistics completely from /proc/partitions... Is this the new Linux way of life? Removing modules is hard, GET RID OF THE FEATURE! Stats in /proc/partitions are not always correct, GET RID OF THE FEATURE! The IDE support in 2.5 sucks rocks off the bottom of the ocean, is that next? To the point, the stats are there, there are used by many of the widely used distributions, this is supposed to be stable, that's the excuse for not adding features, how can that justify taking out a feature? That's one of the useful things for determining which (if any) partitions have enough traffic to be best candidates for a separate drive. Yes I know there are other more complex ways than looking at human readable numbers. Why is that desirable? Why not fix the feature (I don't agree it's all that far off in most cases). -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc Doing interesting things with little computers since 1979. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Disk IO statistics still buggy 2002-07-06 4:15 ` Bill Davidsen @ 2002-07-06 7:48 ` Andries Brouwer 2002-07-06 13:42 ` Thunder from the hill 0 siblings, 1 reply; 13+ messages in thread From: Andries Brouwer @ 2002-07-06 7:48 UTC (permalink / raw) To: Bill Davidsen; +Cc: Adrian Bunk, Jochen Suckfuell, Linux Kernel On Sat, Jul 06, 2002 at 12:15:47AM -0400, Bill Davidsen wrote: > > Marcelos' BK repository (that will become 2.4.19-rc2) includes a patch to > > remove these statistics completely from /proc/partitions... > > Is this the new Linux way of life? Removing modules is hard, GET RID OF > THE FEATURE! Stats in /proc/partitions are not always correct, GET RID OF > THE FEATURE! Shouting and exclamation marks - a bad sign. You are mistaken. This has never been a feature. It is not in 2.4.18, and it looks like it will not be in 2.4.19. It is in some vendor kernels, but it is ugly and causes various problems. If somebody cares about having statistics she should submit a patch adding /proc/diskstat. Andries ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Disk IO statistics still buggy 2002-07-06 7:48 ` Andries Brouwer @ 2002-07-06 13:42 ` Thunder from the hill 2002-07-09 17:00 ` [PATCH] " Jochen Suckfuell 0 siblings, 1 reply; 13+ messages in thread From: Thunder from the hill @ 2002-07-06 13:42 UTC (permalink / raw) To: Bill Davidsen Cc: Andries Brouwer, Adrian Bunk, Jochen Suckfuell, Linux Kernel Hi, On Sat, Jul 06, 2002 at 12:15:47AM -0400, Bill Davidsen wrote: > > Marcelos' BK repository (that will become 2.4.19-rc2) includes a patch to > > remove these statistics completely from /proc/partitions... > > Is this the new Linux way of life? Removing modules is hard, GET RID OF > THE FEATURE! Stats in /proc/partitions are not always correct, GET RID OF > THE FEATURE! You misunderstood. It was nothing incorrect about the stats in /proc/partitions, it was just moved because it just didn't belong into /proc/partitions. Regards, Thunder -- (Use http://www.ebb.org/ungeek if you can't decode) ------BEGIN GEEK CODE BLOCK------ Version: 3.12 GCS/E/G/S/AT d- s++:-- a? C++$ ULAVHI++++$ P++$ L++++(+++++)$ E W-$ N--- o? K? w-- O- M V$ PS+ PE- Y- PGP+ t+ 5+ X+ R- !tv b++ DI? !D G e++++ h* r--- y- ------END GEEK CODE BLOCK------ ^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH] Re: Disk IO statistics still buggy 2002-07-06 13:42 ` Thunder from the hill @ 2002-07-09 17:00 ` Jochen Suckfuell 2002-07-11 21:27 ` Marcelo Tosatti 2002-07-12 5:46 ` Jens Axboe 0 siblings, 2 replies; 13+ messages in thread From: Jochen Suckfuell @ 2002-07-09 17:00 UTC (permalink / raw) To: Thunder from the hill, Marcelo Tosatti Cc: Bill Davidsen, Andries Brouwer, Adrian Bunk, Jochen Suckfuell, Linux Kernel Hi! On Sat, Jul 06, 2002 at 07:42:42AM -0600, Thunder from the hill wrote: > On Sat, Jul 06, 2002 at 12:15:47AM -0400, Bill Davidsen wrote: > > > Marcelos' BK repository (that will become 2.4.19-rc2) includes a patch to > > > remove these statistics completely from /proc/partitions... > > > > Is this the new Linux way of life? Removing modules is hard, GET RID OF > > THE FEATURE! Stats in /proc/partitions are not always correct, GET RID OF > > THE FEATURE! > > You misunderstood. It was nothing incorrect about the stats in > /proc/partitions, it was just moved because it just didn't belong into > /proc/partitions. And it hasn't been removed either. Only the output has been removed; the data is still collected. Meanwhile I found the bug that leads to wrong ios_in_flight values on SCSI systems: The accounting was done on a copy of the request _after_ the request has been dequeued and the irq_request_lock released. I fixed this by taking this lock again while calling the accounting function (see the patch below). ** This patch is relevant regardless where the statistics will finally be printed. ** One issue is still left: on my non-SCSI machine, the ios_in_flight value is at -1 when although requests are running. It doesn't get any more wrong than that it seems, and I'm not sure where that happened. Maybe something went wrong when initializing this value at boot time? I have a workaround that corrects negative ios_in_flight values to zero each time /proc/partitions is read. After further testing I will post it to the list. Bye Jochen Suckfüll -- Jochen Suckfuell --- http://www.suckfuell.net/jochen/ --- --- linux/drivers/scsi/scsi_lib.c Mon Jul 8 16:15:27 2002 +++ linux_work/drivers/scsi/scsi_lib.c Tue Jul 9 17:56:39 2002 @@ -426,7 +426,9 @@ if (req->waiting != NULL) { complete(req->waiting); } + spin_lock_irq(&io_request_lock); req_finished_io(req); + spin_unlock_irq(&io_request_lock); add_blkdev_randomness(MAJOR(req->rq_dev)); SDpnt = SCpnt->device; ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] Re: Disk IO statistics still buggy 2002-07-09 17:00 ` [PATCH] " Jochen Suckfuell @ 2002-07-11 21:27 ` Marcelo Tosatti 2002-07-22 15:11 ` Jochen Suckfuell 2002-07-12 5:46 ` Jens Axboe 1 sibling, 1 reply; 13+ messages in thread From: Marcelo Tosatti @ 2002-07-11 21:27 UTC (permalink / raw) To: Jochen Suckfuell Cc: Thunder from the hill, Bill Davidsen, Andries Brouwer, Adrian Bunk, Linux Kernel, Christoph Hellwig Christoph, Can you take a look at this one ? On Tue, 9 Jul 2002, Jochen Suckfuell wrote: > And it hasn't been removed either. Only the output has been removed; the > data is still collected. Meanwhile I found the bug that leads to wrong > ios_in_flight values on SCSI systems: > > The accounting was done on a copy of the request _after_ the request has > been dequeued and the irq_request_lock released. I fixed this by taking > this lock again while calling the accounting function (see the patch > below). > > ** This patch is relevant regardless where the statistics will finally > be printed. ** > > One issue is still left: on my non-SCSI machine, the ios_in_flight value > is at -1 when although requests are running. It doesn't get any more > wrong than that it seems, and I'm not sure where that happened. Maybe > something went wrong when initializing this value at boot time? I have a > workaround that corrects negative ios_in_flight values to zero each time > /proc/partitions is read. After further testing I will post it to the > list. > > Bye > Jochen Suckfüll > > -- > Jochen Suckfuell --- http://www.suckfuell.net/jochen/ --- > > --- linux/drivers/scsi/scsi_lib.c Mon Jul 8 16:15:27 2002 > +++ linux_work/drivers/scsi/scsi_lib.c Tue Jul 9 17:56:39 2002 > @@ -426,7 +426,9 @@ > if (req->waiting != NULL) { > complete(req->waiting); > } > + spin_lock_irq(&io_request_lock); > req_finished_io(req); > + spin_unlock_irq(&io_request_lock); > add_blkdev_randomness(MAJOR(req->rq_dev)); > > SDpnt = SCpnt->device; ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] Re: Disk IO statistics still buggy 2002-07-11 21:27 ` Marcelo Tosatti @ 2002-07-22 15:11 ` Jochen Suckfuell 0 siblings, 0 replies; 13+ messages in thread From: Jochen Suckfuell @ 2002-07-22 15:11 UTC (permalink / raw) To: Marcelo Tosatti; +Cc: Linux Kernel, Christoph Hellwig Hi! I'm just curious about the status: will this patch be included in 2.4.19 final? On Thu, Jul 11, 2002 at 06:27:25PM -0300, Marcelo Tosatti wrote: > > Christoph, > Can you take a look at this one ? > > On Tue, 9 Jul 2002, Jochen Suckfuell wrote: > > The accounting was done on a copy of the request _after_ the request has > > been dequeued and the irq_request_lock released. I fixed this by taking > > this lock again while calling the accounting function (see the patch > > below). > > > > [...] > > > > --- linux/drivers/scsi/scsi_lib.c Mon Jul 8 16:15:27 2002 > > +++ linux_work/drivers/scsi/scsi_lib.c Tue Jul 9 17:56:39 2002 > > @@ -426,7 +426,9 @@ > > if (req->waiting != NULL) { > > complete(req->waiting); > > } > > + spin_lock_irq(&io_request_lock); > > req_finished_io(req); > > + spin_unlock_irq(&io_request_lock); > > add_blkdev_randomness(MAJOR(req->rq_dev)); > > > > SDpnt = SCpnt->device; Bye Jochen ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] Re: Disk IO statistics still buggy 2002-07-09 17:00 ` [PATCH] " Jochen Suckfuell 2002-07-11 21:27 ` Marcelo Tosatti @ 2002-07-12 5:46 ` Jens Axboe 2002-07-12 5:59 ` no msg when linux-kernel boot louie miranda 1 sibling, 1 reply; 13+ messages in thread From: Jens Axboe @ 2002-07-12 5:46 UTC (permalink / raw) To: Jochen Suckfuell Cc: Thunder from the hill, Marcelo Tosatti, Bill Davidsen, Andries Brouwer, Adrian Bunk, Linux Kernel On Tue, Jul 09 2002, Jochen Suckfuell wrote: > --- linux/drivers/scsi/scsi_lib.c Mon Jul 8 16:15:27 2002 > +++ linux_work/drivers/scsi/scsi_lib.c Tue Jul 9 17:56:39 2002 > @@ -426,7 +426,9 @@ > if (req->waiting != NULL) { > complete(req->waiting); > } > + spin_lock_irq(&io_request_lock); > req_finished_io(req); > + spin_unlock_irq(&io_request_lock); > add_blkdev_randomness(MAJOR(req->rq_dev)); > > SDpnt = SCpnt->device; good spotting, that's definitely a bug -- Jens Axboe ^ permalink raw reply [flat|nested] 13+ messages in thread
* no msg when linux-kernel boot. 2002-07-12 5:46 ` Jens Axboe @ 2002-07-12 5:59 ` louie miranda 2002-07-12 10:57 ` Tigran Aivazian 2002-07-12 13:16 ` szonyi calin 0 siblings, 2 replies; 13+ messages in thread From: louie miranda @ 2002-07-12 5:59 UTC (permalink / raw) To: linux-kernel Hi, I saw this server twice. When she boots, it does not show extra kernel "echo, requests" (Initializations) ex: LILO: linux... Booting the kernel and after that it pauses for a little while and just shows the login prompt Linux Login: --- Any ideas on this is much appreciated.. Thanks, Louie... ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: no msg when linux-kernel boot. 2002-07-12 5:59 ` no msg when linux-kernel boot louie miranda @ 2002-07-12 10:57 ` Tigran Aivazian 2002-07-12 13:16 ` szonyi calin 1 sibling, 0 replies; 13+ messages in thread From: Tigran Aivazian @ 2002-07-12 10:57 UTC (permalink / raw) To: louie miranda; +Cc: linux-kernel check /proc/cmdline to see if there is a "quiet" option listed there. If so, edit /etc/lilo.conf and get rid of it from "append=" line and rerun lilo and reboot. Regards Tigran On Fri, 12 Jul 2002, louie miranda wrote: > Hi, > > I saw this server twice. When she boots, it does not show extra kernel > "echo, requests" (Initializations) > > ex: > > > LILO: linux... > Booting the kernel > > and after that it pauses for a little while > > and just shows the login prompt > > > Linux > > Login: > > > --- > > Any ideas on this is much appreciated.. > > > > > > Thanks, > Louie... > > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ > ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: no msg when linux-kernel boot. 2002-07-12 5:59 ` no msg when linux-kernel boot louie miranda 2002-07-12 10:57 ` Tigran Aivazian @ 2002-07-12 13:16 ` szonyi calin 1 sibling, 0 replies; 13+ messages in thread From: szonyi calin @ 2002-07-12 13:16 UTC (permalink / raw) To: louie miranda, linux-kernel --- louie miranda <louie@chikka.com> a écrit : > Hi, > > I saw this server twice. When she boots, it does not > show extra kernel > "echo, requests" (Initializations) > > ex: > > > LILO: linux... > Booting the kernel > > and after that it pauses for a little while > > and just shows the login prompt > > > Linux > > Login: > He could be ashamed so he hides himself :-) You can play with linux and make him really quiet :-) It's actually a feature :-) ===== -- The UNIX Hierarchy - Beginner - insecure with the concept of a terminal - has yet to learn the basics of "vi" - has not figured out how to get a directory - still has trouble with typing <RETURN> after each line of input ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2002-07-22 15:08 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2002-07-04 11:52 Disk IO statistics still buggy Jochen Suckfuell 2002-07-04 11:59 ` Jochen Suckfuell 2002-07-04 18:31 ` Adrian Bunk 2002-07-06 4:15 ` Bill Davidsen 2002-07-06 7:48 ` Andries Brouwer 2002-07-06 13:42 ` Thunder from the hill 2002-07-09 17:00 ` [PATCH] " Jochen Suckfuell 2002-07-11 21:27 ` Marcelo Tosatti 2002-07-22 15:11 ` Jochen Suckfuell 2002-07-12 5:46 ` Jens Axboe 2002-07-12 5:59 ` no msg when linux-kernel boot louie miranda 2002-07-12 10:57 ` Tigran Aivazian 2002-07-12 13:16 ` szonyi calin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox