Skip to content
Prev 1860 / 2152 Next

Why pure computation time in parallel is longer than the serial version?

I think our thread here (pun intended) has become somewhat unclear.
I believe Simon was using the term "hyperthreading" in a broader sense
than what George is using below.

What Simon was describing is the general notion of running more threads
than there are cores.  This is motivated, as he said, by memory
hierarchy considerations, e.g. the need to keep the cores busy in case
of a page fault.  The thread that had been running in such a situation
is suspended pending the paging op, but with extra threads available the
OS can schedule one and fully utilize the machine.  This is sometimes
termed "oversubscription" of the cores.

The strict use of the term "hyperthreading," which I believe George (and
Claudia) meant, is a hardware issue.  Modern CPUs are highly pipelined,
with multiple arithmetic/logic units, so it is possible to run more than
one thread at a time (though possibly at different stages of the pipe)
on a core.  Thus a quad core machine with hyperthreading degree 2 acts
somewhat like an octo core machine, though not quite, due to the
delicate nature of the pipe scheduling.

If you combine Simon's and George's posts, one might profitably run more
than 8 threads on that quad core machine.  And by the way, the OS, at
least in Unix-family systems, will show the machine as having 8 cores.

Norm
On Wed, Feb 26, 2014 at 12:17:11AM -0500, George Ostrouchov wrote:

        

Thread (19 messages)

Wesley Goi Why pure computation time in parallel is longer thanthe serial version? Feb 17 Xuening Zhu Why pure computation time in parallel is longer thanthe serial version? Feb 17 wesley goi Why pure computation time in parallel is longer thanthe serial version? Feb 17 Roger Bivand Why pure computation time in parallel is longer than the serial version? Feb 18 wesley goi Why pure computation time in parallel is longer than the serial version? Feb 18 Xuening Zhu Why pure computation time in parallel is longer than the serial version? Feb 22 Claudia Beleites Why pure computation time in parallel is longer than the serial version? Feb 22 Xuening Zhu Why pure computation time in parallel is longer than the serial version? Feb 22 Roger Bivand Why pure computation time in parallel is longer than the serial version? Feb 22 Xuening Zhu Why pure computation time in parallel is longer than the serial version? Feb 22 Roger Bivand Why pure computation time in parallel is longer than the serial version? Feb 23 Ei-ji Nakama Why pure computation time in parallel is longer than the serial version? Feb 23 Ei-ji Nakama Why pure computation time in parallel is longer than the serial version? Feb 23 Simon Urbanek Why pure computation time in parallel is longer than the serial version? Feb 25 Jim Gattiker Why pure computation time in parallel is longer than the serial version? Feb 25 George Ostrouchov Why pure computation time in parallel is longer than the serial version? Feb 25 Norm Matloff Why pure computation time in parallel is longer than the serial version? Feb 25 Jim Gattiker Why pure computation time in parallel is longer than the serial version? Feb 26 George Ostrouchov Why pure computation time in parallel is longer than the serial version? Feb 26