Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 18
Posts: 18   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 4573 times and has 17 replies Next Thread
hchc
Veteran Cruncher
USA
Joined: Aug 15, 2006
Post Count: 865
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Use 1 out of 2 cores 100% or Use 50% of 2 cores?

It's summer and getting quite hot, so I've powered down one of my older dedicated crunchboxes until the Fall or Winter. It's a dual core Pentium running Debian Linux. According to a Kill-a-Watt meter, it consumes about 70 Watts of power from the wall when running at 100%.

I'm considering powering it back on for the summer but want to save on power and heat while still maximizing efficiency. With that said, is it better to set it to use:
  • 50% of CPUs = uses 1 out of the 2 CPU cores 100% of the time; or
  • 50% of CPU time = uses 2 out of 2 cores 50% of the time, meaning 1 second on, 1 second off
?

I suppose I could measure which configuration uses less power or generates less heat (running the tiny Dell case fan more). I've also seen -- at least in Windows -- that if I set it to use 50% of CPUs, it actually splits the 1 Work Unit's processing between both CPU cores, which is weird. I would have expected it to use 1 core @ 100% and the other core @ 0%. Not sure if Linux does the same.

Edit: I could also measure which configuration completes work units faster. Just wondering if anyone's already done the legwork and has a solid answer. Thanks!
----------------------------------------
  • i5-7500 (Kaby Lake, 4C/4T) @ 3.4 GHz
  • i5-4590 (Haswell, 4C/4T) @ 3.3 GHz
  • i5-3570 (Broadwell, 4C/4T) @ 3.4 GHz

----------------------------------------
[Edit 4 times, last edit by hchc at Jun 25, 2018 11:38:00 PM]
[Jun 25, 2018 10:53:11 PM]   Link   Report threatening or abusive post: please login first  Go to top 
TonyEllis
Senior Cruncher
Australia
Joined: Jul 9, 2008
Post Count: 290
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Use 1 out of 2 cores 100% or Use 50% of 2 cores?

On the Linux systems here all cores are run at close to 100% CPU, then the CPU frequency reduced or increased as necessary to run the CPU at an almost constant pre-set temperature - this works for Summer and Winter cool
----------------------------------------
----------------------------------------
[Edit 1 times, last edit by TonyEllis at Jun 26, 2018 12:18:51 AM]
[Jun 26, 2018 12:17:26 AM]   Link   Report threatening or abusive post: please login first  Go to top 
hchc
Veteran Cruncher
USA
Joined: Aug 15, 2006
Post Count: 865
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Use 1 out of 2 cores 100% or Use 50% of 2 cores?

On the Linux systems here all cores are run at close to 100% CPU, then the CPU frequency reduced or increased as necessary to run the CPU at an almost constant pre-set temperature - this works for Summer and Winter cool

Yeah, I'm actually looking to save money and wonder which of the two options gives better results or is healthier to the BOINC applications running.

I'm potentially leaning towards just leaving the box powered off all summer as it's easily 84°F (29°C) or higher in my bedroom.
----------------------------------------
  • i5-7500 (Kaby Lake, 4C/4T) @ 3.4 GHz
  • i5-4590 (Haswell, 4C/4T) @ 3.3 GHz
  • i5-3570 (Broadwell, 4C/4T) @ 3.4 GHz

[Jun 26, 2018 12:59:09 AM]   Link   Report threatening or abusive post: please login first  Go to top 
sunk818
Advanced Cruncher
Joined: May 10, 2018
Post Count: 66
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Use 1 out of 2 cores 100% or Use 50% of 2 cores?

To measure heat of the CPU, a free utility this can help:
https://openhardwaremonitor.org/

For me, my i5 laptop can only run 75% 50% of the time without getting temps above 70°C under normal workload. I imagine it differs based on your computer.



Do know what your RAC or credits given on those machines? On my i5-3470 CPU @ 3.20GHz (4 processors), my RAC is about 1600 (~15 GFLOPS?)

Your T7300 is ~5 GFLOP/s according to this: https://boinc.bakerlab.org/rosetta/cpu_list.php

My kill-a-watt says 60W. So, for the same energy usage, I'm getting about triple the crunching.

I think upgrading to newer hardware is the best option so your energy to RAC ratio is much better. To put it another way, you could turn off a newer computer all summer and still crunch more than two of Core2Duo computers the rest of the year.

You can buy an Dell OptiPlex 3010 on eBay for under $50 USD.
[Jun 26, 2018 3:32:02 PM]   Link   Report threatening or abusive post: please login first  Go to top 
hchc
Veteran Cruncher
USA
Joined: Aug 15, 2006
Post Count: 865
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Use 1 out of 2 cores 100% or Use 50% of 2 cores?

Do know what your RAC or credits given on those machines? On my i5-3470 CPU @ 3.20GHz (4 processors), my RAC is about 1600 (~15 GFLOPS?)

Your T7300 is ~5 GFLOP/s according to this: https://boinc.bakerlab.org/rosetta/cpu_list.php

I should probably edit my sig. My laptops are down for the summer. I was mostly asking about the Pentium E5800 box (Dell OptiPlex chassis). I'm interested in which is better, running 50% of cores or 50% of CPU time. I may be leaning towards leaving it powered down since it doesn't really have a case fan. My new Coffee Lake is on 24/7/365 so that'll just have to do.

New hardware (the Coffee Lake is just temporary since I'm waiting on Intel's 10 nm chips, but they keep delaying the release) is on the horizon. Hope I can get an Intel Ice Lake or AMD Zen 2 and call it a day.

Thanks for the link to the Bakerlabs GFLOPS estimate data!
----------------------------------------
  • i5-7500 (Kaby Lake, 4C/4T) @ 3.4 GHz
  • i5-4590 (Haswell, 4C/4T) @ 3.3 GHz
  • i5-3570 (Broadwell, 4C/4T) @ 3.4 GHz

----------------------------------------
[Edit 1 times, last edit by hchc at Jun 26, 2018 6:47:54 PM]
[Jun 26, 2018 6:42:29 PM]   Link   Report threatening or abusive post: please login first  Go to top 
supdood
Senior Cruncher
USA
Joined: Aug 6, 2015
Post Count: 333
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Use 1 out of 2 cores 100% or Use 50% of 2 cores?

I've found controlling the CPU frequency to be the best way to go because it keeps everything steady. It limits power fluctuations and the fan speed doesn't change often like it does if you are using a temp throttling or CPU time approach. I don't have any data on this, but it seems like this would result in less wear and tear on the relatively fragile laptop components. I'm not sure which would give you better results between using only 1 core at 100% (or 99% to disable any CPU boosting) vs. using both cores at 50% frequency. I think either of those options is much better than using both cores at 50% CPU time.
----------------------------------------
Crunch with BOINC team USA
www.boincusa.com

----------------------------------------
[Edit 1 times, last edit by supdood at Jun 27, 2018 1:07:43 PM]
[Jun 27, 2018 1:06:27 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Use 1 out of 2 cores 100% or Use 50% of 2 cores?

Up and down and up and down it goes at 50% of 2 cores in 1 second intervals as in running 100% for 1 second, pause for 1 second. With highly sensitive fans, it could lead to revving up and down of the cooling module. Anything revving up and down, mechanically or electronically feels like it will use more power, but I have no data to substantiate that. Whether the CPU and other component wear more, don't know either, but thermal expansion and shrinking does not appear to me as something sustainable. 86,400 times a day.
[Jun 27, 2018 1:32:53 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Glen David Short
Senior Cruncher
Joined: Nov 6, 2008
Post Count: 192
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Use 1 out of 2 cores 100% or Use 50% of 2 cores?

I agree with the above comments, avoid thermal throttling, go for CPU cycle control. Its a basic rule of electrical engineering that stopping and starting any DC motor (ie computer cooling fan) causes high inrush currents (up to 20 times normal running current) and over time this shortens the lifetime of the motor, and could marginally increase your power bill, but if the throttling is happening in cycles of less than a second the fan would not have time to stop, and the effect would probably be negligible. What you want is smooth, uniform current and heat output, for less overall heating-cooling cycles, because such cycles eventually create thermal stress on all the components. However, setting a thermal throttle with a slightly higher temp setting than say, 100% CPU on a hot summer day is a good idea just in case the cooling fan fails, or as sometimes happens, starts to become inefficient due to being clogged with dust.
----------------------------------------

----------------------------------------
[Edit 2 times, last edit by Glen David Short at Jun 28, 2018 3:51:23 PM]
[Jun 28, 2018 3:32:37 PM]   Link   Report threatening or abusive post: please login first  Go to top 
KLiK
Master Cruncher
Croatia
Joined: Nov 13, 2006
Post Count: 3108
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Use 1 out of 2 cores 100% or Use 50% of 2 cores?

That's why I use temp.controlled equipment on Windows...

Unfortunately, anyone on Linux has now been able to make some program like Tthrottle or similar...so on those computers I run only "low budget GPUs & old hardware". biggrin

p.s. No, I don't want to programm throttling by myself.
----------------------------------------
oldies:UDgrid.org & PS3 Life@home


non-profit org. Play4Life in Zagreb, Croatia
[Jun 30, 2018 11:16:43 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Use 1 out of 2 cores 100% or Use 50% of 2 cores?

You can throttle very easily on any modern Linux using systemd v231 or higher (for example, I use Debian 9) to get where you want, I do this on all my nodes for the same reasons in this thread. It depends on the specific CPU, but "roughly 60%" seems to be the point where most seem to like it. At this level the fan just barely turns on (~3000-ish RPMs) - I measure a 22W draw (laptop battery, using lm_sensors) at 60%-ish for an i5-3320m (Dell E6330).

First, calculate what 60% means to your number of cores/threads being used in aggregate - systemd considers each "visible CPU" as 100%, so a dual-core hyperthread-on CPU comes out to 400%; "60% of each visible CPU" is therefore 240% (400*0.6) to systemd's needs.

Next, set the throttle in place on the boinc client:


EDITOR=vi systemctl edit boinc-client

# Add the below to the new file being edited and save
[Service]
CPUQuota=240%


Re-read the new design into systemd's running brain and restart the boinc client:

systemctl daemon-reload
systemctl restart boinc-client


Now set the boinc preferences to run in always-on mode and to ignore "activity" (because we're throttling it outside it's world view instead):


vi /var/lib/boinc-client/global_prefs_override.xml

<global_preferences>
<suspend_cpu_usage>100.000000</suspend_cpu_usage>
<cpu_usage_limit>100.000000</cpu_usage_limit>
<leave_apps_in_memory>1</leave_apps_in_memory>
<run_if_user_active>1</run_if_user_active>
<run_on_batteries>1</run_on_batteries>
<run_gpu_if_user_active>1</run_gpu_if_user_active>
</global_preferences>

boinccmd --read_global_prefs_override


If you had running work units, I would now go into the client and run the CPU benchmarks again (I like using "boinctui" - nice, simple client) under their new limits just to true up all your estimated timing stats. It runs periodically on it's own though so if you forget to do this, no big deal.

You can then play with this to up or down the percentage to fine tune it to your exact CPU and cooling situation, I like the package "lm_sensors" for this monitoring as it easily shows all the temperatures and fan speeds - and if it's a laptop, it can measure the power draw while on battery (to calculate your cost per month).
[Jun 30, 2018 2:07:16 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Posts: 18   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread