From mboxrd@z Thu Jan 1 00:00:00 1970 From: liuzhiyou.cs@gmail.com (=?UTF-8?B?5YiY5pm654y3?=) Date: Thu, 24 May 2012 22:30:51 +0800 Subject: creation, context switch time of process and thread In-Reply-To: References: Message-ID: <4FBE461B.1040408@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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