POV-Ray : Newsgroups : povray.off-topic : Hyperthreading Server Time
29 Jul 2024 08:18:04 EDT (-0400)
  Hyperthreading (Message 29 to 38 of 48)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: clipka
Subject: Re: Hyperthreading
Date: 8 Jul 2012 21:57:16
Message: <4ffa3a7c$1@news.povray.org>
Am 08.07.2012 18:15, schrieb Orchid Win7 v1:
>>> Well, that would only make it 4x faster, wouldn't it? It's still not
>>> going to turn a 40-minute render into a 15-second render like you
>>> claimed. :-P
>>
>> Not exactly, but do expect more than 4x speedup.
>
> Um, why?

Because it has been optimized here and there? (And because you have 
hyperthreading besides?)

>> You may probably also
>> get away with lower radiosity quality settings.
>
> How do you work that one out? Running it in parallel doesn't change the
> math, it just makes it faster.

I happen to know that /someone/ (*cough*) had discovered & fixed various 
flaws in the radiosity algorithms & math when he made the feature 
multithreading-ready.


Post a reply to this message

From: Darren New
Subject: Re: Hyperthreading
Date: 19 Jul 2012 19:20:10
Message: <5008962a$1@news.povray.org>
On 7/6/2012 10:36, clipka wrote:
> Better yet, overwrite it with pseudorandom nonsense.

On modern hard disks, this is useless. And by "modern" I mean pretty much 
anything that passed the 1GB boundary.

-- 
Darren New, San Diego CA, USA (PST)
   "Oh no! We're out of code juice!"
   "Don't panic. There's beans and filters
    in the cabinet."


Post a reply to this message

From: Darren New
Subject: Re: Hyperthreading
Date: 19 Jul 2012 19:45:03
Message: <50089bff$1@news.povray.org>
On 7/5/2012 11:22, Orchid Win7 v1 wrote:
> (In spite of the fact that I'm actually using ALL the cores available.)

You're not, tho. Hyperthreading means you have like 1.5 cores for every 
"core". I assume you know what hyperthreading does. You could probably see a 
speed-up by running 5 copies of pov-ray instead of 4.

-- 
Darren New, San Diego CA, USA (PST)
   "Oh no! We're out of code juice!"
   "Don't panic. There's beans and filters
    in the cabinet."


Post a reply to this message

From: Invisible
Subject: Re: Hyperthreading
Date: 20 Jul 2012 04:03:09
Message: <500910bd$1@news.povray.org>
On 20/07/2012 12:45 AM, Darren New wrote:
> On 7/5/2012 11:22, Orchid Win7 v1 wrote:
>> (In spite of the fact that I'm actually using ALL the cores available.)
>
> You're not, tho. Hyperthreading means you have like 1.5 cores for every
> "core". I assume you know what hyperthreading does. You could probably
> see a speed-up by running 5 copies of pov-ray instead of 4.

As I understand it, hyperthreading allows you to schedule 2 threads on 
each core. The first thread gets all available resources. If any are 
unused, they are assigned to the second thread.

This means that if, say, one thread is using floating-point arithmetic 
and the other is using integer arithmetic, both threads run at nearly 
full speed. On the other hand, if both threads are using integer 
arithmetic, only one thread runs, and the other makes no progress. (At 
least, until the OS reschedules.)

Thus, I can believe that running two different applications might see a 
benefit. If they're performing different tasks, they probably use 
different execution unit types. But running two copies of the same 
application is highly unlikely to see any benefit - unless the 
application uses a really variable mix of instruction types...


Post a reply to this message

From: Le Forgeron
Subject: Re: Hyperthreading
Date: 20 Jul 2012 05:58:17
Message: <50092bb9$1@news.povray.org>
Le 20/07/2012 10:03, Invisible a écrit :
> On 20/07/2012 12:45 AM, Darren New wrote:
>> On 7/5/2012 11:22, Orchid Win7 v1 wrote:
>>> (In spite of the fact that I'm actually using ALL the cores available.)
>>
>> You're not, tho. Hyperthreading means you have like 1.5 cores for every
>> "core". I assume you know what hyperthreading does. You could probably
>> see a speed-up by running 5 copies of pov-ray instead of 4.

Well, personal measures about hyperthreading and povray 3.7 seems to
indicate that a HT core is rather between 1.2 and 1.25 core for povray
(see details and graph in povray.benchmarking). at least for the
benchmark scene.

> 
> As I understand it, hyperthreading allows you to schedule 2 threads on
> each core. The first thread gets all available resources. If any are
> unused, they are assigned to the second thread.

HT is: a second set of registers. Nothing more. No additional FPU or
fancy integer units.

> 
> This means that if, say, one thread is using floating-point arithmetic
> and the other is using integer arithmetic, both threads run at nearly
> full speed. On the other hand, if both threads are using integer
> arithmetic, only one thread runs, and the other makes no progress. (At
> least, until the OS reschedules.)

Well, it's more subtle, due to the Intel pipeline, but globally correct:
if they want the same resources at the same time, there is a contention
and the pipeline will rearrange them. The OS is usually unaware of such
issue: the granularity of the OS is far bigger than the small cycle in
the pipeline.

At best, operation of time 1 + another of time 1 could be done in 1 if
they do not use the same units at the same time... At worst it could be
2. Due to the pipeline splitting an instruction in multiple steps, it's
possible to interleave some steps in the empty slots of the first
thread-core.

> 
> Thus, I can believe that running two different applications might see a
> benefit. If they're performing different tasks, they probably use
> different execution unit types. But running two copies of the same
> application is highly unlikely to see any benefit - unless the
> application uses a really variable mix of instruction types...

Guess what, povray is not a single instruction!


Post a reply to this message

From: Orchid Win7 v1
Subject: Re: Hyperthreading
Date: 20 Jul 2012 12:15:24
Message: <5009841c$1@news.povray.org>
On 20/07/2012 12:20 AM, Darren New wrote:
> On 7/6/2012 10:36, clipka wrote:
>> Better yet, overwrite it with pseudorandom nonsense.
>
> On modern hard disks, this is useless. And by "modern" I mean pretty
> much anything that passed the 1GB boundary.

Care to elaborate on that?


Post a reply to this message

From: Le Forgeron
Subject: Re: Hyperthreading
Date: 20 Jul 2012 13:31:45
Message: <50099601$1@news.povray.org>
Le 20/07/2012 18:15, Orchid Win7 v1 nous fit lire :
> On 20/07/2012 12:20 AM, Darren New wrote:
>> On 7/6/2012 10:36, clipka wrote:
>>> Better yet, overwrite it with pseudorandom nonsense.
>>
>> On modern hard disks, this is useless. And by "modern" I mean pretty
>> much anything that passed the 1GB boundary.
> 
> Care to elaborate on that?
> 

Old fact: reading a hard disk by direct access to the disk, with some
electronic beam device... fine until the density and encoding on the
disk went into modern era.

Nowadays (and since most 1GB hard drive... quite old), its not possible
anymore. Writing 0 or random number is the same: the old data is not
recoverable.


Post a reply to this message

From: clipka
Subject: Re: Hyperthreading
Date: 20 Jul 2012 13:46:20
Message: <5009996c$1@news.povray.org>
Am 20.07.2012 19:31, schrieb Le_Forgeron:
> Le 20/07/2012 18:15, Orchid Win7 v1 nous fit lire :
>> On 20/07/2012 12:20 AM, Darren New wrote:
>>> On 7/6/2012 10:36, clipka wrote:
>>>> Better yet, overwrite it with pseudorandom nonsense.
>>>
>>> On modern hard disks, this is useless. And by "modern" I mean pretty
>>> much anything that passed the 1GB boundary.
>>
>> Care to elaborate on that?
>>
>
> Old fact: reading a hard disk by direct access to the disk, with some
> electronic beam device... fine until the density and encoding on the
> disk went into modern era.
>
> Nowadays (and since most 1GB hard drive... quite old), its not possible
> anymore. Writing 0 or random number is the same: the old data is not
> recoverable.

Quiz: If you had highly sensitive data on your hard drive, and needed to 
erase it for sure - would you rather trust this alleged fact, or have 
the erasing software write random numbers just in case?


Post a reply to this message

From: Le Forgeron
Subject: Re: Hyperthreading
Date: 20 Jul 2012 14:54:06
Message: <5009a94e$1@news.povray.org>
Le 20/07/2012 19:46, clipka nous fit lire :
> 
> Quiz: If you had highly sensitive data on your hard drive, and needed to
> erase it for sure - would you rather trust this alleged fact, or have
> the erasing software write random numbers just in case?

If the data on drive was so sensitive, I would use chemistry first. Then
a bit of heavy hammer physic, and finally a good heat with partial
ionisation, at temperature far above the curie point.

Boiling HCl is probably enough, as a starter. (get ride of most iron &
steel). Wear a protective mask and operate under well vented condition.


Post a reply to this message

From: clipka
Subject: Re: Hyperthreading
Date: 20 Jul 2012 16:22:23
Message: <5009bdff@news.povray.org>
Am 20.07.2012 20:54, schrieb Le_Forgeron:
> Le 20/07/2012 19:46, clipka nous fit lire :
>>
>> Quiz: If you had highly sensitive data on your hard drive, and needed to
>> erase it for sure - would you rather trust this alleged fact, or have
>> the erasing software write random numbers just in case?
>
> If the data on drive was so sensitive, I would use chemistry first. Then
> a bit of heavy hammer physic, and finally a good heat with partial
> ionisation, at temperature far above the curie point.
>
> Boiling HCl is probably enough, as a starter. (get ride of most iron &
> steel). Wear a protective mask and operate under well vented condition.

Not recommended if you want to continue to use the hard drive though.


Post a reply to this message

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

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