Author Topic: Better Utilization of Multicore Processors  (Read 243 times)

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 3296
    • View Profile
Better Utilization of Multicore Processors
« on: March 09, 2023, 16:30:03 pm »
Hi All.

Would like to see PC better processor power utilization. I'm running 64 bit CB ever since Andy introduced it, it was big improvement over 32 Bit version, but still struggles 'big time' when file needs more umph to process it. It looks like CB is using only one core, why? Processors come with multiple cores for a reason. Andy, can you please do something about it. Thanks.
My 2¢

Win11, CB(1.0)rc 1(64 bit) Mach3, ESS, G540, 4th Axis, Endurance Laser.

Offline Bob La Londe

  • CNC Jedi
  • *****
  • Posts: 4358
  • ^ 8.5 pounds on my own hand poured bait.
    • View Profile
    • CNC Molds N Stuff
Re: Better Utilization of Multicore Processors
« Reply #1 on: March 09, 2023, 16:43:01 pm »
The way I understand it is for continuity of processing it uses one worker thread per operation up to the maximum number of worker threads.  If for example you have one extremely painfully large operation and 27 quick operations to calculate the 27 quick operations will be calculated fairly quickly, and while only one remaining operation is being calculated it's only using one worker thread.
Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com

Offline Bob La Londe

  • CNC Jedi
  • *****
  • Posts: 4358
  • ^ 8.5 pounds on my own hand poured bait.
    • View Profile
    • CNC Molds N Stuff
Re: Better Utilization of Multicore Processors
« Reply #2 on: March 09, 2023, 16:44:31 pm »
Of course you do need to set cam bam to the number of worker threads your processor is capable of, but I'm pretty sure you already know that.
Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7146
    • View Profile
    • Cambam V1.0 French Doc
Re: Better Utilization of Multicore Processors
« Reply #3 on: March 09, 2023, 16:59:19 pm »
Hello

I confirm, CB use one thread per mop for toolpath calculation. I other word, if your project use only one mop, only one thread will be used.

Note that the number of threads is not necessary the same of the number of cores. Ex: a i7 processor have 4 cores but 8 threads (2 threads per core)

++
David
« Last Edit: March 09, 2023, 17:01:54 pm by dh42 »

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 3296
    • View Profile
Re: Better Utilization of Multicore Processors
« Reply #4 on: March 09, 2023, 19:07:57 pm »
Of course you do need to set cam bam to the number of worker threads your processor is capable of, but I'm pretty sure you already know that.

 Thank you Bob and David for quick reply's.

Bob, I didn't know this  :-[ . I will look for it and change that. Thanks.

David, My desktop do have i7 processor and 32 GB memory, so I should see improvement per Bob's suggestion. Thanks.

Edited portion.

As per suggestions, changed worker tread's from 1 to 8. It improved enough for me to be able do something with the file. BTW, the file I was wrestling with is a Grandfather clock .STL file.
Thanks again fellas..
« Last Edit: March 09, 2023, 19:19:21 pm by Bubba »
My 2¢

Win11, CB(1.0)rc 1(64 bit) Mach3, ESS, G540, 4th Axis, Endurance Laser.