All of lore.kernel.org
 help / color / mirror / Atom feed
From: liuzhiyou.cs@gmail.com (刘智猷)
To: kernelnewbies@lists.kernelnewbies.org
Subject: creation, context switch time of process and thread
Date: Thu, 24 May 2012 22:30:51 +0800	[thread overview]
Message-ID: <4FBE461B.1040408@gmail.com> (raw)
In-Reply-To: <CAF8DjXjjj75yM6d_4K-rj5U5OEA6t-UuHK=HRsTHRbjKdBCPxQ@mail.gmail.com>

On 05/24/2012 08:25 PM, Srinivas Ramanan wrote:
> Can someone give the  information of following typical values in 
> Kernel 3.x
> in a 2Ghz machine with sufficient RAM
>
> Process creation time ?
> Process context switch time ?
> pthread creation time ?
> pthread context swich  time ?
> kernel thread creation time ?
> kernel thread context swich  time ?
>
> What is the best way to measure these values?
> I wrote  a simple test for measuring kernel thread context switch
> A simple test like
>
> 1. get_time(start)
> 2. schedule();
> 3. get_time(end)
> 4. print( context sw time = (end-start) )
>
> But it doesnt seem to work correctly.
>
> Thanks.
> Ramanan
>
>
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi,

Check things supporting tracepoints like perf, systemtap and kprobe. 
They could help you a lot.

Regards,
LIU zhiyou
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120524/65bd5353/attachment.html 

  reply	other threads:[~2012-05-24 14:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-24 12:25 creation, context switch time of process and thread Srinivas Ramanan
2012-05-24 14:30 ` 刘智猷 [this message]
2012-05-25  7:20 ` richard -rw- weinberger
2012-05-25 17:29   ` Srinivas Ramanan
2012-05-27  7:36     ` Vladimir Murzin

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=4FBE461B.1040408@gmail.com \
    --to=liuzhiyou.cs@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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.