From: Keith Owens <kaos@ocs.com.au>
To: "Randal, Phil" <prandal@herefordshire.gov.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC] 2.5.8 sort kernel tables
Date: Sat, 20 Apr 2002 15:19:15 +1000 [thread overview]
Message-ID: <16167.1019279955@ocs3.intra.ocs.com.au> (raw)
In-Reply-To: Your message of "Fri, 19 Apr 2002 12:38:05 +0100." <AFE36742FF57D411862500508BDE8DD004639E64@cordelia.herefordshire.gov.uk>
On Fri, 19 Apr 2002 12:38:05 +0100,
"Randal, Phil" <prandal@herefordshire.gov.uk> wrote:
>This variation on Quicksort seems superior... Must look at the libc
>sources someday to see how it does it...
>http://www.neubert.net/Flapaper/9802n.htm
It requires extra storage which is unacceptable. The kernel tables
must be sorted before any code that might take an exception is used.
The sort must be done very early, before kernel memory management is
setup. In addition, the kernel stack has a limited size.
If the extra data size depends on the number of elements to be sorted
(flashsort1 needs 0.1n extra data) then it cannot be used for this
task. Sooner or later the extra data size will blow the limited kernel
storage at boot time. For this task, the sort must use a small and
fixed amount of extra storage.
You realize that we have probably spent more time discussing the sort
algorithm than can be saved by rewriting the sort? The sort is invoked
once per boot on tables that are almost sorted already, any savings
will be in milliseconds and do not justify the extra programming
effort. I will use arch/ppc/mm/extable.c::sort_ex_table() instead of
bubble, anything beyond that is a waste of programming time.
next prev parent reply other threads:[~2002-04-20 5:19 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-19 11:38 Randal, Phil
2002-04-20 5:19 ` Keith Owens [this message]
2002-04-20 8:50 ` Alan Cox
2002-04-20 9:40 ` Keith Owens
[not found] <1589.1019123186@ocs3.intra.ocs.com.au.suse.lists.linux.kernel>
[not found] ` <15550.50131.489249.256007@nanango.paulus.ozlabs.org.suse.lists.linux.kernel>
2002-04-18 17:51 ` Andi Kleen
2002-04-18 23:17 ` Keith Owens
-- strict thread matches above, loose matches on Subject: below --
2002-04-18 9:46 Keith Owens
2002-04-18 10:21 ` Matthias Andree
2002-04-18 10:32 ` Keith Owens
2002-04-18 10:52 ` Alan Cox
2002-04-18 13:02 ` Paul Mackerras
2002-04-18 15:38 ` Keith Owens
2002-04-18 15:52 ` Russell King
2002-04-18 16:09 ` Keith Owens
2002-04-18 13:59 ` William Lee Irwin III
2002-04-18 18:16 ` Kai Henningsen
2002-04-18 18:24 ` William Lee Irwin III
2002-04-19 11:46 ` David Weinehall
2002-04-18 20:20 ` Oliver Xymoron
2002-04-19 4:59 ` Matt
2002-04-19 13:45 ` Jamie Lokier
2002-04-19 13:46 ` Jamie Lokier
2002-04-19 14:25 ` Oliver Xymoron
2002-04-19 15:16 ` Tobias Wollgam
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=16167.1019279955@ocs3.intra.ocs.com.au \
--to=kaos@ocs.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=prandal@herefordshire.gov.uk \
/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
all inboxes | Powered by JetHome®