Openmoko Bug #1713: neod consumes 8% cpu reading event3 (accelometer) constantly on gta02

Openmoko Public Trac bugs at docs.openmoko.org
Fri Aug 1 08:12:25 CEST 2008


#1713: neod consumes 8% cpu reading event3 (accelometer) constantly on gta02
-----------------------------+----------------------------------------------
 Reporter:  lindi            |       Owner:  openmoko-kernel
     Type:  defect           |      Status:  new            
 Priority:  normal           |   Milestone:  OM-2007.2      
Component:  System Software  |     Version:                 
 Severity:  normal           |    Keywords:                 
 Blocking:                   |   Blockedby:                 
-----------------------------+----------------------------------------------
 Steps to reproduce:
 1) Run top

 Expected results:
 1) system should be mostly idle

 Actual results:
 1) neod seems to be using about 7-10% cpu time all the time:
 {{{
   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  1426 root      20   0 26516 9540 6196 S  7.1  7.6  16:42.44 neod
 }}}

 More info:
 1) strace -p `pidof neod` -tt shows that


 {{{
 09:03:44.580247 poll([{fd=3, events=POLLIN}, {fd=9, events=POLLIN},
 {fd=10, events=POLLIN}, {fd=8, events=POLLIN}, {fd=7, events=POLLIN,
 revents=POLLIN}, {fd=6, events=POLLIN}, {fd=5, events=POLLIN}, {fd=4,
 events=POLLIN}], 8, 112618) = 1
 09:03:44.584285 gettimeofday({1217581424, 584631}, NULL) = 0
 09:03:44.587592 read(7, "p\321\222Hb\317\7\0\2\0\0\0$\0\0\0", 16) = 16
 09:03:44.591171 ioctl(3, FIONREAD, [0]) = 0
 09:03:44.594265 gettimeofday({1217581424, 594610}, NULL) = 0
 }}}

 repeats again and again and

 {{{
 ls -l /proc/`pidof neod`/fd/7
 lr-x------    1 root     root           64 Aug  1 01:56 /proc/1426/fd/7 ->
 /dev/input/event3
 }}}

 reveals that it is reading from accelometer.

 2) I am using freerunner with

 http://buildhost.openmoko.org/daily/freerunner/200807/20080722/Openmoko-
 openmoko-devel-image-glibc-ipk-P1-Snapshot-20080722-om-gta02.rootfs.jffs2
 http://buildhost.openmoko.org/daily/freerunner/200807/20080730/uImage-2.6.24+git25+8533927964761f4e2078ccd8607b90f5acc60b93-r1
 -om-gta02.bin

 3) As usual, please let me know if you are unable to reproduce this. I am
 happy to provide more info.

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/1713>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the openmoko-kernel mailing list