mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2013-06-04, 09:25   #1
petsoukos
 
Jun 2013

2 Posts
Smile How to use all threads (i7-920)

Hi,

I downloaded the software (p95v279.linux64.tar.gz) and used all the defaults settings, but the program uses only 4 threads out of 8 possible threads.

I'm under Linux-64 (ubuntu 12.04)
CPU: i7 920@3.05GHz
RAM: 6GB Triple Channel ~1250MHz

How can I restart/reset the program to use all threads?

Thanks!

P.S.
I searched for an answer, but couldn't find any. Maybe I didn't see it, if a similar thread exists please provide a link and lock this one.
petsoukos is offline   Reply With Quote
Old 2013-06-04, 11:49   #2
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
"name field"
Jun 2011
Thailand

2·5,179 Posts
Default

That CPU has only 4 physical cores. For the most of the work types you can do (LL included) you will not get any speed improvement from running 8 threads (i.e. instead of finishing 4 exponents in 10 days, you will finish 8 in 20 days), contrarily, your computer will be slower for the other tasks you do, for still no gain on P95 work.

Search the forum for "HT versus not HT" there are thousands of discussions. Or look the web for "hyper threading" and see what it is and how it works. HT takes advantage of the fact that most of the application software you use is not "optimized" for the CPU (i.e. to squeeze its calculus capacity to the maximum), so they work few milliseconds and wait few milliseconds. HT doubles the number of threads and runs a double number of tasks/applications in the same time (or more) in such a way that more applications use the same CPU core, and when one waits, the other takes over. It is not the case for P95, which is very optimized application. One task (worker) for one core is enough to use it to the maximum. Other task requesting the same core will (mostly) wait, or produce no useful additional work.

Last fiddled with by LaurV on 2013-06-04 at 12:01
LaurV is offline   Reply With Quote
Old 2013-06-04, 20:33   #3
petsoukos
 
Jun 2013

210 Posts
Default

Quote:
Originally Posted by LaurV View Post
That CPU has only 4 physical cores. For the most of the work types you can do (LL included) you will not get any speed improvement from running 8 threads (i.e. instead of finishing 4 exponents in 10 days, you will finish 8 in 20 days), contrarily, your computer will be slower for the other tasks you do, for still no gain on P95 work.

Search the forum for "HT versus not HT" there are thousands of discussions. Or look the web for "hyper threading" and see what it is and how it works. HT takes advantage of the fact that most of the application software you use is not "optimized" for the CPU (i.e. to squeeze its calculus capacity to the maximum), so they work few milliseconds and wait few milliseconds. HT doubles the number of threads and runs a double number of tasks/applications in the same time (or more) in such a way that more applications use the same CPU core, and when one waits, the other takes over. It is not the case for P95, which is very optimized application. One task (worker) for one core is enough to use it to the maximum. Other task requesting the same core will (mostly) wait, or produce no useful additional work.
OK, thank you! I'll leave it alone to run on 4 cores,
petsoukos is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use more threads? physicist PrimeNet 2 2018-01-10 17:07
Workers, Threads, Helper Threads, Cores, Affinity. lorgix Information & Answers 12 2011-01-13 22:31
P-1 with 2 threads? lycorn Software 7 2009-09-13 03:19
How can I close my own threads? petrw1 Information & Answers 1 2007-09-25 21:02
No threads or posts from me! mfgoode Forum Feedback 10 2007-03-22 16:32

All times are UTC. The time now is 11:44.


Sat Sep 23 11:44:40 UTC 2023 up 10 days, 9:26, 0 users, load averages: 1.01, 1.12, 1.08

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔