Join PrimeGrid
Returning Participants
Community
Leader Boards
Results
Other
drummers-lowrise
|
Message boards :
Sophie Germain Prime Search :
Running SGS and 321 sieve nearly halves SGS CPU time
Author |
Message |
Bur Volunteer tester
 Send message
Joined: 25 Feb 20 Posts: 515 ID: 1241833 Credit: 414,115,463 RAC: 40,319
                
|
So far I had run SGS and 321 sieve alongside. After reaching 321 sieve ruby, I deactivated it and focused solely on SGS.
Surprisingly, the CPU time for each SGS task went from approximately 970 s average to 1500 s average. I reactivated 321 sieve after 24 h and averages went down to the prior value. I think you can publicly view my tasks and see for yourselves, 321 sieve was off for May, 2nd. Recently I changed from 321 sieve to extended sierpinski and apparently SGS doesn't benefit from it. This is quite peculiar...
This increase happened for both machines (i7-4790K and i3-2120) though it was less pronounced for the i3, something like 1500 s vs 2000 s.
I guess this has to do with hyperthreading? Switching to fewer simultaneous tasks doesn't seem like a good solution, since that would probably leave CPU power unused. So should I keep running two subprojects?
Has anyone experienced this as well?
edit: I'm starting to believe this is more of a problem of scare ressources. Both machines have enough of ressource X to keep 2 or 4, respectively, SGS tasks running efficiently. 321 sieve doesn't need ressource X and if it runs alongside, no problem. But if I switch off 321 sieve the number of parallel SGS tasks increases, making the machine lack in ressource X (whatever that is) and CPU time per task increases.
Extended Sierpinki apparently requires ressource X as well, as running it parallel to SGS causes the increase as well. | |
|
Michael Goetz Volunteer moderator Project administrator
 Send message
Joined: 21 Jan 10 Posts: 13954 ID: 53948 Credit: 392,336,518 RAC: 171,309
                               
|
LLR doesn't benefit from hyperthreading, while sieves do benefit from hyperthreading.
If you have hyperthreading enabled, this behavior makes sense.
If you want to run SGS, simply disable hyperthreading, or, equivalently, set BOINC to use only 50% of the "CPUs". Despite what you might think, you're *not* leaving processing power on the table when you do this. Hyperthreads aren't "full CPU cores", and LLR uses the part of the CPU that is NOT duplicated in the hyperthreads. There's only one full arithmetic unit per core (i.e., there's 1 arithmetic unit per 2 hyperthreads), so the best you can do with LLR is one task per physical core (i.e., 1 task for every 2 hyperthreads.)
If you leave hyperthreading enabled, you'll run twice as many SGS tasks simultaneously, but they'll take AT LEAST twice as long to run. They'll probably be slower, actually. The number of tasks you complete per day will either stay the same or go down -- but you will consume a lot more power and produce more heat.
The same or slightly less throughput, with more power consumption -- it's a lose-lose scenario.
____________
My lucky number is 75898524288+1 | |
|
Bur Volunteer tester
 Send message
Joined: 25 Feb 20 Posts: 515 ID: 1241833 Credit: 414,115,463 RAC: 40,319
                
|
That still doesn't really explain while SGS took about 60% of the CPU time when 321 sieve ran simultaneously, or does it? Or is the important part that no more than 2 SGS (on a 2 physical cores system) tasks run at the same time?
What I meant with wasted CPU time:
Scenario 1: 4 SGS tasks with 1500 s each = 9.6 SGS tasks per hour
Scenario 2: 2 SGS tasks with 970 s each plus 2 321 sieves with 3600 s each = 7.4 SGS tasks per hour plus 2 "321sieves" per hour
Scenario 3 (no HT): 2 SGS tasks with 675 s each (just a guess, assuming it's 50% of HT enabled) = 10.6 SGS tasks per hour (but no 321 sieves)
My experience was that switching HT off did not halve the CPU time of SGS tasks. I didn't run it long enough to be sure, but I will do some testing and report back. | |
|
|
That still doesn't really explain while SGS took about 60% of the CPU time when 321 sieve ran simultaneously, or does it? Or is the important part that no more than 2 SGS (on a 2 physical cores system) tasks run at the same time?
I think that is correct.
____________
My lucky number is 6219*2^3374198+1
| |
|
Bur Volunteer tester
 Send message
Joined: 25 Feb 20 Posts: 515 ID: 1241833 Credit: 414,115,463 RAC: 40,319
                
|
Admittedly, not much testing done so far, but after about 30 SGS tasks on the i3, I have an average of 1170 s per task while with HT it is about 1900 s. So overall throughput would be better with HT on, at least on that machine and if this keeps on.
Tomorrow morning I'll see what happened overnight. | |
|
Bur Volunteer tester
 Send message
Joined: 25 Feb 20 Posts: 515 ID: 1241833 Credit: 414,115,463 RAC: 40,319
                
|
i3-2120 Win 10 x64:
50% processors usage (i.e. HT off) for 24 h (computer not used)
Throughput: 147 WUs
min CPU time: 1150 s
100% processors usage (i.e. HT on) for 24 h (computer not used)
Throughput: 162 WUs
max CPU time: 1963 s
Throughput has increased by 10%. I added min and max CPU times to show that even the slowest HT=on task took less than twice what the fastest HT=off task took.
From these results - and a short, couple of hours test I ran on an i7 some time ago - I would say, at least the current SGS tasks do benefit from hyperthreading.
Since it seems common knowledge here that SGS suffers from HT, are there statistics available? | |
|
compositeVolunteer tester Send message
Joined: 16 Feb 10 Posts: 1140 ID: 55391 Credit: 1,020,422,119 RAC: 1,700,766
                        
|
From these results - and a short, couple of hours test I ran on an i7 some time ago - I would say, at least the current SGS tasks do benefit from hyperthreading.
Since it seems common knowledge here that SGS suffers from HT, are there statistics available?
Your eyes do not deceive you. If you look far enough in old message threads there's a debate around the theme that *some* LLR tasks benefit from HT=on for *some* computers. So the official mantra is to try different things and see what works best for your particular CPU. The common knowledge effect that you also see is a sample bias, occuring because *some* people who did not see this throughput effect have a propensity to post that isn't so constrained by resource X. | |
|
|
I simply can't run all 8 threads on SGS with my old Dell PC's (4790) The temps hit 98 degrees and the fan screams!
Drop CPU to 50% and just use the 4 cores and temps are still in the high 80's/low 90's and no screaming fan. I'm comfortable with that.
I may try on a proper PC with better cooling..... or I might just stick to no H/T and not torture my system :)
____________
Слава Україні! | |
|
|
I simply can't run all 8 threads on SGS with my old Dell PC's (4790) The temps hit 98 degrees and the fan screams!
Drop CPU to 50% and just use the 4 cores and temps are still in the high 80's/low 90's and no screaming fan. I'm comfortable with that.
I may try on a proper PC with better cooling..... or I might just stick to no H/T and not torture my system :)
HT isn't helping you, leave things at 50%. This is because LLR is using all the physical resources of a core, and HT is just forcing it to share back and forth with a second task. Increases power, decreases performance.
More importantly, if you are hitting that high a temperature, something else is wrong. Even on a prebuilt system, you shouldn't be that hot, even at 50%. I would recommend that if you haven't dusted the machine, certainly do that. Really, everyone should, at least once every couple months, and more often if you're like me and live down the road from an active gravel quarry.
Second, I think it's time that you replaced the thermal grease between the CPU and the heatsink. As it ages, it dries out and becomes much less effective at moving heat. To top it off, computer OEMs tend to cheap out in this area, and I bet yours is about 6 years old, now. Buy a tube of Noctua NH-T1, pull things off, clean off the old and crusted (isopropyl alcohol at a high percentage with cotton balls or a small rag are great for this, don't use water, and make sure everything has evaporated before moving on), apply the new paste (great videos online on the various methods) and reassemble. It will be a tremendous improvement and enhance the lifespan of the parts. Personally, I do a reapply every 2-3 years, including GPUs.
____________
Eating more cheese on Thursdays. | |
|
|
Hi Grebuloner
I've actually done all that. I even used Noctua NT-H2.
I have a Dell 4770 (Optiplex 9020) and a Dell 4790 (T1700) both have similar temps. The 4770 I actually fitted a Noctua NH-L9i Low Profile heatsink which is much better than the crappy Intel one. It dropped temps a bit and is much quieter but we are still talking mid to high 80's.
These things only have a 80mm fan in the front...that's it. No provisions for more fans.
The other issue I have is they are in a room with 3 other PC's running. It's winter here in Australia and right now with my window open is a nice 25 degrees Celsius (77 F)
I don't see a way to get it any cooler.
I have another HP pc with a 3770S and same thing... its in a different room and is currently crunching a SoB on 4 cores and running at 91 degrees.
I realise this is too hot but hey....they were cheap crunching machines :)
____________
Слава Україні! | |
|
Scott Brown Volunteer moderator Project administrator Volunteer tester Project scientist
 Send message
Joined: 17 Oct 05 Posts: 2380 ID: 1178 Credit: 17,912,713,754 RAC: 10,227,012
                                                
|
1
I have a Dell 4770 (Optiplex 9020) and a Dell 4790 (T1700) both have similar temps. The 4770 I actually fitted a Noctua NH-L9i Low Profile heatsink which is much better than the crappy Intel one. It dropped temps a bit and is much quieter but we are still talking mid to high 80's.
These things only have a 80mm fan in the front...that's it. No provisions for more fans.
What form factor (e.g., mini-tower, desktop, ultrasmall, etc.)? I have a number of the 9020 models, and none run that hot even with summer weather here in North America (even the all-in-ones with i7-4770s CPUs and the small form factor desktops with i7-4790 CPUs). One thing to check...make sure that you have the latest BIOS updates for those machines. Dell's early versions did have some fan control issues that were fixed with the updates.
| |
|
|
Good that you've already done the repaste, I like to be thorough in my posts about cleaning in case anyone non-technical wanders by, or is like my grandmother who put her PC in a closed cabinet because it was getting too loud.
Those temps are still too high, IMO, even in a 25C room. I have a couple crunchers in a closed room, and while they warm it up to 30C, they still won't get that hot.
If you aren't too worried about the longevity of the machines, it's not the end of the world as long as the fan noise doesn't bother you too much (and you can always replace them with better fans that move more air with less noise), but you probably won't see the full potential of the CPUs due to throttling. While the L9i is better than the stock cooler, it has a pretty low capacity. Have you taken the side panels off for more cool air access? I don't know how much ducting is going on inside those models, but it is an easy way for more direct cool air access.
As an extreme measure, especially since it's winter, you can always take off the panels, wrap them in bug netting, and put them outside under shelter...
____________
Eating more cheese on Thursdays. | |
|
Nick  Send message
Joined: 11 Jul 11 Posts: 2216 ID: 105020 Credit: 8,131,343,843 RAC: 1,429,262
                            
|
I would recommend that if you haven't dusted the machine, certainly do that. Really, everyone should, at least once every couple months, and more often if you're like me and live down the road from an active gravel quarry.
I can attest to this wisdom.
I finally just cleaned the dust out of my 9900K with 2080Ti - encouraged by this post.
Before clean I couldn't run turbo as CPU got into mid 80s C and above.
Now 80 C with turbo - not great, but just workable.
But the huge difference is GPU - I'm running PPS sieve at about 2/3 capacity - though that may have increased since I'm running turbo now.
Before - 73 C. After - 63 C
I am thinking I have been unnecessarily mean to this computer as it is 17 months old and that was it's first clean. I have 2 more computers to do. I haven't been mean to them for as long.
| |
|
|
[/quote]
What form factor (e.g., mini-tower, desktop, ultrasmall, etc.)? I have a number of the 9020 models, and none run that hot even with summer weather here in North America (even the all-in-ones with i7-4770s CPUs and the small form factor desktops with i7-4790 CPUs). One thing to check...make sure that you have the latest BIOS updates for those machines. Dell's early versions did have some fan control issues that were fixed with the updates.
[/quote]
Hmm interesting about the BIOS. That's not something I've done with these PC's. That will be fun... finding the right Dell BIOS :)
These are SFF pc's (That's what Dell call them)
https://i.dell.com/sites/doccontent/shared-content/data-sheets/en/Documents/optiplex-9020-micro-technical-spec-sheet.pdf
I have run them with the side off before but I have kids and I can't put them out of reach of curious fingers so its not worth the risk.
As for the Noctua fan well... nothing else will fit those cases. As it was I learnt the hard way about Dell and their propitiatory connections (insert eye roll here)
The stupid 5 pin fan connector that is required meant I had to buy an adapter out of China and also physically snap off the raised chassis mounts that the old heatsink used to screw into. Without removing those, you can't get the motherboard back in.
Surprisingly, I don't see any drop in CPU clocks. They might run a bit faster if they were cooler but they are pretty rock solid even at high temps.
I'll check out the BIOS option over the weekend :)
Thanks for the tips.
____________
Слава Україні!
| |
|
|
That is one thing that that could be causing an issue that you mentioned Grebuloner.... ducting. Neither of these units has ducting directing air from the front 80mm fan to the CPU.
I know one of them DID have ducting but again, you can't fit a Noctua fan with all that plastic crap everywhere :)
I guess if you only have 1 fan, that ducting directing air over the CPU would be important :)
That could be the reason.
Oh well...as long as I don't have a fire! (Although I did buy an extinguisher the other day...just in case!) Dry powder of course.
____________
Слава Україні! | |
|
tng Send message
Joined: 29 Aug 10 Posts: 465 ID: 66603 Credit: 45,652,214,004 RAC: 23,735,078
                                                   
|
That is one thing that that could be causing an issue that you mentioned Grebuloner.... ducting. Neither of these units has ducting directing air from the front 80mm fan to the CPU.
I know one of them DID have ducting but again, you can't fit a Noctua fan with all that plastic crap everywhere :)
I guess if you only have 1 fan, that ducting directing air over the CPU would be important :)
That could be the reason.
Oh well...as long as I don't have a fire! (Although I did buy an extinguisher the other day...just in case!) Dry powder of course.
That'll be it. One of the major advantages of a Dell system (and probably HP and other major vendors) is the engineering that goes into those cases. That ducting directs air exactly where it's needed. Without it, most of the air is going where it's not needed.
I've made the mistake of removing that ducting from a Dell system. Don't do that.
____________
| |
|
|
That is one thing that that could be causing an issue that you mentioned Grebuloner.... ducting. Neither of these units has ducting directing air from the front 80mm fan to the CPU.
I know one of them DID have ducting but again, you can't fit a Noctua fan with all that plastic crap everywhere :)
I guess if you only have 1 fan, that ducting directing air over the CPU would be important :)
That could be the reason.
Oh well...as long as I don't have a fire! (Although I did buy an extinguisher the other day...just in case!) Dry powder of course.
You can make ducting out of just about anything non-conductive, just needs to get the air in the direction of the CPU cooler.
Since you have curious kids, may I suggest an inexpensive alternative to the open case? Speaker grill cloth. Cut it to size, hot glue it in place of the side panel and it acts as both mesh and a decent dust filter, while still keeping the insides hidden from prying fingers.
And good on you for the extinguisher. A home accessory everyone should have.
____________
Eating more cheese on Thursdays. | |
|
Message boards :
Sophie Germain Prime Search :
Running SGS and 321 sieve nearly halves SGS CPU time |