public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: James Dickens <jamesd.wi@gmail.com>
To: "Frank Ch. Eigler" <fche@redhat.com>
Cc: systemtap@sources.redhat.com
Subject: Re: array sorting checked in
Date: Sat, 24 Sep 2005 15:29:00 -0000	[thread overview]
Message-ID: <cd09bdd105092408294ac1bfcb@mail.gmail.com> (raw)
In-Reply-To: <y0my85mhcoc.fsf@tooth.toronto.redhat.com>

[snip]
>
> That is incorrect.  If you think about it, you'll see that maintaining
> a sorted array (i.e., at each insert/delete operation) is just about
> as costly as sorting it once at the end.  I have no idea what you mean
> by "accuracy" being a factor either way.
>
example you are monitoring a kprobe that fires repeatedly while the
array is being sorted, if you are holding a lock on the array sure you
might block out the first firing of the probe, what happens if it
happens again? or is the system going spin waiting for the lock to be
released or are you going to drop the data from that probe that just
fired?

James



>

> - FChE
>

  reply	other threads:[~2005-09-24 15:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-23  8:36 Martin Hunt
2005-09-23 17:57 ` Frank Ch. Eigler
2005-09-23 19:44   ` Martin Hunt
2005-09-23 22:20     ` Frank Ch. Eigler
2005-09-24  6:25 ` James Dickens
2005-09-24 12:29   ` Frank Ch. Eigler
2005-09-24 15:29     ` James Dickens [this message]
2005-09-25  6:21     ` Martin Hunt

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=cd09bdd105092408294ac1bfcb@mail.gmail.com \
    --to=jamesd.wi@gmail.com \
    --cc=fche@redhat.com \
    --cc=systemtap@sources.redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).