delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/03/25/04:09:39

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type; q=dns; s=default; b=hKdb
9WaYWO36WYFgf12Z8ty9meiGPZ+cHNwrT2O0HnjalESItTWbK4OIn2CfarePIICv
ZQQPJWVBP4UZm4Yqoi0mp/7vO4tOZ/PlMXgELQrveJsoAir53JjGbrQry0q3adVy
Yun9VlOSVIWbuNI9xvLsu++FsjtE918Vfz0SBFY=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type; s=default; bh=yGYaPu40yF
yXZceJQ8mWRKeQIbI=; b=qqYMLoH/pgILyKcOou3QXIgvJl1qpTEV9yBX4j9fCM
+UMvYjMM6sVnBZGlgA3QEREF02PaIsYVOX52jlMljYwctJx9T3Qlxs5iL1ZTsh9+
FcIXsB/jGseNNAQvBibCybOA1pu/55Prl5CHQuzs76tSNg9M5LB7taTNdbztUWiD
w=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=cease, workers, HX-Received:Sat, million
X-HELO: mail-wm0-f44.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=Q8l3cPkR83ysTSEmsvRkmbiKeGdFH+MDewcniEAoJ4Y=; b=WGCCMWdb7HIx7TNXj1z4sZZgPxqc2wpdRct2OSmKAK95eJ2JvXf7G1PBMPmAGhRGNc mvuWNNy4HEE54eC6KUWJ/J3qvqXijhrgeCI+y4YQG7RC0On1cwpT+biuJDUeFWc+rjAv RfBtPTqqbD1E5/Wya6RquMLhRVblaE+rZ0cQOIqrF/c+2Nz63HpSLlhj4wB3cMllESF+ eu4Q4y+EdA0iCLaD/6soIhu8MSmZ/QztXsO0VuwVPoPysXYidHFEsGbFcwBE7GzQ/HNV RYXF1pYO/XjFAh28Vfv4ytS44zBxlLJqdqNf1LlkhB/bdMyc2sGnyrHvh529HMNRq0Z+ 6QdA==
X-Gm-Message-State: AFeK/H3QmOhr2g/Vn0UBb70+EvB/14i+KqimHw5HUpfhGRiD+Fvx1tj470kspT2WyIDJ8g==
X-Received: by 10.28.54.194 with SMTP id y63mr1143039wmh.46.1490429362096; Sat, 25 Mar 2017 01:09:22 -0700 (PDT)
Subject: Re: cygserver - Postgres Multiple connection Load Testing - Inifinte Loop
To: cygwin AT cygwin DOT com
References: <200408030333 DOT i733XEXn023894 AT mx3 DOT redhat DOT com> <20040803100612 DOT GP31522 AT cygbert DOT vinschen DOT de> <20170321025614 DOT GA2100214 AT tornado DOT leadboat DOT com> <20170324171101 DOT GI29995 AT calimero DOT vinschen DOT de>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <ffa36cc6-a875-aad2-4a63-4ba7408f2ace@gmail.com>
Date: Sat, 25 Mar 2017 09:09:17 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <20170324171101.GI29995@calimero.vinschen.de>
X-IsSubscribed: yes

--------------698259E3F9B514D0EB3A643A
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

On 24/03/2017 18:11, Corinna Vinschen wrote:
> Hi Noah,
>

>>
>> On GNU/Linux, AIX, and Solaris, the processes keep busy and finish one million
>> lock/unlock cycles apiece in a few minutes.  On Cygwin, they hang within a few
>> seconds and under one hundred cycles apiece.  At that point, cygserver is
>> unresponsive to other clients; for example, "strace /bin/true", opening a new
>> Cygwin terminal, "cat /proc/sysvipc/sem" and "cygserver -S" all hang.  In most
>> tests, cygserver was not consuming CPU while unresponsive.
>
>
> I pushed a patchset now, and uploaded new developer snapshots for
> testing to https://cygwin.com/snapshots/
>
> I'm also going to create a 2.8.0-0.4 test release later today.
>
> Please give it a try, and please note that *all* patches affect
> cygserver itself, so you have to test the new cygserver in the
> first place.  The Cygwin DLL is not affected by the changes.
>
>
> Thanks,
> Corinna
>

Hi Corinna,
just noted a small glitch.

Attached a modification of Noah's test, it now accepts the number of 
workers and semaphore are as before workers/4

./sema_parallel-2 32
  worker ....
  OK

./sema_parallel-2 64
semget
semget: Invalid argument

If I restart the cygserver

./sema_parallel-2 64
  worker ....
  OK

./sema_parallel-2 128
semget
semget: Invalid argument


It seems that the number of max available semaphores is frozen to first 
call value.










--------------698259E3F9B514D0EB3A643A
Content-Type: text/plain; charset=UTF-8;
 name="sema_parallel-2.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="sema_parallel-2.c"

LyoNCiAqIERlbW9uc3RyYXRlIGN5Z3NlcnZlciBoYW5nIHVuZGVyIGNvbmN1
cnJlbnQgc3lzdiBzZW1hcGhvcmUgdHJhZmZpYy4gIFJ1bg0KICogd2l0aG91
dCBhcmd1bWVudHMuICBPdXRwdXQgd2lsbCBjZWFzZSB3aXRoaW4gYSBmZXcg
c2Vjb25kcyw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DQogICAgew0KCXBlcnJvcigic2VtdGN0bChJUENfUk1JRCkiKTsN
CglzdGF0dXMgPSAxOw0KICAgIH0NCg0KICAgIHJldHVybiBzdGF0dXM7DQp9
DQoNCg==


--------------698259E3F9B514D0EB3A643A
Content-Type: text/plain; charset=us-ascii


--
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
--------------698259E3F9B514D0EB3A643A--

- Raw text -


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