Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • What if PC sleeps?

    Hello,

    Does anyone know, what happens if pc sleeeps while stata continues estimation? It continues from where it left or it stops?

    Kind Regards,
    Dias
    Last edited by Said Jafar; 09 Jan 2016, 23:52.

  • #2
    I think that depends quite heavily on your own system configurations. If it is only the monitor that is "sleeping" the processors wouldn't be affected. If it is the CPU that is "sleeping" that may be something that is altogether different.

    Comment


    • #3
      Thank you for your response.

      Turning off the screen usually does not affect anything. Here i mean full sleeping of the pc.
      The thing is this, if the pc sleeps during estimation, it shows the circle at the right below corner still turning when it wakes up. In normal cases it indicates stata is busy with estimation, but i do not what does mean in this case.

      Comment


      • #4
        With windows desktop machines you can go to the control panel. choose Power Options, and tell the machine to never sleep. On a laptop you can probably set it to never sleep provided the machine is plugged in.
        -------------------------------------------
        Richard Williams, Notre Dame Dept of Sociology
        StataNow Version: 19.5 MP (2 processor)

        EMAIL: [email protected]
        WWW: https://www3.nd.edu/~rwilliam

        Comment


        • #5
          Dear Mr Richard,

          I would like to know whether Stata stops running the regression when pc sleeps, or still there is a hope that i may get the outcome. When pc wakes up, the circle on the right bottom still continues to turn and i do not know what stata does.

          Comment


          • #6
            My desktop is set to never sleep (although monitor can go off). According to these people, your job will not run while in sleep mode, although you can take steps to override. Me, I would just change the power settings, at least temporarily.

            http://www.sevenforums.com/general-d...-programs.html

            http://www.sevenforums.com/performan...es-active.html
            -------------------------------------------
            Richard Williams, Notre Dame Dept of Sociology
            StataNow Version: 19.5 MP (2 processor)

            EMAIL: [email protected]
            WWW: https://www3.nd.edu/~rwilliam

            Comment


            • #7
              Dias Rafaj I would say the bigger concern when working with a Windoze machine is that the OS will sometimes force an update which causes a reboot in the middle of running your code. I was helping someone a while ago with running some fairly intensive simulations on my home desktop (which at the time was running Windoze 7 exclusively) and about a day and a half/two days into the script the OS decided it was a good time to push an update, reboot the system, and do so in a way that didn't allow me to intervene. So, in addition to Richard's advice, I'd say it'd also be worth making sure automatic updating is deactivated as much as possible while you're running more computationally demanding code.

              Comment


              • #8
                Dear Richard and wbuchanan

                Thank you for your time. Sometimes i use a pc in the lib, where some changes can be made by only staff. But i have made that changes to my notebook.

                But i think i need to give some more clarification to my question. I would like to ask whether pc continues the last ongoing estimation from where i left or it stops it? That is, if i execute a command that needs hours to finish (my case), and pc sleeps before estimation finishes, then, when it wakes up, stata continues the estimation from where it left or?

                Comment


                • #9
                  See the links I gave earlier. Execution is suspended when the PC goes to sleep. When it wakes up I think execution will resume.

                  But why not just try it and see? Or, check out the ideas presented in those posts to prevent the computer from going to sleep.
                  -------------------------------------------
                  Richard Williams, Notre Dame Dept of Sociology
                  StataNow Version: 19.5 MP (2 processor)

                  EMAIL: [email protected]
                  WWW: https://www3.nd.edu/~rwilliam

                  Comment


                  • #10
                    Dear Mr. Rafaj

                    I am in the same situation as you were... could you clarify what did you do finally to solve this issue? or how did the computer finally do? was it still running?

                    Thanks a lot

                    Comment


                    • #11
                      wbuchanan
                      So, in addition to Richard's advice, I'd say it'd also be worth making sure automatic updating is deactivated as much as possible while you're running more computationally demanding code.


                      Good advice. But, sometimes not possible. At home, I have control over this. But my institution has a network policy that requires all connected Windows computers to have automatic updating turned on. And somehow they are able to actually check on this and disconnect me when I change that setting! Arrgh! I, too, have experienced loss of several days ongoing work that way. Is there a way to turn off automatic updates that is invisible to the network's panopticon?




                      Comment


                      • #12
                        I have had a PC go to sleep (when there is a power outage, the desktop gets a signal from the battery backup to go to sleep) during a lengthy calculation; when the machine 'revived' the calculation continued as if without interruption. Short answer: it has worked for me, can't be sure it will for you.

                        hth,
                        Jeph

                        Comment


                        • #13
                          Is there a way to turn off automatic updates that is invisible to the network's panopticon?
                          A workaround for such situations, imagining you wont need the machine for much else, would be to disconnect it from the network for that.

                          Comment


                          • #14
                            Jorrit Gosens the problem with that solution is that it may prevent logging back into the computer if it is set up to verify login credentials from active directory or a similar credential system. Clyde Schechter there are options to configure the update process to allow users to schedule the installation (e.g., they would push downloading the update, but nothing would be installed until you clicked OK on something). Perhaps that would be a reasonable solution for the IT folks?

                            Comment


                            • #15
                              Originally posted by Ignacio Aznar View Post
                              Dear Mr. Rafaj

                              I am in the same situation as you were... could you clarify what did you do finally to solve this issue? or how did the computer finally do? was it still running?

                              Thanks a lot
                              Dear Aznar,

                              Thankfully, it continues calculation from where it left. Not always but in some cases i have got results.

                              Hope this helps,
                              Dias

                              Comment

                              Working...
                              X