www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/03/17/08:47:11

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EAFA6384A882
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1615985228;
bh=Z+V7xY4ZDFNZ4Frb3s9mYaoNBaMRSWtJ6HOg4g3DuLo=;
h=To:References:In-Reply-To:Subject:Date:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=T6IdxBBlAfQNUuXRDIuC0hvc5b6WDleJGRgztlTZ8bsv0IkUjhWDfAKjNZNa7FASK
/XT8lUc6invbwUuY1hvZREzJiQr5X3K27Ct8jcSp10eWyLEvmf65DICxLjrOzeVL+R
qxYUb2XCH64MLR7D8vatTHlfSb3Xny8KVFii240w=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E3CF2384B060
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date
:message-id:mime-version:content-transfer-encoding:content-language
:thread-index;
bh=5a7QBsEsWlCBl5jbWZziJr7P8/KNSz48KBrgbznAsw4=;
b=EjiQfLhbGcMpsBV/rJ6+Lo//2v54bjMUWoeNQEqOiZyMUtWB/YUza9JUU6Hh1Yd/sr
DQW7HA8KMXbWZ7M9tBtXQyTz7PJLjaTQi47zGDsPcuvRpIqwMODQEGLeufZrcykIXN59
USpus7QsTCuZ9L67IZPVq01XmPiFjMxeMK2SSpswNcJLQC1SbYN2wxwIdFT1SIcpRhOP
8I/jntMKaQ8Eoh/IYF9Dtok1v3JTawK/ksW6GzP3Gl5mgKBvcrxFFvVFbQ+Mn6R+omxr
AcQ6bMVsaeUS/jqgu7x3vWYas78j0gDHKF79DbYfSxkq1pLVdy0EtVCqmDUcyUfTikXj
rkjw==
X-Gm-Message-State: AOAM532ZXFXcNhpHAwW36/fDiNsAhEtbRR11VQgpOUrhCqabf91Hxwhi
n9o+AnpNrlet7obhNO5Te/VQfJ3lhLM=
X-Google-Smtp-Source: ABdhPJxt/sBcy6g6J8HVyjtvNVoN3L3ZSewOyfKDKRCf2mtJSCQYHCyaxmBidQ1wH29bsVcIRIwHHQ==
X-Received: by 2002:ac2:446d:: with SMTP id y13mr2230151lfl.365.1615985224797;
Wed, 17 Mar 2021 05:47:04 -0700 (PDT)
To: <cygwin AT cygwin DOT com>
References: <bb34a767-0cb5-1d48-7f9b-ad914762f9f7 AT oracle DOT com>
<97d2b3af-224a-6873-fb4a-55a0ae9cd379 AT cornell DOT edu>
<d9a6467d-e797-8917-3240-e79d55dcfb38 AT oracle DOT com>
<3e3cfe17-7fda-b063-4885-9114db9e748d AT cornell DOT edu>
<70b5577f-2cf1-0110-5d3b-cb2bd8ee6df2 AT cornell DOT edu>
<69ad720c-8ea6-d3bb-b0a5-5556c4550091 AT oracle DOT com>
<2d85550f-d753-4055-8b93-35e5287a9a93 AT oracle DOT com>
<fb99bda7-b5ba-52c0-f2b6-3de4a11eadb9 AT cornell DOT edu>
<bd27871c-6e3d-3381-6066-e70eee98e665 AT oracle DOT com>
<8ad29a66-fb4c-a587-eed3-eaa7e0389a77 AT cornell DOT edu>
<20210201151056 DOT GQ375565 AT calimero DOT vinschen DOT de>
<f46a8b81-5e5c-f84e-522c-fc322ffb6bdf AT oracle DOT com>
<7fb70a75-8557-6c95-27fa-697c92dcedce AT cornell DOT edu>
<000201d71a54$638c67c0$2aa53740$@gmail.com>
<c06b5537-b1f9-5ae7-fd85-8701c412239c AT oracle DOT com>
<0cc7931c-6c07-755d-2d0c-1b62189fddd9 AT cornell DOT edu>
In-Reply-To: <0cc7931c-6c07-755d-2d0c-1b62189fddd9@cornell.edu>
Subject: Sv: Sv: Problems with native Unix domain sockets on Win 10/2019
Date: Wed, 17 Mar 2021 13:47:03 +0100
Message-ID: <000501d71b2b$a1a5f2b0$e4f1d810$@gmail.com>
MIME-Version: 1.0
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQI8NThn3Mer3MK6nW7B8MuJENkyOAF9f+EpArDdXnEBfXeJXwHf9w0GAhxtmUgB/p/ocAH/yr5TAMojum0B4Uuz6QK0PL+iAjJtzlgAuJO9YgIMYV8fAaLsph0CM5efqqjfRPJw
X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Kristian Ivarsson via Cygwin <cygwin AT cygwin DOT com>
Reply-To: sten DOT kristian DOT ivarsson AT gmail DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 12HClBWP028349

[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


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019