Re: [oi-dev] "Fixed Enlightenment" or "Beware of epoll"

2017-04-11 Thread Joshua M. Clulow
On 11 April 2017 at 22:32, Aurélien Larcher  wrote:
> Hi,
> yesterday I figured out why EFL stopped working suddenly several (too many)
> months ago:  was added and one source started using silently
> epoll in the main loop.
>
> But epoll in illumos does not implement the same behaviour as in Linux:
> https://us-east.manta.joyent.com/smartosman/public/man5/epoll.5.html
> and in this particular case EFL relies on a peculiarity of Linux epoll: on
> illumos this produces a deadlock.

Upon which particular peculiar behaviour does it depend?  What is the
precise nature of the deadlock?

If there's real software that requires things we're not implementing,
we may well need to fix the emulation layer.  After all, it forms the
foundation of epoll support in the LX brand as well.


As an aside, the more canonical location for SmartOS manual pages is,
e.g., https://smartos.org/man/5/epoll


Cheers.

-- 
Joshua M. Clulow
UNIX Admin/Developer
http://blog.sysmgr.org

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev

[oi-dev] "Fixed Enlightenment" or "Beware of epoll"

2017-04-11 Thread Aurélien Larcher
Hi,
yesterday I figured out why EFL stopped working suddenly several (too many)
months ago:  was added and one source started using silently
epoll in the main loop.

But epoll in illumos does not implement the same behaviour as in Linux:
https://us-east.manta.joyent.com/smartosman/public/man5/epoll.5.html
and in this particular case EFL relies on a peculiarity of Linux epoll: on
illumos this produces a deadlock.

The "fix" was to avoid using automatically epoll if  is
present on the system.

This led me to think about freezes in Xorg 1.19 during testing: they are
also caused by epoll and after trying to confirm it, I noticed that
Jonathan Perkin committed to pkgsrc to work around the same issue.

It is likely that other software (libevent?) will exhibit the same feature,
so beware camembert!

Kind regards,

Aurelien



-- 
---
Praise the Caffeine embeddings
___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev