Most of the literature on Virtual Memory point out that the as a Application developer,understanding Virtual Memory can help me in harnessing its powerful capabilities. I have been involved in developing applications on Linux for sometime but but didn't care about Virtual Memory intricacies while I code. Am I missing something? If so, pl...
I want to go backwards and learn more about how compilers, processors and memory operate on my programs. I am also interested in the physics on which all of this depends. Any good references or books would be appreciated...
...
Are machine word size (or smaller) writes serialized? Only one native opcode is needed to copy register content to RAM.
...
Here is the test URL
http://edventures.com/temp/divtest.php
Procedure:
Close all IE instances.
Open the URL in IE7
Open the task manager, look for memory consumed by IE
Now click on Create button,
Watch the memory it will jump up by about 2K
Now click on Destroy button and the DIV will be destroyed but the memory remains the same.
Y...
Hi,
I've read through the source code, and tried to research it online but i am hitting a brick wall in terms of fully understanding it.
By fully i mean, how does it differ from the zone allocation?
Is the "zone's" used for small memory and the "hunk" for larger stuff like models etc.?
Thanks
...
I have a really simple PHP script here,which simply loads several libraries (6 or 7 small classes) and initialize some variables then generate a very small amount of html code. But seeing from the memory_get_usage() function, I see 1.21MB memory usage.
Is that normal or something is wrong?
...
i have a large list of static data from a server that i load on startup. I load this into a hashtable of foo objects. the user has a dropdown where they can choose one of these object. by default there are 50,000 objects which take up a lot of memory. i am trying to reduce memory
after monitoring usage, it turns out that most people o...
Is there a way to determine the unshared memory size of a process on SunOS? Specifically the size of a child httpd process running under mod_perl if that helps.
...
The Microchip PIC MPLAB (MCC18) compiler segments its memory into 256 chunks ( 0x100 ).
How can I create an array larger than 256 bytes?
char buffer[256];
Just to get to 256 I needed to make a seperate segment with a #pragma
#pragma udata segment_name
char buffer[256];
#pragma udata
So I can either force MCC18 to let allocate a la...
I have enterprise app with EJB. The total size of the app is 34 meg.
When i deploy my app everything is fine but when I redeploy it the number of total loaded classes increases. I'm using visualVM to see this info.
So is it how it should be or it's a memory leak. How to solve this problem?
Thanks
...
If i have a string formatting program in C, that consits of only one file, is it possible to find where that file resides in memory and let the running program process its own source file? In other words, when a C program runs, is it possible to define a pointer that points to the actual code, and process that? Not sure if that makes sen...
So here's the situation:
I have a CALayer that is the size of my screen, and I'm setting the contents property to a 2 Mb JPEG that's roughly 3500 x 2000 pixels in size with a resolution of 240ppi.
I'd expect there to be a slight overhead involved in using the CALayer, but my sample application (which only does exactly what's above) sho...
Is WM operating system protects process memory against one another?
Can one badly written application crash some other application just mistakenly writing over the first one memory?
...
I'm developing an Eclipse plugin and am going to start presenting it in conferences and other venues, so people will install it.
One limitation of the plugin is that because of the amount of information it has to maintain to work, it needs more heap space than what is allocated to Eclipse by default. Eclipse runs with a miniscule max he...
I know the basic principles about memory management (retain count, autorelease pools etc) in Cocoa, but once you go past simple retain/release, it's getting a bit more confusing. I couldn't find decent answers for those, as most tutorials cover simple scenarios. I would like to ask about best practices in how to write the code and avoid ...
I have a very large column-delimited file coming out of a database report in something like this:
field1,field2,field3,metricA,value1
field1,field2,field3,metricB,value2
I want the new file to have combine lines like this so it would look something like this:
field1,field2,field3,value1,value2
I'm able to do this using a hash. In t...
I've recently become interested in algorithms and have begun exploring them by writing a naive implementation and then optimizing it in various ways.
I'm already familiar with the standard Python module for profiling runtime (for most things I've found the timeit magic function in IPython to be sufficient), but I'm also interested in me...
The Java memory model makes it clear what can and cannot be assumed about how threads interact through memory. For example, if one thread writes a new value to a field without appropriate synchronization then the new value is not guaranteed to be observable by other threads. In practice, however, other threads might anyhow read the new v...
Customer X has asked for ways to improve the startup time of a Java process he uses. The problem is, it is not run through a jar file, but rather 'jnlp' (which I am assuming indicates it is a java webstart application)
StartUserWorx.jnlp
Is there a way to convert this to a JAR file and then have the user invoke the application locally...
Functionally, what's the difference between a USB flash drive and an SSD (aside from their interfaces, because duh)? Lots of nice gooey hardware discussion is totally welcome.
...