Computationally intensive programs 'stall out'How do I get started with an Ubuntu friendly GUI framework?How...

Slow moving projectiles from a hand-held weapon - how do they reach the target?

How do I say "Brexit" in Latin?

Word or phrase for showing great skill at something without formal training in it

Jumping Numbers

How to avoid being sexist when trying to employ someone to function in a very sexist environment?

What is the in-universe cost of a TIE fighter?

Why is "points exist" not an axiom in geometry?

What to do when being responsible for data protection in your lab, yet advice is ignored?

A minimum of two personnel "are" or "is"?

Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?

What is the wife of a henpecked husband called?

Show that the following sequence converges. Please Critique my proof.

Am I a Rude Number?

What does Cypher mean when he says Neo is "gonna pop"?

The effects of magnetism in radio transmissions

What makes the Forgotten Realms "forgotten"?

Program that converts a number to a letter of the alphabet

How can animals be objects of ethics without being subjects as well?

How should I handle players who ignore the session zero agreement?

Groups acting on trees

Broken patches on a road

Lick explanation

What kind of hardware implements Fourier transform?

Eww, those bytes are gross



Computationally intensive programs 'stall out'


How do I get started with an Ubuntu friendly GUI framework?How to add a new language definition for syntax highlighting in Gedit?Script to turn off Wacom Bamboo touch randomly stops workingTensorflow reader slowdown on Ubuntu 16.04Help Diagnosing Problem in Developing Custom OpenOffice 4.1 App using C++ Ubuntu 14.04.01 LTS serverUbuntu Crashes upon using editors with no error screenCode::Blocks 17.12 not compilinghow to run a graphical program via CLI?My .SH script stop working after sometime. [Pictures]My script run for 30-40 min and then stop. I need to run all the time. [New Problem]













0















I've been having some issues running code on my Ubuntu systems. The same error occurs on my 14.04 workstation, and my 16.04 laptop. I write code to diagonalize matrices or do tensor manipulations, and the task isn't one big, gigantic problem, but one relatively manageable problem repeated several hundred or thousand times, with certain parameters tweaked. For example, I could be running code to find eigenvalues of a matrix, and then the same matrix but with a few numbers changed, and again and again. This problem occurs with code I write in Julia and C++, though I expect similar things will happen if I use Python.



When I run the code, at first the program seems to run smoothly, but after a few dozen iterations it stops producing output. Running top shows that the CPU is still being used for the process, but no more output is being produced, even though the same problem (with slightly different parameters) had run perfectly well for several dozen iterations before. The RAM usage is low (~5%), and Ubuntu doesn't freeze or slow down at all. There's nothing special about the exact moment when it stops working - I can rerun the code with the same parameters when the program stopped, and it works fine, until a few dozen more iterations pass and the problem occurs again.



One special thing I noticed when running top was that the program stalling out was almost always associated with a decrease in processor usage. When the program runs fine, it uses 400-600% of my CPU, but when it stalls out that number always drops to 100%.



I'd be grateful for any ideas at all. Thanks in advance.









share







New contributor




AureySteader is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I've been having some issues running code on my Ubuntu systems. The same error occurs on my 14.04 workstation, and my 16.04 laptop. I write code to diagonalize matrices or do tensor manipulations, and the task isn't one big, gigantic problem, but one relatively manageable problem repeated several hundred or thousand times, with certain parameters tweaked. For example, I could be running code to find eigenvalues of a matrix, and then the same matrix but with a few numbers changed, and again and again. This problem occurs with code I write in Julia and C++, though I expect similar things will happen if I use Python.



    When I run the code, at first the program seems to run smoothly, but after a few dozen iterations it stops producing output. Running top shows that the CPU is still being used for the process, but no more output is being produced, even though the same problem (with slightly different parameters) had run perfectly well for several dozen iterations before. The RAM usage is low (~5%), and Ubuntu doesn't freeze or slow down at all. There's nothing special about the exact moment when it stops working - I can rerun the code with the same parameters when the program stopped, and it works fine, until a few dozen more iterations pass and the problem occurs again.



    One special thing I noticed when running top was that the program stalling out was almost always associated with a decrease in processor usage. When the program runs fine, it uses 400-600% of my CPU, but when it stalls out that number always drops to 100%.



    I'd be grateful for any ideas at all. Thanks in advance.









    share







    New contributor




    AureySteader is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I've been having some issues running code on my Ubuntu systems. The same error occurs on my 14.04 workstation, and my 16.04 laptop. I write code to diagonalize matrices or do tensor manipulations, and the task isn't one big, gigantic problem, but one relatively manageable problem repeated several hundred or thousand times, with certain parameters tweaked. For example, I could be running code to find eigenvalues of a matrix, and then the same matrix but with a few numbers changed, and again and again. This problem occurs with code I write in Julia and C++, though I expect similar things will happen if I use Python.



      When I run the code, at first the program seems to run smoothly, but after a few dozen iterations it stops producing output. Running top shows that the CPU is still being used for the process, but no more output is being produced, even though the same problem (with slightly different parameters) had run perfectly well for several dozen iterations before. The RAM usage is low (~5%), and Ubuntu doesn't freeze or slow down at all. There's nothing special about the exact moment when it stops working - I can rerun the code with the same parameters when the program stopped, and it works fine, until a few dozen more iterations pass and the problem occurs again.



      One special thing I noticed when running top was that the program stalling out was almost always associated with a decrease in processor usage. When the program runs fine, it uses 400-600% of my CPU, but when it stalls out that number always drops to 100%.



      I'd be grateful for any ideas at all. Thanks in advance.









      share







      New contributor




      AureySteader is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I've been having some issues running code on my Ubuntu systems. The same error occurs on my 14.04 workstation, and my 16.04 laptop. I write code to diagonalize matrices or do tensor manipulations, and the task isn't one big, gigantic problem, but one relatively manageable problem repeated several hundred or thousand times, with certain parameters tweaked. For example, I could be running code to find eigenvalues of a matrix, and then the same matrix but with a few numbers changed, and again and again. This problem occurs with code I write in Julia and C++, though I expect similar things will happen if I use Python.



      When I run the code, at first the program seems to run smoothly, but after a few dozen iterations it stops producing output. Running top shows that the CPU is still being used for the process, but no more output is being produced, even though the same problem (with slightly different parameters) had run perfectly well for several dozen iterations before. The RAM usage is low (~5%), and Ubuntu doesn't freeze or slow down at all. There's nothing special about the exact moment when it stops working - I can rerun the code with the same parameters when the program stopped, and it works fine, until a few dozen more iterations pass and the problem occurs again.



      One special thing I noticed when running top was that the program stalling out was almost always associated with a decrease in processor usage. When the program runs fine, it uses 400-600% of my CPU, but when it stalls out that number always drops to 100%.



      I'd be grateful for any ideas at all. Thanks in advance.







      scripts c++ julia-lang





      share







      New contributor




      AureySteader is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      AureySteader is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      AureySteader is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 1 min ago









      AureySteaderAureySteader

      1




      1




      New contributor




      AureySteader is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      AureySteader is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      AureySteader is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          AureySteader is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1122379%2fcomputationally-intensive-programs-stall-out%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          AureySteader is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          AureySteader is a new contributor. Be nice, and check out our Code of Conduct.













          AureySteader is a new contributor. Be nice, and check out our Code of Conduct.












          AureySteader is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1122379%2fcomputationally-intensive-programs-stall-out%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

          Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

          Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...