* Re: 2.6.12-rc2 and as-iosched
@ 2005-07-18 9:04 Kenneth Parrish
2005-07-18 11:59 ` Jens Axboe
0 siblings, 1 reply; 7+ messages in thread
From: Kenneth Parrish @ 2005-07-18 9:04 UTC (permalink / raw)
To: linux-kernel
Randy> Need more info.
Greetings. :)
CONFIG_HZ_ changes the block device elevator time-out values -- didn't see.
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: 2.6.12-rc2 and as-iosched
2005-07-18 9:04 2.6.12-rc2 and as-iosched Kenneth Parrish
@ 2005-07-18 11:59 ` Jens Axboe
2005-07-18 13:49 ` Jens Axboe
0 siblings, 1 reply; 7+ messages in thread
From: Jens Axboe @ 2005-07-18 11:59 UTC (permalink / raw)
To: Kenneth Parrish; +Cc: linux-kernel
On Mon, Jul 18 2005, Kenneth Parrish wrote:
> Randy> Need more info.
>
> Greetings. :)
> CONFIG_HZ_ changes the block device elevator time-out values -- didn't see.
I cannot reproduce here with cfq and HZ == 250, the jiffies <-> msec
conversions are working fine. Please provide a proper bug report, did
you change the values and not getting the expected back, or what is
going wrong??
--
Jens Axboe
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.6.12-rc2 and as-iosched
2005-07-18 11:59 ` Jens Axboe
@ 2005-07-18 13:49 ` Jens Axboe
2005-07-19 1:58 ` Kenneth Parrish
0 siblings, 1 reply; 7+ messages in thread
From: Jens Axboe @ 2005-07-18 13:49 UTC (permalink / raw)
To: Kenneth Parrish; +Cc: linux-kernel, Andrew Morton
On Mon, Jul 18 2005, Jens Axboe wrote:
> On Mon, Jul 18 2005, Kenneth Parrish wrote:
> > Randy> Need more info.
> >
> > Greetings. :)
> > CONFIG_HZ_ changes the block device elevator time-out values -- didn't see.
>
> I cannot reproduce here with cfq and HZ == 250, the jiffies <-> msec
> conversions are working fine. Please provide a proper bug report, did
> you change the values and not getting the expected back, or what is
> going wrong??
ok, AS is definitely broken, it does an internal HZ <-> msec conversion
in the store/show functions as well. This should fix it.
--- /opt/kernel/linux-2.6.13-rc3/drivers/block/as-iosched.c 2005-07-13 06:46:46.000000000 +0200
+++ linux-2.6.13-rc3/drivers/block/as-iosched.c 2005-07-18 15:46:23.000000000 +0200
@@ -1935,23 +1935,15 @@
static ssize_t
as_var_show(unsigned int var, char *page)
{
- var = (var * 1000) / HZ;
return sprintf(page, "%d\n", var);
}
static ssize_t
as_var_store(unsigned long *var, const char *page, size_t count)
{
- unsigned long tmp;
char *p = (char *) page;
- tmp = simple_strtoul(p, &p, 10);
- if (tmp != 0) {
- tmp = (tmp * HZ) / 1000;
- if (tmp == 0)
- tmp = 1;
- }
- *var = tmp;
+ *var = simple_strtoul(p, &p, 10);
return count;
}
--
Jens Axboe
^ permalink raw reply [flat|nested] 7+ messages in thread
* 2.6.12-rc2 and as-iosched
@ 2005-07-17 6:06 Kenneth Parrish
2005-07-18 2:52 ` randy_dunlap
0 siblings, 1 reply; 7+ messages in thread
From: Kenneth Parrish @ 2005-07-17 6:06 UTC (permalink / raw)
To: linux-kernel
========================================================================
System: FamilyNet HQ
Area: Internet-Email, Internet E-mail
Date: Jul 16 2005 22:45
From: Kenneth Parrish
To: linux-kernel@vger.kernel.org
Subj: 2.6.12-rc2 and as-iosched
------------------------------------------------------------------------
v2.6.13-rc2 as-iosched.c and /sys/block/hda/queue/iosched/* values differ:
[..]
Oops, HZ=250, so correct.
... The later PDP-11s supported 4MB.
--- MultiMail/Linux v0.46
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: 2.6.12-rc2 and as-iosched
2005-07-17 6:06 Kenneth Parrish
@ 2005-07-18 2:52 ` randy_dunlap
0 siblings, 0 replies; 7+ messages in thread
From: randy_dunlap @ 2005-07-18 2:52 UTC (permalink / raw)
To: Kenneth Parrish; +Cc: linux-kernel
On 17 Jul 2005 06:06:08 GMT Kenneth Parrish wrote:
> ========================================================================
> System: FamilyNet HQ
> Area: Internet-Email, Internet E-mail
> Date: Jul 16 2005 22:45
> From: Kenneth Parrish
> To: linux-kernel@vger.kernel.org
> Subj: 2.6.12-rc2 and as-iosched
> ------------------------------------------------------------------------
> v2.6.13-rc2 as-iosched.c and /sys/block/hda/queue/iosched/* values differ:
> [..]
> Oops, HZ=250, so correct.
Hi,
My ESP isn't working so well tonight.
What are you trying to report here?
Need more info.
---
~Randy
^ permalink raw reply [flat|nested] 7+ messages in thread
* 2.6.12-rc2 and as-iosched
@ 2005-07-17 3:46 Kenneth Parrish
0 siblings, 0 replies; 7+ messages in thread
From: Kenneth Parrish @ 2005-07-17 3:46 UTC (permalink / raw)
To: linux-kernel
v2.6.13-rc2 as-iosched.c and /sys/block/hda/queue/iosched/* values differ:
/* from ../drivers/block/as-iosched.c */
#define default_read_expire (HZ / 8)
#define default_write_expire (HZ / 4)
#define default_read_batch_expire (HZ / 2)
#define default_write_batch_expire (HZ / 8)
$ ls /sys/block/hda/queue/iosched
antic_expire
est_time
read_batch_expire
read_expire
write_batch_expire
write_expire
$ cat /sys/block/hda/queue/iosched
16
7 % exit probability
0 ms new thinktime
647336 sectors new seek distance
2000 # read_batch_expire (500ms?)
496 # read_expire (125ms?)
496 # write_batch_expire (125ms?)
992 # write_expire (250ms?)
--
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-07-19 1:59 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-18 9:04 2.6.12-rc2 and as-iosched Kenneth Parrish
2005-07-18 11:59 ` Jens Axboe
2005-07-18 13:49 ` Jens Axboe
2005-07-19 1:58 ` Kenneth Parrish
-- strict thread matches above, loose matches on Subject: below --
2005-07-17 6:06 Kenneth Parrish
2005-07-18 2:52 ` randy_dunlap
2005-07-17 3:46 Kenneth Parrish
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox