X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
X-Eon-Dm: dm0219
X-Eon-Sig: AQMoEGNQfVFx8wDoxwIAAAAB,dedd0b12c801033164dd1d64cd6128bd
From: bob <bob@icanprogram.com>
To: cygwin@cygwin.com
Subject: re: signalfd support
Date: Tue, 16 Oct 2012 08:22:07 -0400
Message-ID: <7503790.99DVW17TaN@bob-kubuntu>
User-Agent: KMail/4.8.5 (Linux/3.2.0-31-generic; KDE/4.8.5; x86_64; ; )
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.7.7855,1.0.431,0.0.0000 definitions=2012-10-16_04:2012-10-16,2012-10-16,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1203120001 definitions=main-1210160089
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

============
I'm on the list in digest mode,  so I don't know how to thread this response 
properly.
============

Thanks to all who have taken time to respond so far.

I am already using POSIX shared memory in the application I am trying to port 
to Cygwin.   The fifos are simply used to synchronize access to the shared 
memory and to provide a convenient select()/poll()'able interface to multiplex 
things.   The only thing presented to the fifo is an integer index value.   The 
actual message data itself is in shared memory.    

In a previous posting a few weeks back I presented some test code which 
illustrated the performance deficit in the current Cygwin fifo implementation (2 
orders of magnitude slower than Linux on same hardware).      It was this 
performance issue that led me on a search for an alternative synchronization 
mechanism that still allowed for multiplexing via select()/poll().      As far 
as I can tell neither POSIX semaphores,  POSIX message queues or sigwaitinfo() 
can meet this multiplex criteria.     However,  the combination of real time 
queueable  signals and signalfd (or eventfd) could.

As I understand things Cygwin supports real time signals,   but doesn't yet 
support signalfd (or eventfd) functionality.

bob

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

