Results 1 to 9 of 9

Thread: Number of registers effect system performance?

  1. #1
    HEXUS.kitty Haiku32's Avatar
    Join Date
    Dec 2008
    Location
    Glasgow
    Posts
    828
    Thanks
    72
    Thanked
    59 times in 38 posts
    • Haiku32's system
      • Motherboard:
      • Abit IP-35 Dark Raider
      • CPU:
      • Q6600 @ 3.0gHz
      • Memory:
      • 2GB
      • Storage:
      • Western Digital 500GB
      • Graphics card(s):
      • XFX 8800GTS 640mb
      • PSU:
      • Corsair 520W
      • Case:
      • Antec 900
      • Operating System:
      • Vista Premium 64bit
      • Monitor(s):
      • Samsung 20" + LG 22"
      • Internet:
      • Virgin Media 16Mb

    Number of registers effect system performance?

    Sorry if this is in the wrong section, if so please move it.

    "Explain why the number of registers in the central processor affects the fetch/execute cycle and hence, system performance."

    Got asked to do this, and I'm wondering if it's a trick questions. I don't know a great deal about it tbh, but I thought there were different registers for specific purposes. So when doing the fetch/execute cycle, you only use certain registers. If there were 14 registers in one processor, and 16 registers in another, it wouldn't make any difference to the system performance when doing a fetch/execute cycle, would it, since the extra registers wouldn't be used during it.

    I'm probably mistaken, and the internet doesn't seem to help me, anyone want to shed some light on this for me, thanks .

  2. #2
    Member
    Join Date
    Jan 2009
    Location
    Canterbury, Kent
    Posts
    128
    Thanks
    0
    Thanked
    10 times in 10 posts
    • ConTRo13R's system
      • Motherboard:
      • BFG 680i
      • CPU:
      • E6600 - 3.6 GHz
      • Memory:
      • 2GB OCZ Reaper PC6400
      • Storage:
      • 2*WD RaptorX
      • Graphics card(s):
      • 2*BFG 8800 Ultra OC in SLI
      • PSU:
      • Antec Quattro True Power 850W
      • Case:
      • Lian-li V2000 in black
      • Operating System:
      • Xp pro 32bit
      • Monitor(s):
      • LG L226WTQ

    Re: Number of registers effect system performance?

    Are you a computer science student by any chance?

    I'd think exactly the same as you though if i werent i may argue that more registers will increasethe latency times

  3. #3
    HEXUS.kitty Haiku32's Avatar
    Join Date
    Dec 2008
    Location
    Glasgow
    Posts
    828
    Thanks
    72
    Thanked
    59 times in 38 posts
    • Haiku32's system
      • Motherboard:
      • Abit IP-35 Dark Raider
      • CPU:
      • Q6600 @ 3.0gHz
      • Memory:
      • 2GB
      • Storage:
      • Western Digital 500GB
      • Graphics card(s):
      • XFX 8800GTS 640mb
      • PSU:
      • Corsair 520W
      • Case:
      • Antec 900
      • Operating System:
      • Vista Premium 64bit
      • Monitor(s):
      • Samsung 20" + LG 22"
      • Internet:
      • Virgin Media 16Mb

    Re: Number of registers effect system performance?

    Just higher computing in high school.

    During a fetch/execute, the program counter, memory address, memory buffer and instruction registers, are used, right?

    I don't understand how having more registers would affect it. Hmm...

  4. #4
    HEXUS webmaster Steve's Avatar
    Join Date
    Nov 2003
    Posts
    14,283
    Thanks
    293
    Thanked
    841 times in 476 posts

    Re: Number of registers effect system performance?

    Generally in a processor architecture you have a set of general purpose registers used to store results of arithmetic/FPU operations, and to read/write from/to memory. Sometimes you have special registers for certain operations (e.g. SSE, multiplication results, etc).

    E.g. the following code uses three registers:

    Code:
    ADD R1 R2 R3     ;Add the contents of reg R2 and R3, store the result in R1
    MUL R1 R1 R2     ;Multiply the contents of reg R1 and R2, store the result in R1
    Now the bigger our program gets, the more registers we need, to the point where we run out, so we have to start reusing them (you can see I've cheated a bit and reused R1 already). But if we still need the contents of the register we want to reuse... well we can't reuse it until we store its current contents somewhere, like memory... which is SLOOOOOW.

    So the more registers you have, the less often you're going to need to ship data off into the main memory, and execution will be much quicker.

    There is a lot of other stuff to cover in this area, potentially, but that's beyond the scope of the question, I'd expect, and at 10pm I'm struggling to convey even this stuff
    PHP Code:
    $s = new signature();
    $s->sarcasm()->intellect()->font('Courier New')->display(); 

  5. #5
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,168
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: Number of registers effect system performance?

    generally speaking more register = fewer fetches.

    However, given the distinction between the time of a fetch depending on where the page lies in caches makes this quite hard to actually debate on a modern CISC.

    Also the more registers, the longer a context save takes, so the longer a switch takes.

    Its always swings and roundabouts, which is why i always hated up in the air questions, i always find it far easier when in a specific, rather than generic context to think about things like this, which get quite complicated, quite quickly!
    throw new ArgumentException (String, String, Exception)

  6. #6
    HEXUS.kitty Haiku32's Avatar
    Join Date
    Dec 2008
    Location
    Glasgow
    Posts
    828
    Thanks
    72
    Thanked
    59 times in 38 posts
    • Haiku32's system
      • Motherboard:
      • Abit IP-35 Dark Raider
      • CPU:
      • Q6600 @ 3.0gHz
      • Memory:
      • 2GB
      • Storage:
      • Western Digital 500GB
      • Graphics card(s):
      • XFX 8800GTS 640mb
      • PSU:
      • Corsair 520W
      • Case:
      • Antec 900
      • Operating System:
      • Vista Premium 64bit
      • Monitor(s):
      • Samsung 20" + LG 22"
      • Internet:
      • Virgin Media 16Mb

    Re: Number of registers effect system performance?

    Ahhh, I get it now .

    I guess it's just a bad question, we've been taught nothing about registers except that they are fast areas of memory located close to the processor.... that's it. I've had to research everything myself.

    Thanks guys, helped alot!

  7. #7
    I R Toff Pandi! TAKTAK's Avatar
    Join Date
    Mar 2008
    Location
    Vergon6
    Posts
    7,450
    Thanks
    553
    Thanked
    1,012 times in 747 posts
    • TAKTAK's system
      • Motherboard:
      • ASUS ROG STRIX B450-F GAMING
      • CPU:
      • Ryzen 7 3700X
      • Memory:
      • 16GB Corsair Vengeance LPX 3200MHz
      • Storage:
      • 500GB Samsung 970 EVO
      • Graphics card(s):
      • 5700 XT 50th Anniversary
      • PSU:
      • Be Quiet SFX-L 600W
      • Case:
      • Lian Li PC-O11 Mini
      • Operating System:
      • Windows 10
      • Monitor(s):
      • LG Ultrawide
      • Internet:
      • 200Mb FTTP

    Re: Number of registers effect system performance?

    Quote Originally Posted by Haiku32 View Post
    I've had to research everything myself.

    Thanks guys, helped alot!
    It's also worth baring in mind that practically everything that you learn in your computing lessons is outdated by 5 years or so due to the amount of time it takes to compile syllabuses, which becomes even more relevant when programming and being taught pascal (), and database management in MS Access (what large company uses Access for a database structure? [don't say MS ])... yeah, the basics are there... but it's not really fulfilling...
    Post Counts and Other Rewards, Rules, Folding@Home, Fans: Push vs Pull vs Push-Pull, Corsair PSU OEMs.

    Quote Originally Posted by razer121 View Post
    Would you like me to enter you? it would be my pleasure
    TAKTAK.co.uk

  8. #8
    Admin (Ret'd)
    Join Date
    Jul 2003
    Posts
    18,481
    Thanks
    1,016
    Thanked
    3,208 times in 2,281 posts

    Re: Number of registers effect system performance?

    Quote Originally Posted by TheAnimus View Post
    generally speaking more register = fewer fetches.

    However, given the distinction between the time of a fetch depending on where the page lies in caches makes this quite hard to actually debate on a modern CISC.

    Also the more registers, the longer a context save takes, so the longer a switch takes.

    Its always swings and roundabouts, which is why i always hated up in the air questions, i always find it far easier when in a specific, rather than generic context to think about things like this, which get quite complicated, quite quickly!
    I completely agree, though I'd have added "up to a point" to your first line. It's not unlimited and, IIRC, not a linear function either.

    There comes a point where other factors, like compiler optimisations determining what's getting put in registers, and cache design (and therefore hit rates), has more effect. So, of course, does the number of contexts, and the criteria you use to determine when to switch.

    I'd guess though, from the fact that this is high school computing, and from the wording of the question, that it's probably not going as far as a statistical analysis of the diminishing marginal returns of registers depending on context switching states and criteria.

    I agree it gets complicated right quick. Processor architecture and design is almost a form of technological philosophy, and kind-of akin to contemplating the existence of God or self, or the definition of infinity ..... in other words, it gives me a headache.

  9. #9
    HEXUS.kitty Haiku32's Avatar
    Join Date
    Dec 2008
    Location
    Glasgow
    Posts
    828
    Thanks
    72
    Thanked
    59 times in 38 posts
    • Haiku32's system
      • Motherboard:
      • Abit IP-35 Dark Raider
      • CPU:
      • Q6600 @ 3.0gHz
      • Memory:
      • 2GB
      • Storage:
      • Western Digital 500GB
      • Graphics card(s):
      • XFX 8800GTS 640mb
      • PSU:
      • Corsair 520W
      • Case:
      • Antec 900
      • Operating System:
      • Vista Premium 64bit
      • Monitor(s):
      • Samsung 20" + LG 22"
      • Internet:
      • Virgin Media 16Mb

    Re: Number of registers effect system performance?

    Haha, thanks guys, well the example that steve gave helped me out and that was the answer the teacher was looking for.

    The coursework is so obsolete, you actually have to be able to format a floppy to pass. How ridiculous, considering none of the machines in school bar about 5 have floppy drives.

    Just reading your post gives me a headache Saracen, nevermind understanding it .

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Buying my first scan 3xs system, advice?
    By Mark_Solo in forum SCAN 3XS Systems Support
    Replies: 83
    Last Post: 14-03-2009, 12:59 PM
  2. Help please! Alienware vs Scan 3xs systems both spec'd need to decide
    By Spartans in forum SHOPPING AND CLASSIFIEDS
    Replies: 63
    Last Post: 25-05-2007, 07:25 PM
  3. Abit NF7-S revision 2 information
    By Lee H in forum SCAN.care@HEXUS
    Replies: 22
    Last Post: 30-10-2004, 07:13 PM
  4. Dissapointed with Performance
    By yamangman in forum PC Hardware and Components
    Replies: 7
    Last Post: 13-05-2004, 01:10 AM
  5. Do you get an 'XP rating' applied when you o/c?
    By Austin in forum PC Hardware and Components
    Replies: 56
    Last Post: 11-12-2003, 03:10 PM

Posting Permissions

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