Thread: Swap memory

  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    136

    Angry Swap memory

    Hi,

    Do anyone hav idea, how do i check that swap memory of the linux system has been strated its utilization. and whenever it starts swap memory utilization then from where memory is being allocated for that? I mean its heap only or some where else.
    S_ccess is waiting for u. Go Ahead, put u there.

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    -> Linux Programming board.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Moved -> Linux Programming board.
    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.

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Great. Now look into /proc/swaps. It lists all active swap space, its type (partition or file, I think), its size, how much of that is used, and its priority.

    You'll want the used size, probably.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with insert/delete binary search tree
    By Nazgulled in forum C Programming
    Replies: 39
    Last Post: 03-25-2009, 04:24 PM
  2. Suggestions on this C style code
    By Joelito in forum C Programming
    Replies: 11
    Last Post: 06-07-2007, 03:22 AM
  3. Shared Memory - shmget questions
    By hendler in forum C Programming
    Replies: 1
    Last Post: 11-29-2005, 02:15 AM
  4. Memory allocation and deallocation
    By Micko in forum C++ Programming
    Replies: 3
    Last Post: 08-19-2005, 06:45 PM
  5. Memory & Swap
    By ghe1 in forum Linux Programming
    Replies: 2
    Last Post: 03-20-2002, 12:04 PM