cpu - What is the difference between the number of cores and the number of logical processors?

26
2014-06
  • Aaron

    I have been doing some image processing on my computer using Erdas Imagine. Specifically, I am running a 5x5 median filter on imagery. I can specify the number of processes that occur simultaneously within the Erdas batch command window. I have been observing unusual behavior when I specify 16 simultaneous processes, which lead me to double check the number of processors on the machine. I used the following command prompt command to assess the number of processors:

    wmic cpu > cpu.txt
    

    Which yielded (in part):

    Number of Cores: 8 
    Number of Logical Processors: 16
    

    How does the number of cores differ from the number of logical processors in the context of software like Erdas imagine where the user can specify the number of simultaneous processes? I am trying to determine if I should be specifying 8 or 16 simultaneous processes to maximize efficiency.

  • Answers
  • Jason C

    Hyperthreading will make one physical core appear to the OS as two.

    Hyperthreading essentially allows one core to execute two sets of instructions at once, depending on the nature of the instructions. When it was first introduced (back in 2002, and it was quite the buzz at the time, with overclockers and then-new bloggers going crazy debating HT vs. true multicore - some things never change) it was sort of like "dual core lite". To make the use of hyperthreading transparent to existing software and operating systems, they were designed to appear as two cores, and so the kernel could continue using its existing scheduling and load balancing and take advantage of hyperthreading without any changes (later, of course, optimizations were made). That's why it started that way - so that hyperthreaded CPUs could just be drop-in replacements on platforms that already had multiprocessor support anyways.

    Anyways, since efficiency will depend on the nature of the application you may wish to do a bench mark at 8 and 16 (and higher if the processes are not CPU bound but, e.g. network or IO bound).

  • Cornelius

    Number of cores (8) represents the actual number of physical cores. For each processor core that is physically present, the operating system addresses two virtual or logical cores, and shares the workload between them when possible.

    Where multiprocessing systems include multiple complete processing units, multithreading aims to increase utilization of a single core by using thread-level as well as instruction-level parallelism. As the two techniques are complementary, they are sometimes combined in systems with multiple multithreading CPUs and in CPUs with multiple multithreading cores.

    See Wikipedia's articles on HyperThreading and Multithreading.

  • Sandesh Damkondwar

    A logical CPU is usually used to describe the grand total of CPUs on the chip. the 8 cores are physical cores that exist on the chip. So each CPU can address to processes at once giving you 16 logical processors. The hyper-threading allows a core to complete two tasks at once. So as you have 4 cores each hyper-threading you will have a total of 16 logical processors.

    In the basic sense the cores are real ie you have two physical cores on your chip. While logical processors is anything on the chip that can do a calculation. All cores are logical processors but not all logical processors are cores.


  • Related Question

    cpu - Whats the difference between intel Dual-Core and Core 2 Duo?
  • WindyCityEagle

    Whats the difference between the Intel Dual-Core(brand name) processor and the Core 2 Duo? It seems like clock speed is the only difference, but I want to make sure that is the case. It seems like anything over 2.6GHz is Core 2 Duo, and anything under 2.6GHz gets the label Dual-Core.


  • Related Answers
  • Troggy

    http://en.wikipedia.org/wiki/Pentium_Dual-Core

    The Intel Dual Core is its own product line of Intel processors.

    http://en.wikipedia.org/wiki/Intel_Core_2

    The Intel Core 2 is also another product line of Intel processors.

    The pentium dual-core processor is a one of Intel's value or basic processors available. That is why you save so much going with that processor. The Core 2 is the more powerful desktop processor from Intel, hence why you pay more for it.

    Here is a review comparing performance between the two: (This is well put together)

    http://expertester.wordpress.com/2008/05/30/core-2-duo-vs-pentium-dual-core/

    And a forum discussion about the differences:

    http://www.devhardware.com/forums/intel-processors-30/pentium-dual-core-vs-core-2-duo-188459.html

    I assume you mean the difference like on this inspiron 537 between the two middle models:

    http://www.dell.com/content/products/productdetails.aspx/desktop-inspiron_537s?c=us&cs=19&l=en&s=dhs

    If you notice next to the processor names is the intel e5200 and the intel e7500. These are the processor numbers you can look up on the internet for futher specifications and reviews.

    The E5200 is listed under the Pentium Processor for Desktop on intel's website:

    http://processorfinder.intel.com/List.aspx?ParentRadio=All&ProcFam=2841&SearchKey=

    The E7500 is listed under the Core 2 Duo Desktop Processor

    http://processorfinder.intel.com/List.aspx?ParentRadio=All&ProcFam=2558&SearchKey=E7500

  • Axxmasterr

    Dual core refers to a processor that contains two separate processing cores. Core 2 Duo is a brand name of a processor which is also in a dual core configuration. This is the short answer. The brand name and the descriptive name match up precisely in this one case.

  • joe

    The Core 2 Duo has two cores inside a single physical package. The Core 2 Quad has four cores in its package. In applications that utilize multithreading, such as Photoshop or video editing, you will see a tremendous improvement over a Core 2 Duo at the same clock speed. In single-threaded applications, there will be less of an improvement.

    from http://wiki.answers.com/Q/What_is_the_difference_between_an_Intel_Core_2_Duo_and_an_Intel_Core_2_Quad

    And

    dual core is 2 cpu in a package

    2 cpu's in a die = 2 cpu's made together 2 cpu's in package = 2 cpu's on small board or linked in some way

    core 2 duo = brand name of certain kind of cpu like pentium or amd atholon