CPU is maxing one core and not using others (John The Ripper)











up vote
3
down vote

favorite












I just built a new computer last week and have been running Ubuntu 14.04. I've noticed it only ever runs one core hard and the others will be below 5%. I was running John The Ripper just now and it would only max one CPU. I tried changing the affinity...



andrew@andrew-MS-7817:~$ taskset -p 0xFFFFFFFF 14219
pid 14219's current affinity mask: 3
pid 14219's new affinity mask: f


Nothing changed on the system monitor though... 3 of the CPU's were still under 5%. I also did a lscpu and this was the output...



andrew@andrew-MS-7817:~$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 60
Stepping: 3
CPU MHz: 3614.402
BogoMIPS: 6599.82
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 6144K
NUMA node0 CPU(s): 0-3


I've never noticed the CPU go above 30% usage... Any ideas?










share|improve this question
























  • When it's running a single core hard, can you also run top and determine what application is consuming CPU
    – Charles Green
    Jan 16 '16 at 18:05






  • 4




    Assuming you have installed john from the Ubuntu repository, that one is single threaded only, so john can only utilize one core.
    – Thomas
    Jan 16 '16 at 18:14










  • That would explain it... And I haven't done anything else that's very CPU intensive yet. Possibly it just hasn't needed to use more than 30% any other time. Thank you very much!
    – A.Rowden
    Jan 16 '16 at 18:17






  • 1




    You would have to build john on your own and enable openmp for example to make it multithreaded and john could utilize all cores. You could also install stress and start it with stress -c <num-cores> to see all cores being utilized.
    – Thomas
    Jan 16 '16 at 18:20










  • Thank you, the stress test did show all 4 cores are being utilized.
    – A.Rowden
    Jan 16 '16 at 19:29















up vote
3
down vote

favorite












I just built a new computer last week and have been running Ubuntu 14.04. I've noticed it only ever runs one core hard and the others will be below 5%. I was running John The Ripper just now and it would only max one CPU. I tried changing the affinity...



andrew@andrew-MS-7817:~$ taskset -p 0xFFFFFFFF 14219
pid 14219's current affinity mask: 3
pid 14219's new affinity mask: f


Nothing changed on the system monitor though... 3 of the CPU's were still under 5%. I also did a lscpu and this was the output...



andrew@andrew-MS-7817:~$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 60
Stepping: 3
CPU MHz: 3614.402
BogoMIPS: 6599.82
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 6144K
NUMA node0 CPU(s): 0-3


I've never noticed the CPU go above 30% usage... Any ideas?










share|improve this question
























  • When it's running a single core hard, can you also run top and determine what application is consuming CPU
    – Charles Green
    Jan 16 '16 at 18:05






  • 4




    Assuming you have installed john from the Ubuntu repository, that one is single threaded only, so john can only utilize one core.
    – Thomas
    Jan 16 '16 at 18:14










  • That would explain it... And I haven't done anything else that's very CPU intensive yet. Possibly it just hasn't needed to use more than 30% any other time. Thank you very much!
    – A.Rowden
    Jan 16 '16 at 18:17






  • 1




    You would have to build john on your own and enable openmp for example to make it multithreaded and john could utilize all cores. You could also install stress and start it with stress -c <num-cores> to see all cores being utilized.
    – Thomas
    Jan 16 '16 at 18:20










  • Thank you, the stress test did show all 4 cores are being utilized.
    – A.Rowden
    Jan 16 '16 at 19:29













up vote
3
down vote

favorite









up vote
3
down vote

favorite











I just built a new computer last week and have been running Ubuntu 14.04. I've noticed it only ever runs one core hard and the others will be below 5%. I was running John The Ripper just now and it would only max one CPU. I tried changing the affinity...



andrew@andrew-MS-7817:~$ taskset -p 0xFFFFFFFF 14219
pid 14219's current affinity mask: 3
pid 14219's new affinity mask: f


Nothing changed on the system monitor though... 3 of the CPU's were still under 5%. I also did a lscpu and this was the output...



andrew@andrew-MS-7817:~$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 60
Stepping: 3
CPU MHz: 3614.402
BogoMIPS: 6599.82
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 6144K
NUMA node0 CPU(s): 0-3


I've never noticed the CPU go above 30% usage... Any ideas?










share|improve this question















I just built a new computer last week and have been running Ubuntu 14.04. I've noticed it only ever runs one core hard and the others will be below 5%. I was running John The Ripper just now and it would only max one CPU. I tried changing the affinity...



andrew@andrew-MS-7817:~$ taskset -p 0xFFFFFFFF 14219
pid 14219's current affinity mask: 3
pid 14219's new affinity mask: f


Nothing changed on the system monitor though... 3 of the CPU's were still under 5%. I also did a lscpu and this was the output...



andrew@andrew-MS-7817:~$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 60
Stepping: 3
CPU MHz: 3614.402
BogoMIPS: 6599.82
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 6144K
NUMA node0 CPU(s): 0-3


I've never noticed the CPU go above 30% usage... Any ideas?







14.04 cpu-load






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 16 '16 at 20:47









bain

9,04322942




9,04322942










asked Jan 16 '16 at 18:03









A.Rowden

213




213












  • When it's running a single core hard, can you also run top and determine what application is consuming CPU
    – Charles Green
    Jan 16 '16 at 18:05






  • 4




    Assuming you have installed john from the Ubuntu repository, that one is single threaded only, so john can only utilize one core.
    – Thomas
    Jan 16 '16 at 18:14










  • That would explain it... And I haven't done anything else that's very CPU intensive yet. Possibly it just hasn't needed to use more than 30% any other time. Thank you very much!
    – A.Rowden
    Jan 16 '16 at 18:17






  • 1




    You would have to build john on your own and enable openmp for example to make it multithreaded and john could utilize all cores. You could also install stress and start it with stress -c <num-cores> to see all cores being utilized.
    – Thomas
    Jan 16 '16 at 18:20










  • Thank you, the stress test did show all 4 cores are being utilized.
    – A.Rowden
    Jan 16 '16 at 19:29


















  • When it's running a single core hard, can you also run top and determine what application is consuming CPU
    – Charles Green
    Jan 16 '16 at 18:05






  • 4




    Assuming you have installed john from the Ubuntu repository, that one is single threaded only, so john can only utilize one core.
    – Thomas
    Jan 16 '16 at 18:14










  • That would explain it... And I haven't done anything else that's very CPU intensive yet. Possibly it just hasn't needed to use more than 30% any other time. Thank you very much!
    – A.Rowden
    Jan 16 '16 at 18:17






  • 1




    You would have to build john on your own and enable openmp for example to make it multithreaded and john could utilize all cores. You could also install stress and start it with stress -c <num-cores> to see all cores being utilized.
    – Thomas
    Jan 16 '16 at 18:20










  • Thank you, the stress test did show all 4 cores are being utilized.
    – A.Rowden
    Jan 16 '16 at 19:29
















When it's running a single core hard, can you also run top and determine what application is consuming CPU
– Charles Green
Jan 16 '16 at 18:05




When it's running a single core hard, can you also run top and determine what application is consuming CPU
– Charles Green
Jan 16 '16 at 18:05




4




4




Assuming you have installed john from the Ubuntu repository, that one is single threaded only, so john can only utilize one core.
– Thomas
Jan 16 '16 at 18:14




Assuming you have installed john from the Ubuntu repository, that one is single threaded only, so john can only utilize one core.
– Thomas
Jan 16 '16 at 18:14












That would explain it... And I haven't done anything else that's very CPU intensive yet. Possibly it just hasn't needed to use more than 30% any other time. Thank you very much!
– A.Rowden
Jan 16 '16 at 18:17




That would explain it... And I haven't done anything else that's very CPU intensive yet. Possibly it just hasn't needed to use more than 30% any other time. Thank you very much!
– A.Rowden
Jan 16 '16 at 18:17




1




1




You would have to build john on your own and enable openmp for example to make it multithreaded and john could utilize all cores. You could also install stress and start it with stress -c <num-cores> to see all cores being utilized.
– Thomas
Jan 16 '16 at 18:20




You would have to build john on your own and enable openmp for example to make it multithreaded and john could utilize all cores. You could also install stress and start it with stress -c <num-cores> to see all cores being utilized.
– Thomas
Jan 16 '16 at 18:20












Thank you, the stress test did show all 4 cores are being utilized.
– A.Rowden
Jan 16 '16 at 19:29




Thank you, the stress test did show all 4 cores are being utilized.
– A.Rowden
Jan 16 '16 at 19:29










1 Answer
1






active

oldest

votes

















up vote
0
down vote













This is because the application that is using the CPU (john in your case, but mysqld does the same when running a single query) is monothread, so it can use only one core at a time. An application that support multithreading will be able to use more than one core at the same time.






share|improve this answer





















    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',
    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
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f721850%2fcpu-is-maxing-one-core-and-not-using-others-john-the-ripper%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    This is because the application that is using the CPU (john in your case, but mysqld does the same when running a single query) is monothread, so it can use only one core at a time. An application that support multithreading will be able to use more than one core at the same time.






    share|improve this answer

























      up vote
      0
      down vote













      This is because the application that is using the CPU (john in your case, but mysqld does the same when running a single query) is monothread, so it can use only one core at a time. An application that support multithreading will be able to use more than one core at the same time.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        This is because the application that is using the CPU (john in your case, but mysqld does the same when running a single query) is monothread, so it can use only one core at a time. An application that support multithreading will be able to use more than one core at the same time.






        share|improve this answer












        This is because the application that is using the CPU (john in your case, but mysqld does the same when running a single query) is monothread, so it can use only one core at a time. An application that support multithreading will be able to use more than one core at the same time.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 16 '16 at 18:32









        dr01

        721815




        721815






























            draft saved

            draft discarded




















































            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f721850%2fcpu-is-maxing-one-core-and-not-using-others-john-the-ripper%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

            Quarter-circle Tiles

            build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

            Mont Emei