[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uclinux-dev
Subject:    RE: [uClinux-dev] SCHED_RR problem (noticed on microblaze)
From:       "Falk Brettschneider" <falk.brettschneider () gmx ! de>
Date:       2005-11-25 13:30:17
Message-ID: 5163.1132925417 () www45 ! gmx ! net
[Download RAW message or body]

Hi,
Here's the test app ftp://ftp.baumeroptronic.com/linux-mail/test.tgz
Does it not return from poll() for you, either? (Maybe it's a
microblaze-specific problem.)

The console output here is:
000003:588746:    : mutexlock_MAIN
000003:598470: Thr: call pfRunFunc for 'IO'
000003:600677: Thr: IO: policy: 2, prio: 9, timeslice: sec=0 nsec=60000000,
PID: 0, TID: 1026
000003:608170: IO : opened device (id=5)
000003:614148: Thr: call pfRunFunc for 'IPStarter'
000003:616219: Thr: IPStarter: policy: 2, prio: 10, timeslice: sec=0
nsec=60000000, PID: 0, TID: 2051
000003:624947:    : enter join
000003:627411: IO : loop2
000003:629396: Thr: call pfRunFunc for 'IP'
000003:631874: Thr: IP: policy: 2, prio: 8, timeslice: sec=0 nsec=60000000,
PID: 3076, TID: 3076
000003:635373: IP : calling ip_run()
000003:637417: IP : before sem_wait
000003:640359:    : ===> global wake up
000003:642402:    : mutex_unlock_MAIN
000003:645071: IO : mutexlock_IO
000003:647212: IO : mutexunlock_IO
000003:649175: IO : calling run_io()
000003:651455: IO : enter poll() (ms=1000)
000004:660683: IO : left poll()
000004:662425: IO : enter poll() (ms=1000)
000005:670689: IO : left poll()
000005:672414: IO : wakeup IP
000005:674575: IO : enter poll() (ms=1000)
000005:677778: IP : IP awaking

You can see that poll() never returns although its thread "IO" has the
higher priority than thread "IP". If you replace poll() with usleep(), it
shows the same bug.

Cheers,
F@lk

-- 
Highspeed-Freiheit. Bei GMX supergünstig, z.B. GMX DSL_Cityflat,
DSL-Flatrate für nur 4,99 Euro/Monat*  http://www.gmx.net/de/go/dsl
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic