Thread: Monitoring Page Swapping?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    PhysicistTurnedProgrammer Cell's Avatar
    Join Date
    Jan 2009
    Location
    New Jersey
    Posts
    72
    Quote Originally Posted by brewbuck View Post
    Are the "si" and "so" fields which "vmstat -n 1" generates not sufficient?
    Well, there are probably many things that are sufficient. However, I'm new to this so I may not know them.

    The "si" and "so" fields do look to be exactly what I want.

    I was using "vmstat -s" to format it so its easier to view.

    It looks like "vmstat -n 1" starts all values from 0 and continues to update forever? If so, that is exactly what I'm looking for.

    Thanks!

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    I don't think vmstat is cumulative. It just displays the number of events per update cycle. You could do some light post-processing on it to turn it into a cumulative report.

    EDIT: I didn't mean to be harsh in my previous post, just genuinely curious whether vmstat could do what you want, since it's a lot easier.
    Last edited by brewbuck; 03-19-2009 at 11:45 AM.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  3. #3
    PhysicistTurnedProgrammer Cell's Avatar
    Join Date
    Jan 2009
    Location
    New Jersey
    Posts
    72
    Quote Originally Posted by brewbuck View Post
    I don't think vmstat is cumulative. It just displays the number of events per update cycle. You could do some light post-processing on it to turn it into a cumulative report.

    EDIT: I didn't mean to be harsh in my previous post, just genuinely curious whether vmstat could do what you want, since it's a lot easier.
    No offense taken at all. Vmstat is exactly what I was looking for.

    Thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Segmentation fault!?!?!?
    By Viper187 in forum Windows Programming
    Replies: 57
    Last Post: 10-02-2008, 09:40 PM
  2. Page File counter and Private Bytes Counter
    By George2 in forum Tech Board
    Replies: 0
    Last Post: 01-31-2008, 03:17 AM
  3. why page based I/O can improve performance?
    By George2 in forum C Programming
    Replies: 1
    Last Post: 06-12-2006, 07:42 AM
  4. virtual memory
    By sweets in forum C Programming
    Replies: 6
    Last Post: 11-06-2004, 06:55 AM
  5. C Graphics - Page Flipping
    By z0diac in forum C Programming
    Replies: 1
    Last Post: 10-29-2002, 01:21 AM