From: Benjamin LaHaise <bcrl@redhat.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Paul Gortmaker <p_gortmaker@yahoo.com>, linux-kernel@vger.kernel.org
Subject: Re: Making diff(1) of linux kernels faster
Date: Wed, 17 Oct 2001 15:19:00 -0400 [thread overview]
Message-ID: <20011017151900.E25684@redhat.com> (raw)
In-Reply-To: <3BCAB9B1.2F85F523@yahoo.com> <Pine.LNX.4.33.0110170949370.17757-100000@penguin.transmeta.com>
In-Reply-To: <Pine.LNX.4.33.0110170949370.17757-100000@penguin.transmeta.com>; from torvalds@transmeta.com on Wed, Oct 17, 2001 at 09:59:35AM -0700
On Wed, Oct 17, 2001 at 09:59:35AM -0700, Linus Torvalds wrote:
> And I've for a long time thought about adding a "readahead()" system call.
> There are just too many uses for it, it has come up in many different
> areas..
Well, here's a sendpage for /dev/null which is useful for prefetching. Now
we just need a background open().
-ben
...~/patches/v2.4.13-pre3-null_sendpage.diff
diff -urN v2.4.13-pre3/drivers/char/mem.c foo-v2.4.13-pre3/drivers/char/mem.c
--- v2.4.13-pre3/drivers/char/mem.c Mon Sep 24 02:16:03 2001
+++ foo-v2.4.13-pre3/drivers/char/mem.c Wed Oct 17 15:12:59 2001
@@ -339,6 +339,12 @@
return count;
}
+static ssize_t sendpage_null(struct file *file, struct page *page, int offset,
+ size_t size, loff_t *pos, int more)
+{
+ return size;
+}
+
/*
* For fun, we are using the MMU for this.
*/
@@ -512,6 +518,7 @@
llseek: null_lseek,
read: read_null,
write: write_null,
+ sendpage: sendpage_null,
};
#if !defined(__mc68000__)
next prev parent reply other threads:[~2001-10-17 19:18 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-14 8:58 Making diff(1) of linux kernels faster Paul Gortmaker
2001-10-14 9:51 ` john slee
2001-10-14 15:48 ` Linus Torvalds
2001-10-17 12:25 ` Paul Gortmaker
2001-10-17 16:59 ` Linus Torvalds
2001-10-17 16:44 ` Marcelo Tosatti
2001-10-17 18:21 ` Linus Torvalds
2001-10-17 20:21 ` Andrea Arcangeli
2001-10-17 19:06 ` Marcelo Tosatti
2001-10-17 21:23 ` chris
2001-10-17 21:30 ` Andrea Arcangeli
2001-10-17 21:45 ` Linus Torvalds
2001-10-17 17:12 ` John Levon
2001-10-17 19:19 ` Benjamin LaHaise [this message]
2001-10-17 18:50 ` Andreas Schwab
-- strict thread matches above, loose matches on Subject: below --
2001-10-17 17:57 willy tarreau
2001-10-18 0:25 ` Horst von Brand
2001-10-18 8:02 ` Nick Craig-Wood
2001-10-18 9:55 ` Wojtek Pilorz
2001-10-18 11:18 ` vda
2001-10-18 12:39 Marco C. Mason
2001-10-18 14:48 Sean Neakums
2001-10-22 16:39 Andries.Brouwer
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=20011017151900.E25684@redhat.com \
--to=bcrl@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=p_gortmaker@yahoo.com \
--cc=torvalds@transmeta.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.