Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Under heavy task it seems the cpu load is not spread accross all available cores and fan is triggered wile I am waiting for the opération to perform... Looking at the CPU monitor one CPU is 100% when the other ones are idle.

I have an i7 with 8 cores with ubuntu 13.10 and it's bugging me to have to wait when I know there is 8 times more power available.

I can reproduce this by opening one large (70M) file with gedit, but this happens in various circonstances.

Anything I can do about this ?

cheers!

share|improve this question

1 Answer 1

up vote 2 down vote accepted

An i7 actaully has 4 cores, but each core has two hyperthreads (which means it can switch between two tasks really quickly). To the OS it looks like 8 cores, so the distinction is probably not relevant here. Sorry. :-)

OK, so the operating system can use the i7 to effectively do 8 things at once. But that assumes that it has 8 things at the one time to do. If it only has one thing to do, then it will only use 1 core.

This is where threading comes in to play. Programs can be written to use threads - GIMP and ImageMagick are two programs I know that do this. When they have a complicated task to do, they split to work up and execute it in different threads, which the OS assigns to different cores. Try setting ImageMagick to work on processing a really large JPEG, and you will see all 8 cores get busy.

Now, I am not sure if gedit is multithreaded or not - but even if it is, the main work when opening a 70M file is processing the disk interrupts as the file is loaded, and I think that work gets restricted to one core.

What can you do about it? Just get busy, multi task, have your computer do lots of things at once, then the load will be spread out over the cores.

share|improve this answer
    
I understand loading one large file cannot be parallelized. The thing is that I find this happening quite often in various situation. Cheers. –  pdelorme Dec 10 '13 at 18:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.