public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: <sten.kristian.ivarsson@gmail.com>
To: <cygwin@cygwin.com>
Subject: Sv: Sv: Problems with native Unix domain sockets on Win 10/2019
Date: Wed, 17 Mar 2021 13:47:03 +0100	[thread overview]
Message-ID: <000501d71b2b$a1a5f2b0$e4f1d810$@gmail.com> (raw)
In-Reply-To: <0cc7931c-6c07-755d-2d0c-1b62189fddd9@cornell.edu>

[Snip]
> >> Hi all
> >>
> >> Does anyone know the status of these fixes ?
> >>
> >> I saw an announcement for cygwin-3.2.0-0.1 that seemed to contain
> >> some AF_UNIX-related fixes but I fail to find out where that
> >> distribution exists (if it is supposed to be publicly accessible?),
> >> but I tried out the
> >> 2021-03-01 snapshot and perhaps they are similar ?
> 
> You can install cygwin-3.2.0-0.1 in the usual way, through Cygwin's setup
> program.  Since it's a test release, you'll have to explicitly select that
> release; setup won't just offer it to you.

Ahh thanks, it took a while before I noticed that Text-checkbox ;-)

See more below

> >> We bumped into some AF_UNIX-related issues when trying the 2021-03-01
> >> -snapshot though. It might be some flaws in our code base but the
> >> same code works in quite a few Linux-distros
> >>
> >> We're more than willing to help out with testing this and/or trying
> >> to narrow down any possible cygwin issues, but first we'd be glad if
> >> someone could give us some kind of status report of this (so no one
> >> is doing any unnecessary work)
> >>
> >>
> >> Best regards,
> >> Kristian
> >>
> >> p.s.
> >>     I tried to build the topic/af_unix -branch according to the FAQ,
> >> but there was some issues
> 
> I'm still in the middle of some things on that branch, and I haven't had
> much time to work on it recently.  I hope to get back to it very soon.  In
> order to build it, you need to add -D__WITH_AF_UNIX to CXXFLAGS. 

Is this when building newlib-cygwin ? I discovered now that I had wrong
MinGW installed and apparently other things are missing as well

See more below

> In order to test it, you need
> 
> #undef AF_UNIX
> #define AF_UNIX 31
> 
> after including <sys/socket.h>
> 
> Ken


The issues we're experiencing is that messages are lost during heavy load.
We essentially do have one thread writing a bunch of messages with a fixed
buffer chunk size and one thread consuming and sometimes messages disappear
or at least end up in the wrong order. When playing around with the size of
the buffer (we sometimes get -1 but no errno) from write and/or receive

Another observation is that for smaller number of, it is faster than named
pipes but the more messages that are written/consumed the performance
derogates a in the end throughput is getting exponentially slower

Hopefully, this is a defect in our code base, but I will try to narrow it
down with and try to reproduce the behaviour and I will then possibly make
another issue at this mailing list

Keep up the good work

Best regards,
Kristian



  reply	other threads:[~2021-03-17 12:47 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-23 11:25 Michael McMahon
2020-09-24 11:26 ` Ken Brown
2020-09-24 12:01   ` Michael McMahon
2020-09-24 17:11     ` Brian Inglis
2020-09-25 13:19     ` Ken Brown
2020-09-25 14:29       ` Michael McMahon
2020-09-25 14:37         ` Eliot Moss
2020-09-25 16:13           ` Michael McMahon
2020-09-25 16:32             ` Eliot Moss
2020-09-25 18:50         ` Ken Brown
2020-09-25 20:30           ` Ken Brown
2020-09-26  0:31             ` Duncan Roe
2020-09-26  1:22               ` Ken Brown
2020-09-26  7:30             ` Michael McMahon
2020-09-28 11:03               ` Michael McMahon
2021-01-30 16:00                 ` Ken Brown
2021-01-31 23:30                   ` Michael McMahon
2021-02-01 15:04                     ` Ken Brown
2021-02-01 15:10                       ` Corinna Vinschen
2021-02-07 19:35                         ` Michael McMahon
2021-02-08 15:30                           ` Ken Brown
2021-03-16 11:06                             ` Sv: " sten.kristian.ivarsson
2021-03-16 13:00                               ` Michael McMahon
2021-03-16 15:19                                 ` Ken Brown
2021-03-17 12:47                                   ` sten.kristian.ivarsson [this message]
2021-03-17 15:47                                     ` Sv: " Ken Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000501d71b2b$a1a5f2b0$e4f1d810$@gmail.com' \
    --to=sten.kristian.ivarsson@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).