<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Through the classical CPU_DumpUsage function call.
Sometimes you need to reset the statitistics otherwise the wrapped counter gives
wrong figures.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>In my case of interrupt driven io I expected to get
a lower CPU usage by the console task since I assumed it wakes up only "when
there is something to process". This is not the case, the figure is the
same as with the polled version. :=(</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>John.</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=Grigori_Khmyrov@uml.edu href="mailto:Grigori_Khmyrov@uml.edu">Grigori
Khmyrov</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=rtems-users@rtems.org
href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, July 19, 2007 3:42
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: UART console based on
interrupt</DIV>
<DIV><BR></DIV>John,<BR><BR>Can you please share or point to how do you
measure CPU usage.<BR><BR>Thank you,<BR>Grigori<BR><BR>John Pickwick
wrote:<BR>
<BLOCKQUOTE cite=mid00fe01c7c979$ef903660$6394e552@hal type="cite">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR>
<STYLE></STYLE>
<DIV><FONT face=Arial size=2>Hi to all,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I recently re-compiled my SparcLEON2 BSP /
RTEMS4.7.1 using the USE_CONSOLE_INTERRUPT macro and I compared the CPU
usage with the default BSP version that uses polled UART.</FONT></DIV>
<DIV><FONT face=Arial size=2>I have a task waiting on console input with
getchar and I expected the interrupt driven version of the console to
be less CPU consuming. Unfortunately I find the same CPU usage percentage
for that one.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Can someone explain this ? </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Best regards,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>John</FONT></DIV><PRE wrap=""><HR width="90%" SIZE=4>
_______________________________________________
rtems-users mailing list
<A class=moz-txt-link-abbreviated href="mailto:rtems-users@rtems.com">rtems-users@rtems.com</A>
<A class=moz-txt-link-freetext href="http://rtems.rtems.org/mailman/listinfo/rtems-users">http://rtems.rtems.org/mailman/listinfo/rtems-users</A>
</PRE></BLOCKQUOTE>
<P>
<HR>
<P></P>_______________________________________________<BR>rtems-users mailing
list<BR>rtems-users@rtems.com<BR>http://rtems.rtems.org/mailman/listinfo/rtems-users<BR></BLOCKQUOTE></BODY></HTML>