POV-Ray : Newsgroups : povray.windows : Processor affinity? Server Time
23 Apr 2024 20:43:50 EDT (-0400)
  Processor affinity? (Message 9 to 18 of 28)  
<<< Previous 8 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Mike Horvath
Subject: Re: Processor affinity?
Date: 5 Mar 2018 03:57:11
Message: <5a9d0667$1@news.povray.org>
On 3/5/2018 3:24 AM, Stephen wrote:
> On 05/03/2018 07:37, dick balaska wrote:
>> On 03/05/2018 02:17 AM, Stephen wrote:
>>> On 05/03/2018 06:38, dick balaska wrote:
>>>> On 03/04/2018 08:53 PM, Mike Horvath wrote:
>>>>> Is there a permanent way to set the processor affinity of the 
>>>>> POV-Ray render processes? I can do this Process Hacker, but as soon 
>>>>> as I minimize or exit Process Hacker, the changes are reversed.
>>>>>
>>>>> I would like to still be able to use my computer for other stuff 
>>>>> while rendering, and setting the render priority isn't always enough.
>>>>>
>>>>>
>>>>> Mike
>>>>
>>>> I always set it from Task Manager. Right click on the process and 
>>>> you can change its affinity and priority.
>>>>
>>>
>>> Task Manager works well for Windoze and Pov retains the affinity 
>>> settings when it is closed but I have a feeling Mike uses Linux.
>>>
>>
>> Ah.
>>
>> Wait. Why post this question in the windows group then? ;)
>>
> 
> Oh! That's a duh on my part. :-(
> 

Yeah, I meant Windows. But thanks for the help!


Mike


Post a reply to this message

From: Stephen
Subject: Re: Processor affinity?
Date: 5 Mar 2018 04:11:13
Message: <5a9d09b1$1@news.povray.org>
On 05/03/2018 08:55, Mike Horvath wrote:
> On 3/5/2018 3:51 AM, Thomas de Groot wrote:
>> On 5-3-2018 9:49, Thomas de Groot wrote:
>> I probably should have written "threads" instead of "cores". ;-)
>>
> 
> Wow, +wt is even better!!
> 
> The docs mention threads and cores. But some CPUs have 2 threads per 
> core, correct?
> 
> 
> 

Yes my i7 CPU has 6 cores and 12 threads.

One other thought, only slightly relevant.

If, toward the end of rendering a frame, you find that you are waiting 
for one or two blocks to finish. Setting Render_Block_Size to a smallish 
value allows all of your cores to work on the blocks instead of being 
idle. I generally use +BS8

http://wiki.povray.org/content/Reference:Tracing_Options#Render_Block_Size

-- 

Regards
     Stephen


Post a reply to this message

From: Stephen
Subject: Re: Processor affinity?
Date: 5 Mar 2018 04:12:45
Message: <5a9d0a0d$1@news.povray.org>
On 05/03/2018 08:57, Mike Horvath wrote:
> On 3/5/2018 3:24 AM, Stephen wrote:
>> On 05/03/2018 07:37, dick balaska wrote:
>>> On 03/05/2018 02:17 AM, Stephen wrote:
>>>> On 05/03/2018 06:38, dick balaska wrote:
>>>>> On 03/04/2018 08:53 PM, Mike Horvath wrote:
>>>>>> Is there a permanent way to set the processor affinity of the 
>>>>>> POV-Ray render processes? I can do this Process Hacker, but as 
>>>>>> soon as I minimize or exit Process Hacker, the changes are reversed.
>>>>>>
>>>>>> I would like to still be able to use my computer for other stuff 
>>>>>> while rendering, and setting the render priority isn't always enough.
>>>>>>
>>>>>>
>>>>>> Mike
>>>>>
>>>>> I always set it from Task Manager. Right click on the process and 
>>>>> you can change its affinity and priority.
>>>>>
>>>>
>>>> Task Manager works well for Windoze and Pov retains the affinity 
>>>> settings when it is closed but I have a feeling Mike uses Linux.
>>>>
>>>
>>> Ah.
>>>
>>> Wait. Why post this question in the windows group then? ;)
>>>
>>
>> Oh! That's a duh on my part. :-(
>>
> 
> Yeah, I meant Windows. But thanks for the help!
> 

I was up far too early this morning, 2 am.


-- 

Regards
     Stephen


Post a reply to this message

From: Mike Horvath
Subject: Re: Processor affinity?
Date: 5 Mar 2018 04:57:13
Message: <5a9d1479$1@news.povray.org>
On 3/5/2018 4:11 AM, Stephen wrote:
> One other thought, only slightly relevant.
> 
> If, toward the end of rendering a frame, you find that you are waiting 
> for one or two blocks to finish. Setting Render_Block_Size to a smallish 
> value allows all of your cores to work on the blocks instead of being 
> idle. I generally use +BS8
> 
> http://wiki.povray.org/content/Reference:Tracing_Options#Render_Block_Size
> 


Nice tip! Thanks!


Mike


Post a reply to this message

From: Stephen
Subject: Re: Processor affinity?
Date: 5 Mar 2018 05:37:12
Message: <5a9d1dd8$1@news.povray.org>
On 05/03/2018 09:57, Mike Horvath wrote:
> On 3/5/2018 4:11 AM, Stephen wrote:
>> One other thought, only slightly relevant.
>>
>> If, toward the end of rendering a frame, you find that you are waiting 
>> for one or two blocks to finish. Setting Render_Block_Size to a 
>> smallish value allows all of your cores to work on the blocks instead 
>> of being idle. I generally use +BS8
>>
>> http://wiki.povray.org/content/Reference:Tracing_Options#Render_Block_Size 
>>
>>
> 
> 
> Nice tip! Thanks!
> 
> 
My pleasure. :-D
It is handy if there are lots of reflections and or media.


-- 

Regards
     Stephen


Post a reply to this message

From: dick balaska
Subject: Re: Processor affinity?
Date: 5 Mar 2018 06:31:33
Message: <5a9d2a95$1@news.povray.org>
On 03/05/2018 04:11 AM, Stephen wrote:
> On 05/03/2018 08:55, Mike Horvath wrote:
>> On 3/5/2018 3:51 AM, Thomas de Groot wrote:
>>> On 5-3-2018 9:49, Thomas de Groot wrote:
>>> I probably should have written "threads" instead of "cores". ;-)
>>>
>>
>> Wow, +wt is even better!!
>>
>> The docs mention threads and cores. But some CPUs have 2 threads per 
>> core, correct?
>>
>>
>>
> 
> Yes my i7 CPU has 6 cores and 12 threads.
> 
> One other thought, only slightly relevant.
> 
> If, toward the end of rendering a frame, you find that you are waiting 
> for one or two blocks to finish. Setting Render_Block_Size to a smallish 
> value allows all of your cores to work on the blocks instead of being 
> idle. I generally use +BS8
> 
> http://wiki.povray.org/content/Reference:Tracing_Options#Render_Block_Size
> 

I have been grooving on Render_Pattern=3 lately.  This causes the middle 
of the pic to be rendered first, which is usually where the heavy blocks 
will live. It's also good for preview.

I was doing +wt6 for awhile. I agree leaving only 2 threads is 
sufficient to have a responsive computer.  But I preferred to run +wt8 
and then turn off 2 POV-Ray threads with Task Manager while using the 
computer, and then turning them back on when done.

But, now I run Ubuntu and I have no control over affinity and priority 
anyway. ;)

-- 
dik
Rendered 920576 of 921600 pixels (99%)


Post a reply to this message

From: Stephen
Subject: Re: Processor affinity?
Date: 5 Mar 2018 07:12:10
Message: <5a9d341a$1@news.povray.org>
On 05/03/2018 11:31, dick balaska wrote:
> 
> I have been grooving on Render_Pattern=3 lately.  This causes the middle 
> of the pic to be rendered first, which is usually where the heavy blocks 
> will live. It's also good for preview.
> 

Hmm! Something to remember.

> I was doing +wt6 for awhile. I agree leaving only 2 threads is 
> sufficient to have a responsive computer.  But I preferred to run +wt8 
> and then turn off 2 POV-Ray threads with Task Manager while using the 
> computer, and then turning them back on when done.
> 
I find that keeping the priority setting in PovRay at normal. PovRay 
gives up CPU ticks whenever I need them. Only when I use another CPU 
intensive process. Do I use affinity.

> But, now I run Ubuntu and I have no control over affinity and priority 
> anyway. ;)

There's where my confusion arose. I got you and Mike mixed up.
Sorry both of you. :$


-- 

Regards
     Stephen


Post a reply to this message

From: Thomas de Groot
Subject: Re: Processor affinity?
Date: 5 Mar 2018 07:18:08
Message: <5a9d3580$1@news.povray.org>
On 5-3-2018 10:11, Stephen wrote:
> On 05/03/2018 08:55, Mike Horvath wrote:
>> On 3/5/2018 3:51 AM, Thomas de Groot wrote:
>>> On 5-3-2018 9:49, Thomas de Groot wrote:
>>> I probably should have written "threads" instead of "cores". ;-)
>>>
>>
>> Wow, +wt is even better!!
>>
>> The docs mention threads and cores. But some CPUs have 2 threads per 
>> core, correct?
>>
>>
>>
> 
> Yes my i7 CPU has 6 cores and 12 threads.

I am always unsure about these things. I think my i7 CPU has one core 
and 8 threads. As far as I know...

> 
> One other thought, only slightly relevant.
> 
> If, toward the end of rendering a frame, you find that you are waiting 
> for one or two blocks to finish. Setting Render_Block_Size to a smallish 
> value allows all of your cores to work on the blocks instead of being 
> idle. I generally use +BS8
> 
> http://wiki.povray.org/content/Reference:Tracing_Options#Render_Block_Size
> 

Ah, yes! That might be very relevant indeed. Thanks!

-- 
Thomas


Post a reply to this message

From: Stephen
Subject: Re: Processor affinity?
Date: 5 Mar 2018 07:48:57
Message: <5a9d3cb9$1@news.povray.org>
On 05/03/2018 12:18, Thomas de Groot wrote:
> On 5-3-2018 10:11, Stephen wrote:
>> On 05/03/2018 08:55, Mike Horvath wrote:
>>> On 3/5/2018 3:51 AM, Thomas de Groot wrote:
>>>> On 5-3-2018 9:49, Thomas de Groot wrote:
>>>> I probably should have written "threads" instead of "cores". ;-)
>>>>
>>>
>>> Wow, +wt is even better!!
>>>
>>> The docs mention threads and cores. But some CPUs have 2 threads per 
>>> core, correct?
>>>
>>>
>>>
>>
>> Yes my i7 CPU has 6 cores and 12 threads.
> 
> I am always unsure about these things. I think my i7 CPU has one core 
> and 8 threads. As far as I know...
> 
It is generally 2 threads per core.

http://www.expertreviews.co.uk/pcs/cpus/1400962/whats-the-difference-between-core-i3-i5-and-i7-processors


>>
>> One other thought, only slightly relevant.
>>
>> If, toward the end of rendering a frame, you find that you are waiting 
>> for one or two blocks to finish. Setting Render_Block_Size to a 
>> smallish value allows all of your cores to work on the blocks instead 
>> of being idle. I generally use +BS8
>>
>> http://wiki.povray.org/content/Reference:Tracing_Options#Render_Block_Size 
>>
>>
> 
> Ah, yes! That might be very relevant indeed. Thanks!
> 

Sorry if I did not mention it when we were working on Dhalgren? .

I leave +BS8 in the command line box. It is persistent and is there 
whenever I start Pov 3.7. Unless I delete or change it.

-- 

Regards
     Stephen


Post a reply to this message

From: Alain
Subject: Re: Processor affinity?
Date: 5 Mar 2018 15:43:29
Message: <5a9dabf1$1@news.povray.org>
Le 18-03-04 à 20:53, Mike Horvath a écrit :
> Is there a permanent way to set the processor affinity of the POV-Ray 
> render processes? I can do this Process Hacker, but as soon as I 
> minimize or exit Process Hacker, the changes are reversed.
> 
> I would like to still be able to use my computer for other stuff while 
> rendering, and setting the render priority isn't always enough.
> 
> 
> Mike

You can set the working treads number to something less than the number 
of cores on your system. You can use +wt# for that purpose.

Say, you have an 8 cores processor, you can add +wt7 or +wt6 to liberate 
1 or 2 cores for other tasks.


Post a reply to this message

<<< Previous 8 Messages Goto Latest 10 Messages Next 10 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.