virtual-memory

Meaning of SIZE and RSS values in prstat output

Can somebody give some clear explanation of the meaning of the SIZE and RSS values we get from prstat in Solaris? I wrote a testing C++ application that allocates memory with new[], fills it and frees it with delete[]. As I understood, the SIZE value should be related to how much virtual memory has been "reserved" by the process, that ...

Determine who/what reserved 5.5 GB of virtual memory in w3wp.exe

On my machine (XP, 64) the ASP.net worker process (w3wp.exe) always launches with 5.5GB of Virtual Memory reserved. This happens regardless of the web application it's hosting (it can be anything, even an empty web page in aspx). This big old chunk of virtual memory is reserved at the moment the process starts, so this isn't a gradual ...

Virtual Memory Usage from Java under Linux, too much memory used

I have a problem with a java application running under linux. When I launch the application, using the default maximum heap size (64mb), I see using the tops application that 240 MB of virtual Memory are allocated to the application. This creates some issues with some other software on the computer, which is relatively resource-limited...

Java and virtual memory handling

Is it possible tell the JVM to hint the OS that a certain object should preferably not get pushed out to swap space? ...

Is there a way to increase virtual memory in an application started from NetBeans?

In my project I often encounter Java heap space errors, i.e., there isn't enough space to run the program any more. Is there any way I can increase virtual memory? I am not using the command-line. I am using Net Beans. ...

How to avoid running out of memory in high memory usage application? C / C++

I have written a converter that takes openstreetmap xml files and converts them to a binary runtime rendering format that is typically about 10% of the original size. Input file sizes are typically 3gb and larger. The input files are not loaded into memory all at once, but streamed as points and polys are collected, then a bsp is run on ...

legacy gcc compiler issues

We are using a legacy compiler, based on gcc 2.6.0, to cross compile for an old imbedded processor we are still using (yes, it is still in use since 1994!). The engineer that did the gcc port for this chip has long since moved on. Although we might be able to recover the gcc 2.6.0 source from somewhere on the web, the change set for this...

How can I use a page table to convert a virtual address into a physical one?

Lets say I have a normal page table: Page Table (Page size = 4k) Page #: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Page Frame #: 3 x 1 x 0 x 2 x 5 x 7 4 6 x x x How can I convert an arbitrary logical address like 51996 into a physical memory address? If I take log base 2 (4096), ...

Preventing a heavy process from sinking in the swap file

Our service tends to fall asleep during the nights on our client's server, and then have a hard time waking up. What seems to happen is that the process heap, which is sometimes several hundreds of MB, is moved to the swap file. This happens at night, when our service is not used, and others are scheduled to run (DB backups, AV scans etc...

iPhone app uses 60mb of virtual memory on startup

Now, I know my app uses a lot of graphics, but not 60mb of graphics. However, Instruments shows me that the app is using 60+mb of virtual memory just after startup. The compiled app is 24mb big, and we're talking about the idle welcome screen after startup; any idea why the VM size might be this huge? ...

Get JVM to grow memory demand as needed up to size of VM limit?

We ship a Java application whose memory demand can vary quite a lot depending on the size of the data it is processing. If you don't set the max VM (virtual memory) size, quite often the JVM quits with an GC failure on big data. What we'd like to see, is the JVM requesting more memory, as GC fails to provide enough, until the total a...

Computer System Class and Virtual Memory - Need help with the Algebra

I have what might be more of a math question but this question is stemming from reading my computer systems book in the chapter on Virtual Memory... so I feel justified asking it here. The book states: Each virtual page is P = 2p bytes in size. My algebra is rusty which is probably the reason I need to ask this. Now, for an examp...

Windows 32-bit virtual memory page mapping issue

Hello everyone, I am learning from here about Windows 32-bit virtual memory page mapping, (I am targeting modern Windows versions, like Vista, Win 7, Server 2003/2008 32-bit versions.) http://blogs.msdn.com/ericlippert/archive/2009/06/08/out-of-memory-does-not-refer-to-physical-memory.aspx Two confusions, user space virtual memory ...

Pointer Implementation Details in C

I would like to know architectures which violate the assumptions I've listed below. Also I would like to know if any of the assumptions are false for all architectures (i.e. if any of them are just completely wrong). sizeof(int *) == sizeof(char *) == sizeof(void *) == sizeof(func_ptr *) The in-memory representation of all pointers fo...

How to use virtual memory (swap in linux file system ) in java web programming

I work in java web application . In some section i use very huge tree variable that save and persist in memory (RAM) . Can i migrate this to virtual memory (swap) . note : huge tree consist name and email for all user that use in suggestion Ajax text-box . ...

Operations and functions that increase Virtual Bytes

Having some out-of-memory problems with a 32-bit process in Windows I begun using Performance Monitor to log certain counters for that process. Though it is normal that Virtual Bytes is higher than both Private Bytes and Working Set, I found that in my case there was a substantial difference, Virtual Bytes was much higher than both Priv...

Retrieving the memory map of its own process in OS X 10.5/10.6

In Linux, the easiest way to look at a process' memory map is looking at /proc/PID/maps, giving something like this: 08048000-08056000 r-xp 00000000 03:0c 64593 /usr/sbin/gpm 08056000-08058000 rw-p 0000d000 03:0c 64593 /usr/sbin/gpm 08058000-0805b000 rwxp 00000000 00:00 0 40000000-40013000 r-xp 00000000 03:0c 4165 /lib/...

Linux 3/1 virtual address split

I am missing something when it comes to understanding the need for highmem to address more than 1GB of RAM. Could someone point out where I go wrong? Thanks! What I know: 1 GB of a processes' virtual memory (high memory region) is reserved for kernel operations. The user space can use the remaining 3 GB. This is the 3/1 split. The...

Can I run out of virtual memory on linux?

My application similar to hypotetical program: for(;;) { for (i=0; i<1000; i++) { p[i] = malloc(random_number_between_1000_and_100000()); p[i][0]=0; // update } for (i=0; i<1000; i++) { free(p[i]); } } Has no memory leaks but on my system, the consumption of memory (top, column VSS) grows without limits (such as ...

why does the memory mappped region grow down in Linux

Consider this because this region maps the files like dynamically loaded libraries, i feel it should ideally grow up. this can be implemented by starting the mmap region between RLIMIT_STACK and heap beginning. what problems would occur in this case. if it grows down, then how is a new memory mapped region created. suppose we wish to ma...