Message boards : Questions and problems : Question about CPU Usage percentage
Message board moderation
Author | Message |
---|---|
Send message Joined: 20 Aug 08 Posts: 26 |
Hi I read the FAQ from here http://boincfaq.mundayweb.com/index.php?language=1&view=45&sessionID=c990e540161dd54c6be7f8a7e35e320a It says "Because BOINC does not use the Windows registry,plus because it is a multi platform program, it cannot use Windows specific timing APIs as other 3rd party programs such as Threadmaster use." Does this mean boinc.exe or individual project application can't use the APIs? I'm also using Folding@home, which is also multi platform, and it seems that it can use the APIs. Cheers |
Send message Joined: 29 Aug 05 Posts: 15549 |
It means there is only one source code that for all platforms to download and compile from. When you then compile it for Windows, Linux or OS-X (or any other platform), you can't have dependencies on an API that's only in use by one of the platforms. The example I gave, Threadmaster, uses a key in the Windows registry to set a maximum amount of CPU cycles for the application to use. If BOINC were to be dependent on this same key, it couldn't be built from the same source code for other OSes that don't use a registry. |
Send message Joined: 20 Aug 08 Posts: 26 |
Hi Ageless Thank you for your explanation. Dose this mean that BOINC developers think it is unnecessary or no benefit to modify source code for each platform? I'm new to distribution computing, actually I installed BOINC and folding@home on my laptop this Wednesday. The WU of folding@home will be finished today, the total CPU time is about 260 mins, and the average CPU usage percentage is 8% (Shown by Process Lasso). I put the BOINC CPU Usage percentage to 5%, and Process Lasso shows the average CPU usage is around 4%, the total CPU time is about 90 mins. Every time the application run, I can hear my CPU fan speed increase and then decrease. For my personal understanding, folding@home uses CPU more efficiently than BOINC. And I'm reluctant to increase the CPU Usage for BOINC, because I don't want my laptop become a hair dryer. Cheers |
Send message Joined: 29 Aug 05 Posts: 15549 |
Dose this mean that BOINC developers think it is unnecessary or no benefit to modify source code for each platform? They are modifying the source code so it works on each platform. What they aren't doing is give one source code for Windows, one for Linux, one for OS-X and one for all the rest. It's all just one source code, but with different build options. I put the BOINC CPU Usage percentage to 5%, and Process Lasso shows the average CPU usage is around 4%, the total CPU time is about 90 mins. Every time the application run, I can hear my CPU fan speed increase and then decrease. First off, it's very unwise to install and Folding and BOINC on one system as both will try to get the left-over CPU cycles. Don't run them side-by-side, you will get problems. Second, setting BOINC to use 5% CPU means that on a daily basis, you allow it to run about an hour. Seeing that most projects have very strict deadlines by which the task should be in, you're not going to be able to get much work done. For instance, some projects have tasks that run 8 to 12 hours, yet have a 3 day deadline. By day 3, you have run 3 hours and are already outside the deadline. So don't do this. The percentage you set is also not continuous 5%, it means that BOINC pauses the application for so many seconds and lets it run for so many seconds. On a "normal" 50%, this means that per minute, 30 seconds will be run at full speed (100% CPU) and 30 seconds will be idle (0% CPU). Your 5% means it'll run 3 seconds and stay 57 seconds idle. Not very efficient! If you don't want your fan to sound like a fighter jet thundering down the run-way, either don't run BOINC on the laptop, or use the third party throttler Threadmaster. Do know that because of what they do, both FAH and BOINC's projects will put your CPU under stress, causing it to heat up more than it would by opening Word or other normal programs. |
Send message Joined: 20 Aug 08 Posts: 26 |
Hi Ageless Thank you very much for your advice. I'm curious about the projects you mentioned that have tasks that run 8 to 12 hours, yet have a 3 day deadline. Could you give me some examples, I will avoid these projects. Cheers |
Send message Joined: 29 Aug 05 Posts: 15549 |
Milkyway, Malaria, some of the really short ones at Seti run for a couple of hours on a 7 day deadline. |
Send message Joined: 26 Dec 06 Posts: 36 |
I have a question about this CPU % useage.... It seems to me that BOINC does not take into account the fact that it only uses the CPU at like 80%. I have a Dell Insp 2200 that overheats at 100% useage so I lowered it to 75%. However BOINC still downloads the same number of WU's as it did when running at 100% of the CPU useage. This sometimes causes problems because the WU's do bot get done by the deadline. |
Send message Joined: 19 Jan 07 Posts: 1179 |
Dose this mean that BOINC developers think it is unnecessary or no benefit to modify source code for each platform? But this is just one feature. It's not hard to: #ifdef WIN32 /* use the Windows-specific way to throttle */ #else /* current 1-second-interval throttling */ #endif In fact that's already done in dozens of places. Even seemingly-simple things like copying a file has different code for Windows. |
Send message Joined: 20 Aug 08 Posts: 26 |
Milkyway, Malaria, some of the really short ones at Seti run for a couple of hours on a 7 day deadline. uhh, sounds interesting. |
Send message Joined: 29 Aug 05 Posts: 15549 |
However BOINC still downloads the same number of WU's as it did when running at 100% of the CPU useage. The CPU Usage function is a thermal throttle. As far as I know it has no integration into the work-fetch policy module of BOINC. Perhaps that eventually, after long enough use, that you'll see work-fetch decrease, but not from minute one. If you don't want as much work as you're getting, please decrease your additional work buffer. |
Send message Joined: 29 Aug 05 Posts: 15549 |
But this is just one feature. I'm not expecting the devs (or you with your fork) to go figure out and add different ways of thermal throttling BOINC (or synecdoche) in the various forms of Linux that are around, all with their own way of doing things. The amount of if-endif's would be infinite... and that for one little module only. ;-) |
Send message Joined: 29 Aug 05 Posts: 304 |
The CPU Usage function is a thermal throttle. As far as I know it has no integration into the work-fetch policy module of BOINC. Perhaps that eventually, after long enough use, that you'll see work-fetch decrease, but not from minute one. It takes about a month for the work-fetch policy to adjust for throttling. It should make your % that BOINC is allowed to work drop down to approximately match the throttle setting. That will reduce the work fetch. BOINC WIKI BOINCing since 2002/12/8 |
Send message Joined: 26 Dec 06 Posts: 36 |
The CPU Usage function is a thermal throttle. As far as I know it has no integration into the work-fetch policy module of BOINC. Perhaps that eventually, after long enough use, that you'll see work-fetch decrease, but not from minute one. I find it strange that a project like.... Milkyway can tell you that a WU won't finish in time because it "only gets 50%" of the computer time but it takes BOINC a month to learn it has to download less work in order to meet the deadlines. Meanwhile it download WU's it can't finish in time and you don't always know until it's to late to do anything. I lost almost 30 WU's because of this. I thank you for letting me know about this. Maybe in upcoming changes somthing can be written into BOINC to adjust for that. Meanwhile I'll reduce the number of days down. |
Send message Joined: 29 Aug 05 Posts: 15549 |
I find it strange that a project like.... Milkyway can tell you that a WU won't finish in time because it "only gets 50%" of the computer time but it takes BOINC a month to learn it has to download less work in order to meet the deadlines. First off, Milkyway only just (6 days ago) changed their deadline from 2 days up to 3 days. If you want to teach BOINC things like this, take into account at least 14 days. Second, that message that you see should tell you that you won't get work at all. It's a reply of the scheduler telling you that the amount of work you are asking for can impossibly be done within the deadline due to the limitations on your computer. Message from server: No work sent (won't finish in time) Computer on 'x'% of time, BOINC on 'y'% of that, this project gets 'z'% of that is the complete message. I'd like to see your line against it... |
Send message Joined: 29 Aug 05 Posts: 304 |
The CPU Usage function is a thermal throttle. As far as I know it has no integration into the work-fetch policy module of BOINC. Perhaps that eventually, after long enough use, that you'll see work-fetch decrease, but not from minute one. Based on version 5 clients, however I don't think the time stats code was changed for version 6. Threadmaster will cause a different stat to change; cpu effeciency. The end result is the same though. The DCF is a whole other calculation. It goes up quickly but down slowly and it is easier to estimate how long it will take as a number of tasks. This one reflects how accurately the project has estimated the difficulty of their tasks. BOINC WIKI BOINCing since 2002/12/8 |
Copyright © 2024 University of California.
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.