Re: Swap performance statistics in 2.6 -- which /proc file has it?

From: Richard B. Johnson (root_at_chaos.analogic.com)
Date: 12/09/03

  • Next message: Philippe Troin: "Re: [NFS] Re: [NFS client] NFS locks not released on abnormal process termination"
    Date: 	Tue, 9 Dec 2003 15:24:06 -0500 (EST)
    To: Dominik Kubla <dominik@kubla.de>
    
    

    On Tue, 9 Dec 2003, Dominik Kubla wrote:

    > Richard B. Johnson wrote:
    > > If you need statistics v.s. time, you need to write an application
    > > that samples things at some fixed interval. In a previous life,
    > > I requested that "nr_free_pages()" be accessible from user-space,
    > > probably via /proc. That's all you need. Maybe that could be
    > > added now? In any event, samping free pages at some fixed-time
    > > interval should give you all the information you need.
    >
    > vmstat -a
    > sar -B
    > sar -r
    >
    > O'Reilly's "System Performance Tuning" might make for an interesting read,
    > especially pages 110ff (also its Linux informations are a bit out of date).
    >
    > Regards,
    > Dominik Kubla

    Hmm. I was talking about real stuff, not some theory.....

    Script started on Tue Dec 9 15:19:25 2003
    # vmstat -a
    usage: vmstat [-V] [-n] [delay [count]]
                  -V prints version.
                  -n causes the headers not to be reprinted regularly.
                  delay is the delay between updates in seconds.
                  count is the number of updates.
    # sar -B
    bash: sar: command not found
    # sar -r
    bash: sar: command not found
    # exit
    exit
    Script done on Tue Dec 9 15:20:03 2003

    Maybe it was a different system???

    Script started on Tue Dec 9 15:21:24 2003
    # rlogin hal
    Password:
    Last login: Tue Oct 28 12:00:38 on console
    Sun Microsystems Inc. SunOS 5.5.1 Generic May 1996
    # vmstat -a
    Usage: vmstat [-cisS] [disk ...] [interval [count]]
    # sar -B
    sar: illegal option -- B
    usage: sar [-ubdycwaqvmpgrkA][-o file] t [n]
            sar [-ubdycwaqvmpgrkA][-s hh:mm][-e hh:mm][-i ss][-f file]
    # sar -r
    sar: can't open /var/adm/sa/sa09
    No such file or directory
    # uname -a
    SunOS hal 5.5.1 Generic sun4m sparc SUNW,SPARCstation-5
    # exit
    rlogin: connection closed.
    # exit
    exit
    Script done on Tue Dec 9 15:22:32 2003

    ... Guess not.

    Cheers,
    Dick Johnson
    Penguin : Linux version 2.4.22 on an i686 machine (797.90 BogoMips).
                Note 96.31% of all statistics are fiction.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Philippe Troin: "Re: [NFS] Re: [NFS client] NFS locks not released on abnormal process termination"

    Relevant Pages

    • Re: vmstat meaning
      ... >What does the first line in vmstat mean? ... Where I would worry is that very high %wio you see with sar -- the ... the memory consumption somehow. ...
      (comp.unix.admin)
    • RE: Timing several processes
      ... Running sar ... (at this point a long wait while sar and vmstat finish) ... perldoc perlipc ... > to parse the data I will generate, ...
      (perl.beginners)
    • Re: vmstat and sar problem
      ... Subject: vmstat and sar problem ... sadc: 0551-109 Warning: The kernel data structures are not consistent. ...
      (AIX-L)
    • Re: performance
      ... Raymond wrote: ... > The best things to use are vmstat, iostat and sar (this sometimes need ... of vmstat, iostat, sar, etc. ...
      (comp.unix.tru64)
    • RE: Timing several processes
      ... It seems that using redirection with the sar command is a little ... (at this point a long wait while sar and vmstat finish) ... perldoc perlipc ... > parse the data I will generate, ...
      (perl.beginners)