delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/09/24/13:27:14

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:to:in-reply-to:from:subject:message-id:date
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=bCYc9rI/VHkgeZbwihqKjLHQcl1WS797rkhwnMC7eUMmrAuaOzSQS
v1X4SlQ3jQ16d/oeqep/fYb260BkVp6vZ1YPs86N+uHL83P6M74vaI1GCYk17TkA
xlK37VPVajjmoFU+UtlvrtMWoFKNfvNbMdsf2+C/6a9eD4DNtNV5Kk=
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:to:in-reply-to:from:subject:message-id:date
:mime-version:content-type:content-transfer-encoding; s=default;
bh=nKy3KcYxHFRU8lAJL2qadBluDfQ=; b=mnVrknbciVWzskgJIUqS+0HPZlxJ
vzpTcz4mVvD8WMZbagA2qbOnAlA3xL4NfeslTyYROpEp+7jWwtCmds3X5V6RcjEb
IDGMILkEcc4jJnAcNiG1QzBr23V9mf3b6ISqAagSmoWq5tWoI6IEcPyiN+kOvETD
tqd9jJLDxdWgp64=
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=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mout.gmx.com
To: cygwin AT cygwin DOT com
In-Reply-To: <20150923185528.6E9C1A00.helmut.karlowski@ish.de>
From: litter AT null DOT net
Subject: Re: Bash / cygwin process spawning (?) performance very slow
Message-ID: <56043259.7080505@null.net>
Date: Thu, 24 Sep 2015 19:26:49 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
MIME-Version: 1.0
X-UI-Out-Filterresults: notjunk:1;V01:K0:6iIpJ3LOkP4=:GByu6hVkVjFA/J8q157HUi BHVUNR/JcCe/8Xj8DHKPxhEyFc5eGXbturXG1lAFeGvaPGFE/O/zwIYZ3+c8JMU6ICXou8Mxz yITwB7sl8SRaCgaZZObFCJ/sVGAzYasBH4zThbN92++k/tP534V2WV+TuJUPeS7Q4/APl3L4h cfen90qzIpHqZ+J7sHL83WV/RtsIQSeHvGqH3f/F2oVQinS938Bn3vv6N06LDDqq1aXqMnssb 8FB+5FwNF4NuEaQFWYtPH0HCOwVQiYsbvlArs+vM0VzEfJsWLmCWe6dKaJUOe9PgQUZhAR52r eiwa3v/fhgECWDRJN2+43OVN/TtmWJK392GoljUXsPaTeD4LodtvH2DjtjG3yok9RJEvuFHrW AL+zkpaDt+4KCpSvMWoaPMegtjCCtNfPpOtIPwlsOpNGfsvN5HPPnkh8g81awq1KrXHPBe1x4 wDeTP16+0gZifDdA/0tzIxMUmvASjTEIms3l/DdJRr3xsKov7IW0hku9w2vM+t7wSw8jFKhjE 9SxeHrybdA7CZ7SjbZHJvz8VCYijImyBHAqKQ0MbTDyeRQsAckg+wL3duJk0unkwsIrQfcoan CZqtbsUwO26dA0shrdZL+e4x1MPuL5GjBHqP4cbVf/G/9UnWq5lQkppE5jR1QKLGluBm4iK54 yhihmBOl039XszcirgDukNNSLnEr0l87BnLmB2J++2IFQkVRR5ZeqGDD6rHL6asMKrzaEWIEO IHAGHbGseK4AEQ4mH5NbxJ//0NH595Ednkv65Q==

> Maybe:
> 
> strace bash -c 'time cat some-file | while read i;do echo 
> $i;/bin/true;done'
> 
> Haven't tested it.
> 
> Simplify the command:
> 
> for((i=0;i<150;i++));do /bin/true;done
> 
> to rule out a pipe-problem.

Thanks for the tips! Used a variant on the for loop to simplify the problem.

Regards,
Paul

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

- Raw text -


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