All of lore.kernel.org
 help / color / mirror / Atom feed
From: Con Kolivas <kernel@kolivas.org>
To: Marcel Zalmanovici <MARCEL@il.ibm.com>
Cc: linux-kernel@vger.kernel.org, Muli Ben-Yehuda <mulix@mulix.org>
Subject: Re: Inconsistent timing results of multithreaded program on an SMP machine.
Date: Thu, 24 Nov 2005 20:40:59 +1100	[thread overview]
Message-ID: <200511242041.00586.kernel@kolivas.org> (raw)
In-Reply-To: <OF507D27BA.6B51F19A-ONC22570C3.002E62D2-C22570C3.002F0C99@il.ibm.com>

On Thu, 24 Nov 2005 19:33, Marcel Zalmanovici wrote:
> Hi Con,
>
> I've tried the pthread_join theory.
> pthread_join completes very fast, no evidence on it being the perpetrator
> here.
>
> I've ran your ps -... idea in a different term window every ms while the
> test was running. It created a large file so I won't mail it to you, but
> both me and Muli observed that once the thread ends it quickly disappears
> from the ps list.
>
> I've also ran Muli's idea and added gettimeofday calls.
> Here's the altered code and output:
>
> (See attached file: idle.log)(See attached file: sched_test.c)
>
> As you can see, if a thread already finished pthread_join returns in a
> split second.
>
> Any other ideas are welcome :-)

Profile the actual application?

> P.S. - I agree that Lotus isn't ideal for this kind of conversations, but
> that's what IBM is using.

It was tongue in cheek ;) Well that should still not stop you from replying 
below the original thread.

Cheers,
Con

       reply	other threads:[~2005-11-24  9:41 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <OF507D27BA.6B51F19A-ONC22570C3.002E62D2-C22570C3.002F0C99@il.ibm.com>
2005-11-24  9:40 ` Con Kolivas [this message]
2005-11-24 10:00   ` Inconsistent timing results of multithreaded program on an SMP machine Marcel Zalmanovici
2005-11-24 12:43     ` Paul Jackson
2005-12-04 15:26       ` Marcel Zalmanovici
2005-12-04 19:54         ` Paul Jackson
2005-11-20  9:27 Marcel Zalmanovici
2005-11-20  9:54 ` Con Kolivas
2005-11-20 10:18   ` Marcel Zalmanovici
2005-11-20 10:28     ` Con Kolivas
2005-11-20 10:35       ` Muli Ben-Yehuda
2005-11-20 10:39         ` Con Kolivas
2005-11-20 10:43           ` Muli Ben-Yehuda
2005-11-20 10:50           ` Marcel Zalmanovici
2005-11-20 10:50             ` Con Kolivas
2005-11-20 10:43       ` Marcel Zalmanovici
2005-11-20 14:02 ` Paul Jackson
2005-11-24  9:50   ` Marcel Zalmanovici

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=200511242041.00586.kernel@kolivas.org \
    --to=kernel@kolivas.org \
    --cc=MARCEL@il.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mulix@mulix.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 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.