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?
14.04 cpu-load
add a comment |
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?
14.04 cpu-load
When it's running a single core hard, can you also runtop
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 enableopenmp
for example to make it multithreaded andjohn
could utilize all cores. You could also installstress
and start it withstress -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
add a comment |
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?
14.04 cpu-load
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
14.04 cpu-load
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 runtop
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 enableopenmp
for example to make it multithreaded andjohn
could utilize all cores. You could also installstress
and start it withstress -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
add a comment |
When it's running a single core hard, can you also runtop
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 enableopenmp
for example to make it multithreaded andjohn
could utilize all cores. You could also installstress
and start it withstress -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
add a comment |
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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.
add a comment |
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.
add a comment |
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.
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.
answered Jan 16 '16 at 18:32
dr01
721815
721815
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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 andjohn
could utilize all cores. You could also installstress
and start it withstress -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