Re: memory reported under linux higher that allocated?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Benoit Tremblay wrote:
  Hi,
I have 4 gig of RAM and when I allocate 3 gig the <top> utilities show that my application is using 87% of the available RAM, so it's a half a gig more, why? The application is not doing any disk access. I just do a couple of malloc and the same amount of free at exit. I count all malloc by incrementing a "m" variable and I decrement the same "m" variable when doing free and at the program exit I display the value of "m" and it is zero. I stop doing malloc when my "m" variable reach 3 gigabytes so I am sure I allocate only 3 gigabytes so why my application is using 87% of all available RAM? Benoit


What is the "available" RAM before your app starts? It is less than 4 GB, since there is a lot of other stuff running in addition to your app.

How much memory is you app using that isn't part of the malloc request?

John

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux