Coder Social home page Coder Social logo

qmemstat's Introduction

QMemstat

QMemstat is a tool to inspect the address space of a process.

The Linux kernel exposes quite detailed information about the memory pages that processes use, and information about the pages themselves, which can be put together to get detailed information about a given process. qmemstat uses this information from the kernel and shows it in a more convenient format. Since the kernel interfaces used are root-only for security reasons, qmemstat needs to run as root, or at least a "server" needs to run as root for qmemstat.

Tools

QMemstat contains two related tools:

memstat

Command-line tool. It must be run as root.

memstat has two modes:

  • display memory use information: memstat <pid>|<process-name> outputs the following three numbers:
    • VSZ (virtual set size): the size of the address space of the process
    • RSS (resident set size): the size of physical memory in the address space of the process
    • PSS (proportional set size): like RSS, but for shared memory pages the size is divided by the number of users. This is the most accurate "actual memory used" value.
  • server mode: memstat <pid>|<process> --server <port-number> continuously grabs address space information and provides it to qmemstat (see below).

qmemstat

GUI tool which shows information about a process's address space, and which updates the information continuously.

It has two modes:

  • standalone: qmemstat <pid>|<process-name> (must be run as root) shows a graphical view of the address space of the process.
    • Hold down the left mouse button to see the flags of the page under the cursor in the panel on the left.
  • as a client to memstat running in server mode (does not need root): qmemstat --client <server-address> <port-number> Otherwise it works like standalone mode.

qmemstat's People

Contributors

ahartmetz avatar chsterz avatar krf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qmemstat's Issues

Adopt to differing ProcFS formats

Sometimes the (mmap) backing filename is in col 5, sometimes in 6 .
Either find the procfs format and adapt to it or just use the "last" column.

Move sources to dedicated directory

I think it would be helpful to have the source files in a dedicated subdirectory and not directly in the root, as this is more common and helps to distinguish sources, documentation, etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.