How can I be sure that a process does not go to sleep?

Page 1 of 3 123 LastLast

  1. Posts : 16
    windows 10 home
       #1

    How can I be sure that a process does not go to sleep?


    Hi all,
    I am running a small computational program (written by me) in a command prompt window in Windows 10 Home. No input, just some numbers written in a file and screen once in a while. The computation can be very long, I do not know when the numbers could be output. So sometimes I have the suspect that when the computer screen goes off or after some more time also the program freezes. I have put on the foreground the performance meter with the CPU and upon resume I see that the line is always at 34% (by the way is there any way to give to this process 100% ?), but I am not sure this is enough since the meter axis could be frozen itself and there is no time mark.
    I appreciate any suggestion or explanation on this issue, thanks
      My Computer

  2. Try3's Avatar
    Posts : 10,011
    Windows 10 Home x64 Version 21H2 Build 19044.1466
       #2

    regressist said:
    How can I be sure that a process does not go to sleep?
    Go to Power options and set the computer to Never go to Sleep or Hibernate.

    Denis
      My Computer


  3. Posts : 16
    windows 10 home
    Thread Starter
       #3

    Try3 said:
    Go to Power options and set the computer to Never go to Sleep or Hibernate.

    Denis
    Thanks Denis, I thought there was a possibility to wakelock the process, but this should be ok anyway.

    Do you know how to increase che CPU percentage to the process? In professional it is possible but in home I did not find the way to do it
      My Computer

  4. Ghot's Avatar
    Posts : 15,707
    Win 10 Home 10.0.19044.1466 (x64) [21H2]
       #4

    regressist said:
    Thanks Denis, I thought there was a possibility to wakelock the process, but this should be ok anyway.

    Do you know how to increase che CPU percentage to the process? In professional it is possible but in home I did not find the way to do it


    In Task Manager, choose the "Details" tab.
    Find the process in question, right click it and choose: Set Priority > Realtime
      My Computer


  5. Posts : 16
    windows 10 home
    Thread Starter
       #5

    Ghot said:
    In Task Manager, choose the "Details" tab.
    Find the process in question, right click it and choose: Set Priority > Realtime
    Thanks again,

    done but does not change anything, I had already put very high and was around 34%, like now
      My Computer

  6. Ghot's Avatar
    Posts : 15,707
    Win 10 Home 10.0.19044.1466 (x64) [21H2]
       #6

    regressist said:
    Thanks again,

    done but does not change anything, I had already put very high and was around 34%, like now

    It could be that the process in question, can only use 34% of the CPU.
    Maybe the process isn't that complex, or maybe it's just coded that way.
    Yes... I noticed you said that you wrote it.
      My Computer

  7. Try3's Avatar
    Posts : 10,011
    Windows 10 Home x64 Version 21H2 Build 19044.1466
       #7

    I agree with Ghot.

    I think the 34% you are seeing means that Windows can cope with everything the program asks of it with ease. In other words, it only asks for things that amount to 34%.

    Just to check a potential complication, run
    Code:
    PowerCfg -a
    to check that you do not have S0 Modern standby (aka S0 Low Power Idle).

    Denis
      My Computer


  8. Posts : 16
    windows 10 home
    Thread Starter
       #8

    Try3 said:
    I agree with Ghot.

    I think the 34% you are seeing means that Windows can cope with everything the program asks of it with ease. In other words, it only asks for things that amount to 34%.

    Just to check a potential complication, run
    Code:
    PowerCfg -a
    to check that you do not have S0 Modern standby (aka S0 Low Power Idle).

    Denis
    The output is that in the system S0 is available while S1/2/3 are not available
      My Computer

  9. Try3's Avatar
    Posts : 10,011
    Windows 10 Home x64 Version 21H2 Build 19044.1466
       #9

    Oh.

    S0 starts to try to reduce loading as soon as the display is turned off.
    - I can bore you with dozens of links to S0 definitions if you have nothing better to do with your life.

    Alternatively, just deliberately keep the display on [in power options] to compare the performance so you can decide about a course of action.
    - If your program starts before S0 kicks in then S0 should allow it to continue working normally but might not [I was not sure when I last read the definition].
    - In my S0 computer, I have display off set to Never but I also have a blank screensaver set to come on after 1 minute. It's a sort of compromise.

    Denis

    I keep posting incomplete versions of posts because I have a keyboard problem and I keep messing up my workaround.
    Last edited by Try3; 01 Dec 2021 at 07:31.
      My Computer


  10. Posts : 16
    windows 10 home
    Thread Starter
       #10

    Try3 said:
    Oh.

    S0 starts to try to reduce loading as soon as the display is turned off.
    - I can bore you with dozens of links to S0 definitions if you have nothing better to do with your life.

    Alternatively, just deliberately keep the display on [in power options] to compare the performance so you can decide about a course of action.
    - If your program starts before S0 kicks in then S0 should allow it to continue working normally but might not [I was not sure when I last read the definition].
    - In my S0 computer, I have display off set to Never but I also have a blank screensaver set to come on after 1 minute. It's a sort of compromise.

    Denis

    I keep posting incomplete versions of posts because I have a keyboard problem and I keep messing up my workaround.
    Thanks a lot for your reply, also to Ghot. I think that now S0 is not stopping it, both from the little change in the numbers and the little warmth in the fan which before was cold. The next night will be a good indication, otherwise I have to find a blackpicture and set it as a screensaver, this program will run for many weeks overall.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:58.
Find Us




Windows 10 Forums