Message boards : BOINC client : boinc resource usage
Message board moderation
Author | Message |
---|---|
Send message Joined: 15 Dec 05 Posts: 23 |
When I run boinc, I get very high "% ni" values shown in top (FC4). I had assumed the ni value was a % nice value, but I can't see how this makes sense. What is "% ni", and why does boinc cause it to be high? |
Send message Joined: 30 Aug 05 Posts: 297 |
BOINC is designed to use every single otherwise-unused CPU cycle on your computer. To do this without impacting other programs, it runs at "nice" priority, meaning "I'll get out of the way nicely when anything else needs time". So, when BOINC is running, the "% nice" is very high, where before you ran BOINC, the "% idle" was very high. All the % figures will add up of course to 100 - BOINC is just 'moving' the largest figure from the idle column to the 'nice' column. This should have no impact on anything in any of the "real work done" columns. On my Mac, for example, I'm seeing right now 6% "user", 14% "system", and 80% "nice", with 0% "idle". Since "idle" CPU seconds are "wasted", this looks good to me! :-) |
Send message Joined: 15 Dec 05 Posts: 23 |
BOINC is designed to use every single otherwise-unused CPU cycle on your computer. To do this without impacting other programs, it runs at "nice" priority, meaning "I'll get out of the way nicely when anything else needs time". Thanks. So is the nice value processor overhead (using 80% of the cpu) to keep boinc at a different niceness level? |
Send message Joined: 30 Aug 05 Posts: 297 |
So is the nice value processor overhead (using 80% of the cpu) to keep boinc at a different niceness level? ... I don't understand the question. I'm far from Linux-knowledgeable, I can only answer the ones that are "like the Mac does it". Hopefully someone else will be able to answer that. |
Send message Joined: 29 Aug 05 Posts: 225 |
So is the nice value processor overhead (using 80% of the cpu) to keep boinc at a different niceness level? Not sure if I am going to answer this question correctly in the sense I am not sure I understand what you are asking. On Bill's Mac, he had, effectively, 80% of his computer "idle" at the time he took his snapshot. BOINC mearly took this time and put it to use. On my dual G5 PowerMac I see roughly 90% nice at the moment with BOINC taking 90% (roughly) of each CPU. This drops to the 40's/50's when doing something intense like my just launching iTunes ... now with iTunes running I get 85% to 90% nice with my CPUs getting high 80's to 90%, with one processor usually getting slightly more than the other. I have only on rare occasions to find that BOINC, or SETI@Home Classic for that matter, actually causing a noticible slowdown ... And Bill, OS-X *IS* Unix ... and so is Linux the name change a little bit thats all ... |
Send message Joined: 15 Dec 05 Posts: 23 |
Thanks for your reply. To me, %nice sounds like the amount of time the kernel is spending attending to the niceness of each process, rather than doing something useful, like crunching numbers for boinc. I suppose my question is - why is the %nice value so high, why isn't boinc showing up in %user? |
Send message Joined: 30 Aug 05 Posts: 297 |
To me, %nice sounds like the amount of time the kernel is spending attending to the niceness of each process, rather than doing something useful, like crunching numbers for boinc. Ah. No, you have the wrong definition of %nice. The kernal is in "system" priority. Programs you run are in "user" priority. BOINC does not want to compete against your web browser and such, so it is in "nice" priority. The thing that top is measuring is how much time is given to the processes that are running at each priority. Example: We'll take one single CPU second, and divide it up into 100 parts, and look at what is happening in each of those little time slices. During 6 of these little slices, the OS is doing it's "housekeeping", moving packets across the network, refreshing your screen, updating your clock, seeing where the mouse is, and deciding which of the _other_ slices to give to which program. During 14 of these slices, your web browser was redrawing that animated GIF, your email program went out and checked for new mail, and your MP3 player sent some music to the speakers. During the remaining 80 slices, there was nothing to do. If BOINC was not running, the CPU would just fall into an "idle" state and literally do nothing. But, BOINC is running, so the CPU crunched another 1/100000 of a SETI result instead. In the _next_ second, we ask "what is my computer doing", and we get "6% system, 14% user, 80% nice". Hope that helps... |
Send message Joined: 15 Dec 05 Posts: 23 |
To me, %nice sounds like the amount of time the kernel is spending attending to the niceness of each process, rather than doing something useful, like crunching numbers for boinc. Thanks for this. So just to clarify - any process running with lower of higher niceness shows in the percentage nice value? |
Send message Joined: 19 Dec 05 Posts: 1 |
Processes with nice larger than 0 shows up in the nice value. Not those with negative nice, only root can run with negative nice level. |
Copyright © 2025 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.