Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5978185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:28:40+00:00 2026-05-22T21:28:40+00:00

I am trying to figure out how much memory my program which uses MPI

  • 0

I am trying to figure out how much memory my program which uses MPI needs. It was suggested to use the function “top” to obtain the usage of memory. However, I am unclear on what the information means.

I wish to know how to estimate the system memory and how much it utilizes?

top - 13:52:41 up 208 days, 19:50,  1 user,  load average: 0.68, 0.15, 0.05
Tasks:  86 total,   6 running,  80 sleeping,   0 stopped,   0 zombie
Cpu(s): 98.5% us,  0.6% sy,  0.0% ni,  0.8% id,  0.0% wa,  0.0% hi,  0.1% si
Mem:   1024708k total,   225144k used,   799564k free,   104232k buffers
Swap:        0k total,        0k used,        0k free,    37276k cached

PID   USER      PR  NI  VIRT RES  SHR  S %CPU  %MEM  TIME+  COMMAND
12052 amohan    16   0  9024 4756 5504 R 99.0  0.5   0:09.65 greet
12054 amohan    16   0  9024 4756 5504 R 99.0  0.5   0:09.64 greet
12055 amohan    16   0  9024 4752 5504 R 98.7  0.5   0:09.65 greet
12053 amohan    16   0  9024 4760 5504 R 98.7  0.5   0:09.63 greet

This question is related to an earlier post Fatal Error in MPI_Irecv: Aborting Job

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:28:40+00:00Added an answer on May 22, 2026 at 9:28 pm

    The standard information displayed by top is, in order:

    • The Process ID
    • The owning username
    • The kernel-assigned process priority (higher is “lower” priority)
    • The “niceness” of the process (higher is “nicer” to other processes and gives the process a “lower” priority)
    • The virtual memory allocated for the process in KiB
    • The resident memory in use by the process (the memory that has been malloc()ed and is not swapped out) in KiB
    • The shared memory (the memory that is accessible to both the running process, its sibling processes, and any other processes that have been granted access) accessible to the process in KiB
    • The run state (R is running, Z is zombie, S is sleeping, etc.)
    • The % of CPU in use (obviously)
    • The % of memory in use relative to total system memory
    • The cumulative time that the process has been in a Run state

    More detailed information should be available in man top.

    In particular, the memory that MPI likely uses is contained in the shared memory area. More detailed information can be pulled from the /proc/ directory, but I don’t know the specifics off the top of my head.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to figure out which to use.
I was trying to figure out how much memory I can malloc to maximum
i'm trying to figure out how much i can use of the javascript language
In trying to figure out this problem (which is still unsolved and I still
I'm trying to figure out how much javascript is being loaded on my website.
I was trying to figure out how much RAM / CPU I needed at
I have spent so much time trying to figure out how numbers work in
Trying to figure out the best way to use Nuget in a development environment
I'm trying to figure out why our software runs so much slower when run
I'm trying to figure out how much overlap there is between the different languages

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.