public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Linux-2.4.1-pre11 / ll_rw_b watermark metric?
@ 2001-01-29  3:43 Dieter Nützel
  2001-01-29  3:46 ` Jens Axboe
  0 siblings, 1 reply; 5+ messages in thread
From: Dieter Nützel @ 2001-01-29  3:43 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Jens Axboe, Andrea Arcangeli, Linux Kernel List

I have pre11 running with Andrea's suggested fix.

        high_queued_sectors = total_ram / 3;
        low_queued_sectors = high_queued_sectors / 2;
        if (low_queued_sectors < 0)
                low_queued_sectors = total_ram / 2;
 
        /*
         * for big RAM machines (>= 384MB), use more for I/O
         */
        /*
        if (total_ram >= MB(384)) {
                high_queued_sectors = (total_ram * 4) / 5;
                low_queued_sectors = high_queued_sectors - MB(128);
        }
        */

Shouldn't it be clean for a 2.4.1 release?

-Dieter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Linux-2.4.1-pre11 / ll_rw_b watermark metric?
@ 2001-01-29 11:56 Petr Vandrovec
  2001-01-29 15:12 ` Jens Axboe
  0 siblings, 1 reply; 5+ messages in thread
From: Petr Vandrovec @ 2001-01-29 11:56 UTC (permalink / raw)
  To: Dieter Nuetzel; +Cc: Jens Axboe, Andrea Arcangeli, linux-kernel, torvalds

On 29 Jan 01 at 4:43, Dieter Nützel wrote:
> I have pre11 running with Andrea's suggested fix.
> 
>         high_queued_sectors = total_ram / 3;
>         low_queued_sectors = high_queued_sectors / 2;
>         if (low_queued_sectors < 0)
>                 low_queued_sectors = total_ram / 2;
>  

I have one question: How it can happen that low_queued_sectors
is less than zero with this changed logic? (And if it get triggered, 
low_queued_sectors will be greater than high_queued_sectors - which 
is not what we want...)

But it is certainly better than 2.4.0-pre8 approach, as
with 200MB of memory (exactly 192MB left unused) you can end up with 
low_queued_sectors == 0... And it does not give you optimal behavior.
                                        Best regards,
                                            Petr Vandrovec
                                            vandrove@vc.cvut.cz
                                            
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-01-29 15:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-29  3:43 Linux-2.4.1-pre11 / ll_rw_b watermark metric? Dieter Nützel
2001-01-29  3:46 ` Jens Axboe
2001-01-29  4:01   ` Dieter Nützel
  -- strict thread matches above, loose matches on Subject: below --
2001-01-29 11:56 Petr Vandrovec
2001-01-29 15:12 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox