DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 10 of 10

Thread: Processor question

  1. Droid Sensei
    ilikemoneygreen's Avatar
    Member #
    56291
    Join Date
    Apr 2010
    Location
    AZ, Superstition MTNs!
    Posts
    2,586
    Liked
    206 times
    Phone
    OG D1/G-Nex
    #1

    Processor question

    I just read http://www.droidforums.net/forum/dro...ing-where.html and since my question isnt exactly news i fiqured id just go in here.
    My question is actually a couple things (im just very curious about the subject all together) 1. Is the Moto droid processor unique or something, Because of its ability to be overclocked? I know not all processors can be overclocked but is this design rare? 2. Can these duel core snap dragons be over clocked? 3. what exactly does duel core mean? does it mean that their is one processor that acts like two? can half of it be overclocked while the other half not be? if a 1.2ghz processor were to battle with a duel 1.2ghz processor who would win? what if the non duel processor were overclocked to 2.0ghz (hypothetically)And last question (i know i had alot) does a duel core 1.2 ghz processor mean it can go up to 2.4ghz all together?

    And if someone can answer that, they get a dancing bananna and a dancing droid with a "your awesome" statement. (who wouldnt want that!)
    Last edited by ilikemoneygreen; 07-01-2010 at 03:36 AM.
  2.  
     
     
     
  3. Master Droid
    Skull One's Avatar
    Member #
    45849
    Join Date
    Mar 2010
    Posts
    760
    Liked
    9 times
    Phone
    iPhone 4S daily. Droid and DX
    #2
    Quote Originally Posted by ilikemoneygreen View Post
    I just read http://www.droidforums.net/forum/dro...ing-where.html and since my question isnt exactly news i fiqured id just go in here.
    My question is actually a couple things (im just very curious about the subject all together) 1. Is the Moto droid processor unique or something, Because of its ability to be overclocked? I know not all processors can be overclocked but is this design rare? 2. Can these duel core snap dragons be over clocked? 3. what exactly does duel core mean? does it mean that their is one processor that acts like two? can half of it be overclocked while the other half not be? if a 1.2ghz processor were to battle with a duel 1.2ghz processor who would win? what if the non duel processor were overclocked to 2.0ghz (hypothetically)And last question (i know i had alot) does a duel core 1.2 ghz processor mean it can go up to 2.4ghz all together?

    And if someone can answer that, they get a dancing bananna and a dancing droid with a "your awesome" statement. (who wouldnt want that!)
    Lets take a stab at this.

    1: No. See http://www.droidforums.net/forum/hac...ing-101-a.html for the answer.

    2: Overclocking can be done to anything that doesn't have a physical or software limitation put on it, that can't be circumvented. So we will have to wait to see if this design does.

    3: a. Dual Core means the the subsection of the CPU that deals with the actual instructions that are executed are duplicated. This is different than two fully separate CPUs because dual cores share a common set of memory controllers, along with a host of other auxiliary chip functions.
    b. No.
    c. It is possible to design it that way.
    d. That depends on how the applications is written. If the application is properly written multi-threaded code, then a dual core will always beat a single cpu. But if the code is not written for that, it should be a tie on average.
    e. That condition relies exactly on how the code was written and how the memory bus of both CPUs (single and dual core) are designed.
    f. No. The shared pieces of the dual core become the bottle neck.


    From a practical application standpoint lets look at why dual core CPUs, in theory, can not be 100% as fast as compared to two single CPUs of the same exact design and speed. And we will use a simple program to show the differences. NOTE: To all the coders out there, I know this example can be done simpler but that wouldn't help with the explanation.

    We have a piece of software that contains an array of data that needs to be fed to a math equation. The array will contain the numbers one thru four million. This will require about sixteen million bytes of memory due to the four bytes per array entry I have chosen as the programmer. The equation is result = array element * pi. We will then store the result back into the array element that was used for the equation. We are going to consider this code to be properly threaded by the language and compiler.

    With that in mind, the dual core CPU will load up the machine language code into each of the execution pipelines and then start requesting chunks of data from the section of the array that each part of the core is working on. So core one is taking data from one thru one million and code two takes one million and one thru two million. And there is the first issue. Core one's memory request and core two's are for two different parts of main memory. So the dual core CPU stops execution of the code in both cores, fetches core one's data first, puts it into the core one's internal memory segment and then says go. Then it fetches core two's data, stores it in core two's internal memory segment and then says go.

    Now if you had two separate single core CPUs, with two separate mother boards with two separate memory buses, they would be faster because the code would not be slowed down while one CPU requested different data than the other CPU.

    BUT, because there is always a but in complex examples, that isn't cost effective in making a phone much less a work horse PC. So they made motherboards with one memory setup, two independent CPUs and one shared memory controller that both CPUs had to talk to. It worked but there were slow downs because the CPUs had to talk to an outside memory controller and wait its turn in the memory request queue. The solution? Dual core CPUs. Because then the memory controller had more direct access to what was going on in each cores execution and the designers of the CPU could use branch and memory request prediction to pre-load the data needed for each of the cores.

    I want to stress this is a very over simplified example. But the theory is sound and I doubt you wanted to read for the next two hours on the "why" things work the way they do.
    Last edited by Skull One; 07-01-2010 at 07:34 AM. Reason: Clean up
    Facts are the very first casuality of bad information.
  4. Droid Sensei
    takeshi's Avatar
    Member #
    10236
    Join Date
    Nov 2009
    Posts
    4,600
    Liked
    1 times
    Phone
    Enter Current Phone Here
    #3
    Quote Originally Posted by ilikemoneygreen View Post
    My question is actually a couple things (im just very curious about the subject all together) 1. Is the Moto droid processor unique or something, Because of its ability to be overclocked?
    Not at all. Processors were overclocked for many many years before the Droid was ever even conceived.
  5. Droid Ninja
    Darkseider's Avatar
    Member #
    46256
    Join Date
    Mar 2010
    Posts
    1,869
    Phone
    Motorola Droid
    #4
    Quote Originally Posted by Skull One View Post
    Quote Originally Posted by ilikemoneygreen View Post
    I just read http://www.droidforums.net/forum/dro...ing-where.html and since my question isnt exactly news i fiqured id just go in here.
    My question is actually a couple things (im just very curious about the subject all together) 1. Is the Moto droid processor unique or something, Because of its ability to be overclocked? I know not all processors can be overclocked but is this design rare? 2. Can these duel core snap dragons be over clocked? 3. what exactly does duel core mean? does it mean that their is one processor that acts like two? can half of it be overclocked while the other half not be? if a 1.2ghz processor were to battle with a duel 1.2ghz processor who would win? what if the non duel processor were overclocked to 2.0ghz (hypothetically)And last question (i know i had alot) does a duel core 1.2 ghz processor mean it can go up to 2.4ghz all together?

    And if someone can answer that, they get a dancing bananna and a dancing droid with a "your awesome" statement. (who wouldnt want that!)
    Lets take a stab at this.

    1: No. See http://www.droidforums.net/forum/hac...ing-101-a.html for the answer.

    2: Overclocking can be done to anything that doesn't have a physical or software limitation put on it, that can't be circumvented. So we will have to wait to see if this design does.

    3: a. Dual Core means the the subsection of the CPU that deals with the actual instructions that are executed are duplicated. This is different than two fully separate CPUs because dual cores share a common set of memory controllers, along with a host of other auxiliary chip functions.
    b. No.
    c. It is possible to design it that way.
    d. That depends on how the applications is written. If the application is properly written multi-threaded code, then a dual core will always beat a single cpu. But if the code is not written for that, it should be a tie on average.
    e. That condition relies exactly on how the code was written and how the memory bus of both CPUs (single and dual core) are designed.
    f. No. The shared pieces of the dual core become the bottle neck.


    From a practical application standpoint lets look at why dual core CPUs, in theory, can not be 100% as fast as compared to two single CPUs of the same exact design and speed. And we will use a simple program to show the differences. NOTE: To all the coders out there, I know this example can be done simpler but that wouldn't help with the explanation.

    We have a piece of software that contains an array of data that needs to be fed to a math equation. The array will contain the numbers one thru four million. This will require about sixteen million bytes of memory due to the four bytes per array entry I have chosen as the programmer. The equation is result = array element * pi. We will then store the result back into the array element that was used for the equation. We are going to consider this code to be properly threaded by the language and compiler.

    With that in mind, the dual core CPU will load up the machine language code into each of the execution pipelines and then start requesting chunks of data from the section of the array that each part of the core is working on. So core one is taking data from one thru one million and code two takes one million and one thru two million. And there is the first issue. Core one's memory request and core two's are for two different parts of main memory. So the dual core CPU stops execution of the code in both cores, fetches core one's data first, puts it into the core one's internal memory segment and then says go. Then it fetches core two's data, stores it in core two's internal memory segment and then says go.

    Now if you had two separate single core CPUs, with two separate mother boards with two separate memory buses, they would be faster because the code would not be slowed down while one CPU requested different data than the other CPU.

    BUT, because there is always a but in complex examples, that isn't cost effective in making a phone much less a work horse PC. So they made motherboards with one memory setup, two independent CPUs and one shared memory controller that both CPUs had to talk to. It worked but there were slow downs because the CPUs had to talk to an outside memory controller and wait its turn in the memory request queue. The solution? Dual core CPUs. Because then the memory controller had more direct access to what was going on in each cores execution and the designers of the CPU could use branch and memory request prediction to pre-load the data needed for each of the cores.

    I want to stress this is a very over simplified example. But the theory is sound and I doubt you wanted to read for the next two hours on the "why" things work the way they do.
    Skull although your example is valid you forgot to include a multi-threaded example. For instance core 1 and core 2 spawn simultaneous threads executing the instructions to complete the job faster for each set of 1 million. So the memory is being shared across two cores with each core being clocked at "X" Mhz/Ghz. This would lead to faster completion of the task at hand. Although once the task is complete it has to then move onto the next 1 million and repeat the process. It can also spawn a mutli-threaded process computing each set of 1 million for each set simultaneously depending on the memory constraints and processors performance. Assuming the memory (L1 + L2 + Main memory) and processor was up to the task it could complete the entire job quite quickly. That is also using the assumption each data set being churned doesn't require the results of the previous to be started. WEEEE I am having fun here!
    OG Droid w/ Pete's GPA16 w/ stock Kernel using auto OC script. (retired)

    LG G2X w/ rooted 2.3.3 leak.

    It's OK for your Droid to be different. Just be supportive and reassuring and it will do just fine. It's when you or other people point at it or mock it for being different is when its' feelings get hurt. Just show it unconditional love regardless of its' differences and it will in turn reciprocate that love and loyalty.
  6. Master Droid
    Skull One's Avatar
    Member #
    45849
    Join Date
    Mar 2010
    Posts
    760
    Liked
    9 times
    Phone
    iPhone 4S daily. Droid and DX
    #5
    Quote Originally Posted by Darkseider View Post
    Skull although your example is valid you forgot to include a multi-threaded example. For instance core 1 and core 2 spawn simultaneous threads executing the instructions to complete the job faster for each set of 1 million. So the memory is being shared across two cores with each core being clocked at "X" Mhz/Ghz. This would lead to faster completion of the task at hand. Although once the task is complete it has to then move onto the next 1 million and repeat the process. It can also spawn a mutli-threaded process computing each set of 1 million for each set simultaneously depending on the memory constraints and processors performance. Assuming the memory (L1 + L2 + Main memory) and processor was up to the task it could complete the entire job quite quickly. That is also using the assumption each data set being churned doesn't require the results of the previous to be started. WEEEE I am having fun here!
    LOL

    Hence the statement "Over simplified so you don't have to read for hours". Because I could write for the next day on the subject if I didn't have to work or eat
    Facts are the very first casuality of bad information.
  7. RS Admin
    christim's Avatar
    Member #
    30681
    Join Date
    Jan 2010
    Location
    New England
    Posts
    5,115
    Liked
    2 times
    Phone
    Moto-Droid - rooted
    Premium Member
    #6
    I've saved the thread to see if ilikemoneygreen is going to swing by with that dancing banana and dancing droid or not.

    I'm not sure I want to see the non-over simplified example, but like a horrific accident scene I know I'd end up peeking

    Good reply, made sense to me. 2 gotta share, splitting the workload, as well as coordinate said sharing, which slows things down.
    Chris

    If you apply a rom or theme - backup first!
    If you don't know how to backup...Stop until you do.
    hint: I name my backups like this: sg6.0_20100428 or ss4.2_20100626 to easily find them later. rom and date.


    Have a Problem, Click here to Visit the Rescue Squad
  8. Droid Sensei
    ilikemoneygreen's Avatar
    Member #
    56291
    Join Date
    Apr 2010
    Location
    AZ, Superstition MTNs!
    Posts
    2,586
    Liked
    206 times
    Phone
    OG D1/G-Nex
    #7
    Lol, All of you are awesome! Thank you skull one, Very in depth. Your overclocking 101 explained alot as well.(those simple explainations are very helpful) And as for Darkseider... I wish i understood a sentence of that, lol, you sound very knowledgable.
    And as promised the dancing bannana! (its a party)

    (sorry for delay,i know its been a couple days, i try to come on the forums often but School work has made me lag in the fun free time field. )
  9. Droid
    Leonius's Avatar
    Member #
    75496
    Join Date
    Jun 2010
    Posts
    51
    Phone
    Droid1 Sapphire 2.0
    #8
    Something not mentioned is that even single threaded apps will be faster on a dual core because the spare core can handle the OS and other background tasks, while a single core has to do it all.
  10. Junior Droid
    shaggy3131's Avatar
    Member #
    39598
    Join Date
    Feb 2010
    Posts
    23
    Phone
    Enter Current Phone Model Here
    #9
    Quote Originally Posted by Leonius View Post
    Something not mentioned is that even single threaded apps will be faster on a dual core because the spare core can handle the OS and other background tasks, while a single core has to do it all.
    Can anyone verify this?
    Don't we come back to the fact the the software (OS and App) have to be written in a way to take advantage of the dual cores and delegate themselves accordingly?
  11. Droid Sensei
    ilikemoneygreen's Avatar
    Member #
    56291
    Join Date
    Apr 2010
    Location
    AZ, Superstition MTNs!
    Posts
    2,586
    Liked
    206 times
    Phone
    OG D1/G-Nex
    #10
    Quote Originally Posted by shaggy3131 View Post
    Quote Originally Posted by Leonius View Post
    Something not mentioned is that even single threaded apps will be faster on a dual core because the spare core can handle the OS and other background tasks, while a single core has to do it all.
    Can anyone verify this?
    Don't we come back to the fact the the software (OS and App) have to be written in a way to take advantage of the dual cores and delegate themselves accordingly?
    Wow, this is an old bump. I hope single threaded are faster.... i wish i knew enough to answer this.... It makes sense in my mind though. (the way Leonius explained)
    Turtle bit me.I thought they were slow....they snap so fast. ................. <3

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. SetCPU using 100% processor
    By hairdewx in forum Android Tech Support
    Replies: 0
    Last Post: 05-19-2010, 04:27 PM
  2. Arm® Cortex™ A8 processor speeds?
    By JhankG in forum Android Hacks and Help
    Replies: 31
    Last Post: 02-18-2010, 09:36 AM
  3. Governor on Processor Question??
    By NYZ93 in forum Android Hacks and Help
    Replies: 1
    Last Post: 01-13-2010, 07:18 PM
  4. Droid's Processor
    By michaelearth in forum Android General Discussions
    Replies: 15
    Last Post: 01-03-2010, 05:25 PM

Search tags for this page

what does cpu mean on the driod

Click on a term to search our site for related topics.
Find us on Google+