[Bluez-devel] Question about poll() - was Re: a2dpd and mplayer - any chance to get it working?

Frederic Dalleau
2007-04-05T08:59:09Z

Hi,
I'm investigating the problem tim talked about :
>>> I am using CVS from last night, and I see basically 100% CPU usage
>>> from a2dpd, with mpg321 and mplayer whilst it is streaming.
>>> =

While I don't get 100% on arm I got a significant cpu usage which the =

previous btsco was not doing.
When streaming a2dpd is calling poll with small timeouts (like 1 ms) to =

ensure packets get sent at right time.
If poll(x,y,1) is replaced by usleep(1); poll(x,y,0) then cpu usage fall =

back to 0.

This means the poll call itself is burning cpu. Mmmm, I think this is =

strange.
Any ideas? What's the best place to find information for question like this?

Fr=E9d=E9ric

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV