Yes, you&#39;re right... :-)<br><br>The thing that confused me was that the %sy went up, and I&#39;m still not sure<br>what that means. However, it seems that if I reduced the ammount of work<br>done for a touchpad event I got less of it.. ;-)<br>
<br>&nbsp;&nbsp; /Anton<br><br><div class="gmail_quote">On Wed, Nov 5, 2008 at 1:48 AM, Andy Green <span dir="ltr">&lt;<a href="mailto:andy@openmoko.com">andy@openmoko.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<div><div></div><div class="Wj3C7c"><br>
Somebody in the thread at some point said:<br>
| Hi,<br>
|<br>
| it seems that using the touchpad causes alot of cpu usage. I have an<br>
| application<br>
| which reports mouse movement events to a function. So I have this area<br>
| where I can press and drag around the pointer with the stylus.<br>
Whenever I do<br>
| that the CPU %sy utilization in top goes up to 50%-60%.. Shouldn&#39;t we be<br>
| able to expect that we get more time for userspace than for the kernel<br>
| if we just move the pointer around? 50-60% seems extremely absurd...<br>
|<br>
| PS if you want to test what I mean, download and install my application<br>
| from:<br>
| <a href="http://www.733kru.org/%7Epltxtra/OpenMoko/" target="_blank">http://www.733kru.org/~pltxtra/OpenMoko/</a><br>
<br>
</div></div>I think this might be jumping to conclusions as to where the time in the<br>
kernel is spent. &nbsp;For example, run top alone without your app to find<br>
the background use of /sys, then start using the touchscreen (still with<br>
no app) while top runs and note the difference. &nbsp;This would represent<br>
the time taken by kernel to deal with touchscreen without any additional<br>
time in kernel about something else caused by your app. &nbsp;If it&#39;s still<br>
50%, then we have a problem alright :-)<br>
<br>
- -Andy<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.9 (GNU/Linux)<br>
Comment: Using GnuPG with Fedora - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
<br>
iEYEARECAAYFAkkQ7VgACgkQOjLpvpq7dMrWTwCgjynnHQqRUeaPXe1txQaZW8sL<br>
/+sAnAjUFM6aLNoeRmrj+K7szjFLitly<br>
=lcNU<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br>