Thread: physical memory usage: reduce

  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    53

    physical memory usage: reduce

    Help me to find utilite to monitor physical memory usage for given application. Namely i want to see it reduction after calling
    madvise(..., MADV_DONTNEED) on MAP_ANONYMOUS memory space.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    madvise(2) - Linux manual page
    Quote Originally Posted by the manual page
    The kernel is free to ignore the advice.
    The kernel might just bump that address range to the top of the list of pages to be next swapped out, but I doubt it would actively start a flurry of paging activity just on that basis. What happens next is surely in reaction to the demands of other processes on the machine.

    Also,
    Quote Originally Posted by man page for ps
    rss RSS resident set size, the non-swapped physical memory that a task has used (in kiloBytes). (alias rssize, rsz).

    vsz VSZ virtual memory size of the process in KiB (1024-byte units). Device mappings are currently excluded; this is subject to change. (alias vsize).
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Physical and Logical Memory.
    By TheUmer in forum General Discussions
    Replies: 3
    Last Post: 11-04-2010, 04:28 AM
  2. Bison/Yacc shift/reduce reduce/reduce
    By AnthonyGould in forum Tech Board
    Replies: 0
    Last Post: 11-20-2009, 08:15 AM
  3. Reduce CPU usage
    By patrick22 in forum Windows Programming
    Replies: 9
    Last Post: 07-10-2009, 02:13 PM
  4. Editing of physical memory
    By Sang-drax in forum Windows Programming
    Replies: 0
    Last Post: 11-15-2003, 09:09 AM
  5. Reading physical memory
    By meatpuppet in forum C Programming
    Replies: 5
    Last Post: 09-06-2002, 02:57 PM