473,399 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

restrict growing VM of a process

Hi,
My program is non-leaky, I've checked on that.
More virtual memory is allocated to it by the system then is required by it.
I'm filling a linked list which grows in size to around 1GB (at this point
the VM is around 2GB)
Pretty soon the 2GB limit is crossed and the program terminates.
Comparatively VC6 version is allocated less VM then the VS2005 version.
But still the 2GB limit is crossed.
Is there any compiler switch etc that could restrict this extra VM from
growing too much then is required?
Is there a way to free this VM dynamically?
Any solutions are welcome.

Navneet
May 25 '06 #1
2 1228
Navneet Kumar wrote:
Hi,
My program is non-leaky, I've checked on that.
More virtual memory is allocated to it by the system then is required by it.
I'm filling a linked list which grows in size to around 1GB (at this point
the VM is around 2GB)
Pretty soon the 2GB limit is crossed and the program terminates.
Comparatively VC6 version is allocated less VM then the VS2005 version.
But still the 2GB limit is crossed.
Is there any compiler switch etc that could restrict this extra VM from
growing too much then is required?
Is there a way to free this VM dynamically?
Any solutions are welcome.


If you're working with these amounts of data, you're better off to use a
disk based linked list instead of trying to hold it all in memory. When
using large amounts of virtual memory, Windows gets EXTREMELY slow.
Google around and you'll find numerous articles on disk based data
structures

http://www.google.com/search?hs=z9b&...es&btnG=Search

Andrew Faust
May 25 '06 #2
Hi Navneet,

Most memory allocators don't cope well with progressively increasing
requests for memory. I imagine this is because they fail to consolidate
released memory. If your code does this then one possible workaround is to
precalculate the memory you will require and then ask for it in one hit.
Worth a try anyway.

Cheers
Doug Forster

"Navneet Kumar" <na**********@gmail.com> wrote in message
news:%2********************@TK2MSFTNGP04.phx.gbl.. .
Hi,
My program is non-leaky, I've checked on that.
More virtual memory is allocated to it by the system then is required by
it.
I'm filling a linked list which grows in size to around 1GB (at this point
the VM is around 2GB)
Pretty soon the 2GB limit is crossed and the program terminates.
Comparatively VC6 version is allocated less VM then the VS2005 version.
But still the 2GB limit is crossed.
Is there any compiler switch etc that could restrict this extra VM from
growing too much then is required?
Is there a way to free this VM dynamically?
Any solutions are welcome.

Navneet

May 25 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Subodh | last post by:
I've written a SP which does some complex calculations and in the end dumps data into 2 tables (master & detail) When I run this sp for smaller no of IDS (employees i.e for 13000 in Master and...
8
by: Ryan R. Rosario | last post by:
Hi - **I apologize for posting this again. I dont think my first one went thru** I am in the process of converting a table based website over to a CSS based website and I am having a problem....
2
by: Guru | last post by:
Hi, I am working in a framework based project where my html page is rendered inside that framework. The framework code is done by other team and that can not be modified. Here is my problem : ...
2
by: Khaled Hussein | last post by:
Hello, I would like to know how can I restrict access for specific files and folders for specific running processes. For example: Lets say we have three running process P1, P2, and P3, I want to...
1
by: Cy Huckaba | last post by:
We are running our company website on a win2k server running .NET framework 1.0 and IIS 5. The pages consist of mostly static content built from a combination of custom controls (dll is only 148k...
1
by: Hoon | last post by:
It seems that asp.net worker process keeps growing and it slows the web server down. Does anybody have an idea what could trigger this kind of problem??? thanks in advance, Hoon
4
by: yashgt | last post by:
Hi, We have created a SQL server 2000 database. We observe that the transaction log keeps growing over time. We are now about to run out of space. We have been periodically shrinking the...
1
by: Pablo Bianco SE | last post by:
Hi everyone, I am new in this group. I have a question and would like to have some support. A customer is experiencing memory problems with the asp.net worker process. The have an application...
6
by: Burkhard Schultheis | last post by:
I've installed a fresh DB2 V9.1 server (Express-C). Now I see, that the number of applications (db2 list applications) is growing all the times when a script is run which makes some database...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.