delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/03/08:29:18

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
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: side effects of Cygwin's maximum memory test
Date: Tue, 3 May 2005 13:13:18 +0100
MIME-Version: 1.0
In-Reply-To: <20050503090546.GD25050@calimero.vinschen.de>
Message-ID: <SERRANOkMUVfNIJWNDI000001b9@SERRANO.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 03 May 2005 12:13:12.0987 (UTC) FILETIME=[7A6516B0:01C54FD9]

----Original Message----
>From: Corinna Vinschen
>Sent: 03 May 2005 10:06

> On May  3 00:25, Utku Ozcan wrote:
>> I *think* that the test below, which tests memory allocation limit of
>> Cygwin *might* produce problems in Windows XP:
>> 
>> http://sources.redhat.com/cygwin/cygwin-ug-net/setup-maxmem.html
>> 
>> In this page, I have compiled the C code, and after having run the
>> compiled executable, Windows XP gave suddenly a warning that virtual
>> memory setting has been changed (I think, that repeated malloc() calls
>> in this code somehow change the virtual memory settings in Windows
>> XP).
> 
> Not really.
> 
> 
> Corinna


  Interestingly enough, there _is_ some kind of problem here.    I haven't
been hit by any HD problem, but when I tried the test program, it gave me an
ever-increasing series of values, and then suddenly stopped working
altogether and wouldn't recover!

dk AT mace /test/maxmem> ./maxmem.exe
5095e000 bytes (1289.4Mb)
dk AT mace /test/maxmem> ./maxmem.exe
518be000 bytes (1304.7Mb)
dk AT mace /test/maxmem> ./maxmem.exe
51956000 bytes (1305.3Mb)
dk AT mace /test/maxmem> ./maxmem.exe
519de000 bytes (1305.9Mb)
dk AT mace /test/maxmem> ./maxmem.exe
51a7e000 bytes (1306.5Mb)
dk AT mace /test/maxmem> ./maxmem.exe
51b7e000 bytes (1307.5Mb)
dk AT mace /test/maxmem> ./maxmem.exe
51dbe000 bytes (1309.7Mb)
dk AT mace /test/maxmem> ./maxmem.exe
51f7e000 bytes (1311.5Mb)
dk AT mace /test/maxmem> ./maxmem.exe
521be000 bytes (1313.7Mb)
dk AT mace /test/maxmem> ./maxmem.exe
523fe000 bytes (1316.0Mb)
dk AT mace /test/maxmem> ./maxmem.exe
525fe000 bytes (1318.0Mb)
dk AT mace /test/maxmem> ./maxmem.exe
528fe000 bytes (1321.0Mb)
dk AT mace /test/maxmem> ./maxmem.exe
52b7e000 bytes (1323.5Mb)
dk AT mace /test/maxmem> ./maxmem.exe
52dbe000 bytes (1325.7Mb)
dk AT mace /test/maxmem> ./maxmem.exe
52f7e000 bytes (1327.5Mb)
dk AT mace /test/maxmem> ./maxmem.exe
5317e000 bytes (1329.5Mb)
dk AT mace /test/maxmem> ./maxmem.exe
5337e000 bytes (1331.5Mb)
dk AT mace /test/maxmem> ./maxmem.exe
534ee000 bytes (1332.9Mb)
dk AT mace /test/maxmem> ./maxmem.exe
5367e000 bytes (1334.5Mb)
dk AT mace /test/maxmem> ./maxmem.exe
537de000 bytes (1335.9Mb)
dk AT mace /test/maxmem> ./maxmem.exe
5393e000 bytes (1337.2Mb)
dk AT mace /test/maxmem> ./maxmem.exe
53afe000 bytes (1339.0Mb)
dk AT mace /test/maxmem>
dk AT mace /test/maxmem> ./maxmem.exe
53d7e000 bytes (1341.5Mb)
dk AT mace /test/maxmem> ./maxmem.exe
53f7e000 bytes (1343.5Mb)
dk AT mace /test/maxmem> ./maxmem.exe
542fe000 bytes (1347.0Mb)
dk AT mace /test/maxmem> ./maxmem.exe
dk AT mace /test/maxmem> ./maxmem.exe
dk AT mace /test/maxmem> ./maxmem.exe
dk AT mace /test/maxmem> ./maxmem.exe
dk AT mace /test/maxmem> ./maxmem.exe
dk AT mace /test/maxmem> ./maxmem.exe

  Trying to run it under insight, the first time I tried it it worked, but
when I tried to rerun it it crashed and took insight with it!

  There has been some persistent leak of some resource, because after
getting into that state, other cygwin applications start failing with
"resource temporarily unavailable" problems.  Even after killing all my
cygwin shells and processes (and therefore having hopefully completely
unloaded the dll and released the shared heap and so on), newly started
shells can only sometimes run the testapp, and never more than once.

  I'll post more information when I have it.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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