Article View: be.comp.programming
Article #692Virtueel geheugen opgebruikt?
From: ColinB
Date: Thu, 12 Oct 2006 08:12
Date: Thu, 12 Oct 2006 08:12
36 lines
2362 bytes
2362 bytes
Hallo, Ik ben een console type applicatie in vc++ 6.0 aan het debuggen onder win XP met 1 GB aan RAM. De stack allocation linker optie (/stack) staat op 0x3000000. De applicatie probeert 5 worker threads op te starten met _beginthreadex (stacksize altijd op 0). In die threads worden onder andere expliciet libraries geladen met LoadLibrary (en gebruikt). Het probleem is nu dat het starten van de tweede thread faalt: _beginthreadex geeft 0. Het opvragen van errno resulteert in 12 (ENOMEM) of "Not enough memory". Als ik op dat moment de applicatie monitor met Process Explorer van Sysinternals.com toont het me het volgende onder Performance, Virtual Memory: - Private Bytes: 56.600 K - Peak Private Bytes: 56.600 K - Virtual Size: 1.801.284 K - Page Faults: 32.644 - Page Fault Delta: 0 Onder Physical Memory: - Working Set: 61.184 K Vooral de waarde van Virtual Size vind ik nogal zorgwekkend. Dit is de totale virtuele adresruimte gebruikt door het proces dat al of niet geresserveerd is. Ik heb ergens gelezen dat van de normaal 4GB adresseerbare ruimte windows je iets minder dan de helft laat gebruiken. Enig idee hoe ik dit zou kunnen oplossen of een leidraad om de grootte van het virtueel geheugen te beperken? mvg, Colin B.
Technical Details
Message-ID:
<1160640767.361001.136220@e3g2000cwe.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!e3g2000cwe.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: fcea4,b16a8cc8c772c8c4,start X-Google-Attributes: gidfcea4,public X-Google-Language: DUTCH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!e3g2000cwe.googlegroups.com!not-for-mail From: "ColinB" <colin_bouckaert@hotmail.com> Newsgroups: be.comp.programming Subject: Virtueel geheugen opgebruikt? Date: 12 Oct 2006 01:12:47 -0700 Organization: http://groups.google.com Lines: 37 Message-ID: <1160640767.361001.136220@e3g2000cwe.googlegroups.com> NNTP-Posting-Host: 194.78.249.130 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1160640772 15302 127.0.0.1 (12 Oct 2006 08:12:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 12 Oct 2006 08:12:52 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: e3g2000cwe.googlegroups.com; posting-host=194.78.249.130; posting-account=2S-oAg0AAACPUVxypjtftGd_1eSDrqdU