delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/11/15/00:53:50

X-Spam-Check-By: sourceware.org
Message-ID: <455A9FEB.3060809@tlinx.org>
Date: Tue, 14 Nov 2006 21:04:43 -0800
From: Linda Walsh <cygwin AT tlinx DOT org>
User-Agent: Thunderbird 1.5.0.8 (Windows/20061025)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Excessive thrashing when popen()ing after a large malloc()
References: <20061114154207 DOT 3B49E148F021 AT u53026a DOT matapp DOT unimib DOT it>
In-Reply-To: <20061114154207.3B49E148F021@u53026a.matapp.unimib.it>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

I tried your program as is:

~/test> cygthrash
  0.000 Before std
  0.781 After std
  0.828 Result: Tue Nov 14 20:51:52 PST 2006
  0.828 After close std
  0.000 Before new
  0.015 After new
  0.062 Result: Tue Nov 14 20:51:52 PST 2006
  0.062 After close new
  0.000 Before std
  0.766 After std
  0.797 Result: Tue Nov 14 20:51:53 PST 2006
  0.797 After close std

(no thrash) and with 750Mb malloc:

~/test> cygthrash
  0.000 Before std
  0.015 After std
  0.046 Result: Tue Nov 14 20:53:41 PST 2006
  0.046 After close std
  0.000 Before new
  0.000 After new
  0.032 Result: Tue Nov 14 20:53:41 PST 2006
  0.032 After close new
  0.000 Before std
  0.015 After std
  0.047 Result: Tue Nov 14 20:53:41 PST 2006
  0.047 After close std

at 1G malloc, I started running out of memory

Loic Grenie wrote:
> On Tue Nov 14 15:53:36 2006, Eric Blake (ebb9 AT byu DOT net ) wrote:
>   
>> And admitting that your changes are untested is not a good sign for
>> getting it approved.
>>     
>     I'm not really "admitting", I am just expliciting that the patch is
>   untested. I do not have the resources to build the thing.
>
>       Sorry to have disturbed, happy cygwining,
>   
Guess you didn't know that all posters are automatically on trial here to
defend their ideas and posts.  Some can't help but take the role of
prosecutor & detective (too much CSI maybe?) :-).

-linda


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

- Raw text -


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