From: Willy Tarreau <w@1wt.eu>
To: Con Kolivas <kernel@kolivas.org>
Cc: Andi Kleen <andi@firstfloor.org>, linux-kernel@vger.kernel.org
Subject: Re: BFS cpu scheduler and skip list implementation
Date: Fri, 30 Sep 2011 06:58:15 +0200 [thread overview]
Message-ID: <20110930045815.GB8592@1wt.eu> (raw)
In-Reply-To: <201109300858.28633.kernel@kolivas.org>
On Fri, Sep 30, 2011 at 08:58:28AM +1000, Con Kolivas wrote:
> In fact after I fixed a few bugs in the original implementation I posted here,
> and cleaned up the code to not do dynamic memory allocation in the hot
> scheduler path and so on... I found it (my skip list implementation) to be
> universally slower than the existing BFS approach of simple linked lists and
> walking the list for lookup.
People often underestimate how fast simple lists can be on small to medium
data sets :-)
> Any performance advantage in the original version
> was coincidence due to the way it performed on one workload and was bad in
> others. Rather disappointing but you can read my thoughts here
>
> http://ck-hack.blogspot.com/
Well, this coincidence at least shows something : by avoiding some work
and by possibly being unfair to some non-critical tasks, you managed
to reduce the time it takes to run a given workload. That's what many
scientists call an accidental experimentation. Now you need to find how
to get close to those numbers without the downsides you've explained on
the link above :-)
> Anyway I'll make sure to read your code and see if it has anything to offer
> me. Thanks for the pointer.
OK. Do not hesitate to ping me if you need some help when playing with
the code. I might even still have a backup of the wikipedia article I
wrote at that time when some users asked me, and that was deleted by
some bastards^Wmoderators, who considered it was just self promotion!
There were a few diagrams there which explain how that works.
Best regards,
Willy
next prev parent reply other threads:[~2011-09-30 4:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-23 23:45 Con Kolivas
2011-09-24 1:21 ` Andi Kleen
2011-09-24 2:14 ` Con Kolivas
2011-09-24 7:35 ` Andi Kleen
2011-09-24 8:38 ` Con Kolivas
2011-09-29 20:45 ` Willy Tarreau
2011-09-29 22:58 ` Con Kolivas
2011-09-30 4:58 ` Willy Tarreau [this message]
2011-09-25 9:04 ` Heinz Diehl
2011-09-25 9:13 ` Con Kolivas
2011-09-25 11:16 ` Heinz Diehl
2011-09-25 11:19 ` Con Kolivas
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=20110930045815.GB8592@1wt.eu \
--to=w@1wt.eu \
--cc=andi@firstfloor.org \
--cc=kernel@kolivas.org \
--cc=linux-kernel@vger.kernel.org \
/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®