Message boards : Number crunching : LHC slowing my computer down
Message board moderation

To post messages, you must log in.

AuthorMessage
Mr P Hucker
Avatar

Send message
Joined: 12 Aug 06
Posts: 418
Credit: 5,667,249
RAC: 6
Message 32045 - Posted: 22 Aug 2017, 17:14:26 UTC

I have an i5-3570K, 32GB RAM, and at the moment two LHC tasks are running, along with a Xansons task on the AMD Radeon R9 290. The computer is extremely sluggish, sometimes it takes a few seconds to just open the start menu. CPU usage is between 60 and 80% in the task manager. What's the best way (if there is one) to prevent this happening? It only occurs with LHC on the processor, so I assume it's to do with Virtualbox.
ID: 32045 · Report as offensive     Reply Quote
Profile Ray Murray
Volunteer moderator
Avatar

Send message
Joined: 29 Sep 04
Posts: 281
Credit: 11,859,285
RAC: 0
Message 32046 - Posted: 22 Aug 2017, 17:48:07 UTC - in response to Message 32045.  

Hi, Peter,
It shouldn't be that slow with only 60-80% CPU usage. My 3 hosts run constantly at close to 100% with little noticeable drop in performance.
There are a few OPTIONS in Boinc Manager. You could set to only use 3 of you 4 logical cores, 75%, to leave 1 core free for other purposes or tick the "Suspend while computer is in use" box or "Suspend when non-Boinc CPU usage is above" say 50% or whatever you fancy.
ID: 32046 · Report as offensive     Reply Quote
Mr P Hucker
Avatar

Send message
Joined: 12 Aug 06
Posts: 418
Credit: 5,667,249
RAC: 6
Message 32047 - Posted: 22 Aug 2017, 17:57:24 UTC - in response to Message 32046.  
Last modified: 22 Aug 2017, 18:13:03 UTC

I'm only using TWO of the 4 cores for LHC tasks. I always do that, so I have one free for me, and one free to assist GPU tasks. I used to run three CPU tasks, but sometimes the GPU task would end up getting throttled waiting for the CPU assist.

I don't want to suspend the tasks while in use, I'd rather it was getting on with things. Before LHC, the only thing I had to suspend was GPU tasks while a game was playing.

I was wondering if perhaps Virtualbox could be tuned in some way? It appears to be acting like the CPU is overworked, but I can see that it isn't. So perhaps it's taking too long between task-switching? Back in the days of Windows 3, you could change the number of ms per task before it changed to the next.

BOINC has just switched to doing one Einstein and one LHC on the CPU cores. It's now running smoothly. So it's only when there are two LHCs running. Perhaps two virtualboxes at once is causing a problem and I need to adjust something? Maybe my CPU isn't capable of using virtualisation technology twice at once?

Actually, it's behaving as though the machine is out of memory and it's swapping to disk (which it isn't) - you know when it's disk swapping and opening an application you can actually see it drawing individual parts on the screen?
ID: 32047 · Report as offensive     Reply Quote
Crystal Pellet
Volunteer moderator
Volunteer tester

Send message
Joined: 14 Jan 10
Posts: 1274
Credit: 8,480,870
RAC: 2,011
Message 32053 - Posted: 22 Aug 2017, 19:49:12 UTC - in response to Message 32047.  

Hi Peter,

It's surely caused by VirtualBox. Their processes normally are running with the same priority as the user. Priority = 'Normal'.
That's against BOINC's principle to run at lowest priority, but several versions ago Oracle decided that the process priority
of VBox-processes can't be changed when already running.

One solution is before starting BOINC VBox tasks, open VirtualBox Manager, go to Task Manager and lower the process priority of the VBoxSVC.exe process to 'below normal'.
Then you can start BOINC's VBox processes and the VBoxHeadless.exe's will also get the 'below normal' priority.
There are tools to automate this.
ID: 32053 · Report as offensive     Reply Quote
Mr P Hucker
Avatar

Send message
Joined: 12 Aug 06
Posts: 418
Credit: 5,667,249
RAC: 6
Message 32054 - Posted: 22 Aug 2017, 20:23:40 UTC - in response to Message 32053.  
Last modified: 22 Aug 2017, 20:24:12 UTC

That didn't seem to help. And my CPU is not maxed out anyway.

Task manager shows all the headless.exes got below normal as you said they would, but the interface is still sluggish.
ID: 32054 · Report as offensive     Reply Quote
gyllic

Send message
Joined: 9 Dec 14
Posts: 202
Credit: 2,533,875
RAC: 0
Message 32058 - Posted: 23 Aug 2017, 5:36:59 UTC

are you sure that this is not caused by your GPU?
because when i use my GPU for crunching and not suspending work while the computer is in use, it gets really sluggish as well. after suspending gpu work the pc runs smoothly, even with active vbox crunching.
ID: 32058 · Report as offensive     Reply Quote
Mr P Hucker
Avatar

Send message
Joined: 12 Aug 06
Posts: 418
Credit: 5,667,249
RAC: 6
Message 32070 - Posted: 23 Aug 2017, 19:54:44 UTC - in response to Message 32058.  

Definitely the vbox. I just tried running only 2 vbox LHC tasks (on a quad core processor), and double clicking a jpeg to open it in paintshop took 3 or 4 seconds. I then ran only xansons on the gpu, and they opened instantly.
ID: 32070 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2401
Credit: 225,551,300
RAC: 120,874
Message 32073 - Posted: 24 Aug 2017, 5:11:56 UTC - in response to Message 32070.  

Peter Hucker wrote:
... they opened instantly.

Did you restart the computer before the second test?
If not, paintshop as well as the jpeg were most likely taken from the disk cache.
ID: 32073 · Report as offensive     Reply Quote
Mr P Hucker
Avatar

Send message
Joined: 12 Aug 06
Posts: 418
Credit: 5,667,249
RAC: 6
Message 32077 - Posted: 24 Aug 2017, 8:35:47 UTC - in response to Message 32073.  

The disk cache seems irrelevant. I can reopen the same jpeg again and again and it's slow every time if two LHCs are running.
ID: 32077 · Report as offensive     Reply Quote
Profile Nils Høimyr
Volunteer moderator
Project administrator
Project developer
Project tester

Send message
Joined: 15 Jul 05
Posts: 242
Credit: 5,800,306
RAC: 0
Message 32079 - Posted: 24 Aug 2017, 13:03:23 UTC

On my PC, I use the "do not run when user is active" setting to avoid this. BOINC should pause VirtualBox and memory consumption come down.
ID: 32079 · Report as offensive     Reply Quote
Mr P Hucker
Avatar

Send message
Joined: 12 Aug 06
Posts: 418
Credit: 5,667,249
RAC: 6
Message 32081 - Posted: 24 Aug 2017, 14:07:20 UTC - in response to Message 32079.  

I don't want to do that. I've got 4 CPU cores and I certainly don't need them all to myself. The computer could be doing something useful at the same time (ie. BOINC). And usually even if I do need most of the cores, BOINC runs at low priority and gets out of the way by slowing down temporarily. I haven't had this problem with any project apart from LHC.
ID: 32081 · Report as offensive     Reply Quote

Message boards : Number crunching : LHC slowing my computer down


©2024 CERN