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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:03:40+00:00 2026-05-20T11:03:40+00:00

Basically I want to have all processes that have been sleeping for more than

  • 0

Basically I want to have all processes that have been sleeping for more than one hour.

I know that there is etime in ps, but sadly it shows the overall lifetime.

How can this be done under linux (preferably with ps)?

  • 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-20T11:03:40+00:00Added an answer on May 20, 2026 at 11:03 am

    The /proc/pid/sched file contains a metric ton of scheduling data:

    $ cat sched
    bash (2192, #threads: 1)
    ---------------------------------------------------------
    se.exec_start                      :     294360163.632873
    se.vruntime                        :         17694.720927
    se.sum_exec_runtime                :          2643.766318
    se.statistics.wait_start           :             0.000000
    se.statistics.sleep_start          :     294360163.632873
    se.statistics.block_start          :             0.000000
    se.statistics.sleep_max            :      34689385.720961
    se.statistics.block_max            :         11337.665116
    se.statistics.exec_max             :             7.657145
    se.statistics.slice_max            :             0.550257
    se.statistics.wait_max             :             7.464190
    se.statistics.wait_sum             :            37.981183
    se.statistics.wait_count           :                13774
    se.statistics.iowait_sum           :          1556.105204
    se.statistics.iowait_count         :                  278
    sched_info.bkl_count               :                    0
    se.nr_migrations                   :                 2816
    se.statistics.nr_migrations_cold   :                    0
    se.statistics.nr_failed_migrations_affine:                    0
    se.statistics.nr_failed_migrations_running:                  335
    se.statistics.nr_failed_migrations_hot:                   14
    se.statistics.nr_forced_migrations :                    0
    se.statistics.nr_wakeups           :                13471
    se.statistics.nr_wakeups_sync      :                 3293
    se.statistics.nr_wakeups_migrate   :                 2532
    se.statistics.nr_wakeups_local     :                  655
    se.statistics.nr_wakeups_remote    :                12816
    se.statistics.nr_wakeups_affine    :                   78
    se.statistics.nr_wakeups_affine_attempts:                 9452
    se.statistics.nr_wakeups_passive   :                    0
    se.statistics.nr_wakeups_idle      :                    0
    avg_atom                           :             0.196329
    avg_per_cpu                        :             0.938837
    nr_switches                        :                13466
    nr_voluntary_switches              :                13447
    nr_involuntary_switches            :                   19
    se.load.weight                     :                 1024
    policy                             :                    0
    prio                               :                  120
    clock-delta                        :                   95
    

    I suggest reading through the /proc/*/sched files looking for se.statistics.nr_wakeups or se.statistics.wait_count lines that don’t change for an hour. I don’t know off-hand which one would give you ‘better’ results, but try both 🙂 and see which one gives you answers like you expect.

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

Sidebar

Related Questions

I have an SPListItemCollection. I basically want to get one of the items (randomly)
Basically I have some variables that I don't want to preinitialize: originalTime = None
I have a method CreateAccount(...) that I want to unit test. Basically it creates
I have a QueueProcessor class that processes a work queue. I want to send
Almost all of the applications I've ever written have been GUIs of one form
Been banging my head against this all morning. Basically, I have a listbox, and
tl;dr-edition: I have a compilation I know that will fail, but want the subset
So I basically want to have a static method in my AR class to
i'm experimenting with django and the builtin admin interface. I basically want to have
Basically I want to have our installer also install the .NET framework and any

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.