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 6205177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:13:32+00:00 2026-05-24T05:13:32+00:00

I see a lot of threads asking about situations with elapsed time (wall time)

  • 0

I see a lot of threads asking about situations with elapsed time (wall time) being less than user+kernel time, and I understand how multi-threading can cause this situation. However, when timing an execution of some MPI code via:

$ time mpirun -n 4 ./a.out

I’m seeing elapsed times that range from 4-5 minutes, user times of about 40 seconds, and kernel times of about 40 seconds. I’m thinking that barrier synchronization between processes could be part of the cause, or perhaps time only getting information about a single MPI process, but I’m still not able to rationalize exactly what is causing my readings. Can anyone explain that?

Thanks very much.

  • 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-24T05:13:33+00:00Added an answer on May 24, 2026 at 5:13 am

    For many processes I expect wall clock time to greatly exceed total CPU time. Few processes are CPU bound so they will spend a lot of time waiting. Fortunately wait times don’t get charged to the process anymore. Things that cause waits:

    • I/O of any sort (disk, network, interprocess pipes, etc.).
    • Resource synchronization between processes.
    • Time slices allocated to other processes.
    • Memory swapping (not to common these days).
    • Interrupts of pretty well any other sort.

    Even heavy duty statistical software is likely to do I/O which will cause CPU utilization to be less than wall clock time.

    An extreme example is to copy a large file from one partition on a disk to another partition on the same disk. This can take lots of Wall time with little CPU time. If you have the ability to use ionice you can make the Wall time even higher if the disk is at all busy with other work.

    The following command will likely show significantly higher real (wall clock) time than user and sys time combined.

    time bash -c "read ans"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I see there are lot's of threads here in SO about asking for a
I see a lot in autoconf code about stuff being dnl'ed and not dnl'ed.
I see a lot of JDK 1.6 notes about how to open an HTML
I see a lot of questions, both here on SO and elsewhere, about maintaining
I see a lot of threads on google/here on UPDATING a UI element from
I have seen lot of threads about loading a PDF in Android Webview. But
well, i make a loop that makes a lot of threads, see: foreach (DataGridViewRow
I found a lot of threads about how to setup git over ssh with
i find lot of Threads about Log Parser, but none fulfill my desire, i
I've looked around, and I do see previous questions where people ask about Date/Time

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.