<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 05/24/2012 08:25 PM, Srinivas Ramanan wrote:
<blockquote
cite="mid:CAF8DjXjjj75yM6d_4K-rj5U5OEA6t-UuHK=HRsTHRbjKdBCPxQ@mail.gmail.com"
type="cite">Can someone give the information of following typical
values in Kernel 3.x
<div>in a 2Ghz machine with sufficient RAM<br>
<div><br>
</div>
<div>Process creation time ?</div>
<div>Process context switch time ?</div>
</div>
<div>pthread creation time ?</div>
<div>
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
pthread context swich time ?</div>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div>kernel thread creation time ?</div>
<div>kernel thread context swich time ?</div>
<div><br>
</div>
<div>What is the best way to measure these values?</div>
<div>I wrote a simple test for measuring kernel thread context
switch </div>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div>A simple test like</div>
<div><br>
</div>
<div>1. get_time(start)</div>
<div>2. schedule();</div>
<div>3. get_time(end)</div>
<div>4. print( context sw time = (end-start) )</div>
<div><br>
</div>
<div>But it doesnt seem to work correctly.</div>
<div><br>
</div>
<div>Thanks.</div>
<div>Ramanan</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kernelnewbies mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a>
<a class="moz-txt-link-freetext" href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a>
</pre>
</blockquote>
Hi, <br>
<br>
Check things supporting tracepoints like perf, systemtap and kprobe.
They could help you a lot.<br>
<br>
Regards,<br>
LIU zhiyou<br>
</body>
</html>