public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Bill Davidsen <davidsen@tmr.com>
To: Wu Fengguang <wfg@mail.ustc.edu.cn>,
	Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Fwd: Adaptive read-ahead V12
Date: Wed, 31 May 2006 16:17:58 -0400	[thread overview]
Message-ID: <447DF9F6.3060302@tmr.com> (raw)
In-Reply-To: <348628455.03454@ustc.edu.cn>

Wu Fengguang wrote:
> ----- Forwarded message from Iozone <capps@iozone.org> -----
> 
> Subject: Adaptive read-ahead V12
> From: Iozone <capps@iozone.org>
> To: Wu Fengguang <wfg@mail.ustc.edu.cn>
> X-Mailer: Microsoft Outlook Express 6.00.2900.2670
> Date: Thu, 25 May 2006 11:44:37 -0500
> 
> Wu Fengguang,
> 
>        I see that Andrew M. is giving you some pushback.... 
>    His argument is that the application could do a better job
>    of scheduling its own read-ahead.  ( I've heard this one 
>    before)
> 
>    My thoughts on this argument would be along the 
>    lines of:
> 
>    Indeed the application might be able to do a better
>    job, however expecting, or demanding, the rewrite
>    of all applications to behave better might be an unreasonable
>    expectation. 

A reasonable expectation would be that the application would have a way 
to tell the kernel to ignore readahead for a given file, other than 
changing the behavior of the kernel as a whole for all processes on the 
machine. This smart application could then use aio or some other similar 
method to do preread itself.

My personal opinion is that the kernel only does a good job reading 
ahead for sequential access, and since that's the common case only a 
means of preventing that effort need be provided.

I can think of several ways the kernel might be smarter about the way it 
reads (or not) random access, but since I have no way to test them on 
applications other than my own I won't belabor them here.

-- 
Bill Davidsen <davidsen@tmr.com>
   Obscure bug of 2004: BASH BUFFER OVERFLOW - if bash is being run by a
normal user and is setuid root, with the "vi" line edit mode selected,
and the character set is "big5," an off-by-one errors occurs during
wildcard (glob) expansion.


  reply	other threads:[~2006-05-31 20:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20060526072738.GG5135@mail.ustc.edu.cn>
2006-05-26  7:27 ` Fwd: Adaptive read-ahead V12 Wu Fengguang
2006-05-31 20:17   ` Bill Davidsen [this message]
     [not found]     ` <20060601010434.GA5019@mail.ustc.edu.cn>
2006-06-01  1:04       ` Wu Fengguang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=447DF9F6.3060302@tmr.com \
    --to=davidsen@tmr.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wfg@mail.ustc.edu.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox