physical memory usage: reduce

This is a discussion on physical memory usage: reduce within the Linux Programming forums, part of the Platform Specific Boards category; Help me to find utilite to monitor physical memory usage for given application. Namely i want to see it reduction ...

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

    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
    32,847
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 05: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, 03: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, 03:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21