Re: how to test this piece of C code



On Sat, 10 Mar 2007 03:21:20 -0600, Richard Heathfield wrote
(in article <sOCdnRu3b6LV5W_YRVnyuAA@xxxxxx>):

subramanian100in@xxxxxxxxx, India said:

On Mar 10, 3:27 am, Richard Heathfield <r...@xxxxxxxxxxxxxxx> wrote:
subramanian10...@xxxxxxxxx, India said:

I do not understand this. Kindly explain. Does it mean that in real
world applications SIZE_MAX memory won't be asked from malloc/realloc

No, it doesn't mean that.

or there won't be 4GB of input file for testing ?

No, it doesn't mean that, either. It just means that most companies are
unlikely to have a machine containing that much physical RAM.

True enough, unless you happen to be working for a platform vendor or
RAM vendor. I've had access to max-mem configs many times over the
years, most of them while working for hardware manufacturers, not pure
software shops.



--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw





.



Relevant Pages

  • Re: Decoding strategy
    ... The virtual memory range is not reserved until you call ... MapViewOfFile. ... My point is that the amount of data in physical RAM will be related to your ... file offset currently being mapped. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Memory problems with Terminal Server 2003
    ... The number you see in Task Manager in the "PF Usage" box is *not* the current Page File usage, nor is it the current size of your Page File. ... Think of the above number as the total amount of memory allocated by the programs you have running on the server. ... For example, if you have a server with 32GB of physical RAM, and you have a 16GB page file, then you have a total of 48GB of memory for use by programs. ...
    (microsoft.public.windows.terminal_services)
  • Re: RSS accounting (was: Re: 2.6.19-rc1-mm1)
    ... number do you need to implement a resource limit. ... of private dirty resident pages would be interesting. ... result as it would take so much memory to store the result. ... By physical RAM I mean that if a single page is used twice ...
    (Linux-Kernel)
  • Re: Allocating kernel memory
    ... > I never complained about the real memory that was used but pointed out ... > that a large portion of the kernel virtual address space is used up. ... RAM you should avoid PAE, ... But it was limited to 1GB of physical RAM. ...
    (comp.os.linux.development.system)
  • Hmm... my mistake...
    ... The 'memory' I said was the 'buffer'. ... // But this always have to be placed on physical ram. ... > addition, unless you are doing pretty low level stuff, RAM management is ... >> I'm testing file copying with large memory cache. ...
    (microsoft.public.dotnet.framework)