Re: Doubts about free()



Ian Collins <ian-news@xxxxxxxxxxx> writes:
vippstar@xxxxxxxxx wrote:
On Oct 31, 2:49 pm, Pawel Dziepak <pdzie...@xxxxxxxxxxx> wrote:
Assuming there is a need for memory by some other process and no other
free memory is available, is it the case malloc for the other process
would fail under such circumstances. Does the OS do some kind of
tracking and free up this memory. Is there any way to force freeing up
the memory to the system back.
I don't think that <snip>

Please don't remove attribution lines.
<http://www.netmeister.org/news/learn2quote1.html>

Why pick on this bloke rather than that arrogant prat Burditt?

Not speaking for vippstar, but experience has shown that picking on
that arrogant prat Burditt is ineffective.

--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
.



Relevant Pages

  • Re: RFT: updatedb "morning after" problem [was: Re: -mm merge plans for 2.6.23]
    ... memory freed it so there is free memory that could be filled with data ... in some other situations swap prefetch cannot help becouse useless data is getting cached at the expense of useful data. ... the design is to use CPU and I/O capacity that's otherwise idle to fill free memory with data from swap. ... Upon completion, it actually frees enough memory that swap-prefetch _could_ help on some boxes, while the real issue is that they should first and foremost dump GNU locate. ...
    (Linux-Kernel)
  • Re: [patch 02/11 -mmotm] lowmemorykiller: Dont count free space unless it meets the specified li
    ... I'm not seeing what this patch has to do with contiguous free memory. ... kernel freed cache memory (since the lowmemorykiller looked at the sum ...
    (Linux-Kernel)
  • Re: Doubts about free()
    ... other free memory is available, is it the case malloc for the other ... tracking and free up this memory. ... Why pick on this bloke rather than that arrogant prat Burditt? ... Picking on that arro... ...
    (comp.lang.c)
  • Re: Doubts about free()
    ... no other free memory is available, is it the case malloc for ... the OS do some kind of tracking and free up this memory. ... Why pick on this bloke rather than that arrogant prat Burditt? ... Among other things, vippstar made a reply to Dziepaks message, and ...
    (comp.lang.c)
  • Re: Solaris 2.6 high pages scans
    ... > I can see the the amount of free memory rarely dips below 230MB and the ... list and is seen by the page scanner as in use. ...
    (comp.unix.solaris)