Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Worth buying 4G of RAM?

Worth buying 4G of RAM?

Scheduled Pinned Locked Moved The Lounge
csharpcsscomtoolsarchitecture
19 Posts 10 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S S Senthil Kumar

    I'm planning to buy a new laptop and was wondering whether to get 4 gigs of RAM. Raymond[^] says that without /PAE and mother board support, Windows won't see the full 4 gigs. I am confused though - if as he says, memory mapped IO devices eat up into physical address space, shouldn't that happen even if the amount of physical memory is less than 4 GB? I guess it boils down to what physical address space is - I think of it as the range of physically addressable memory (as opposed to virtual address space, which the OS/CPU translates to physical addresses). With a 32 bit processor, the max physical address space is 4 Gb, but if you have only, say 2 Gb installed, wouldn't the physical address space seen by the OS come down to 2 Gb?

    Regards Senthil [MVP - Visual C#] _____________________________ My Blog | My Articles | My Flickr | WinMacro

    N Offline
    N Offline
    Not Active
    wrote on last edited by
    #10

    I have a laptop with 64x2 processor and 4 GB RAM, with Vista 64. I have no problems running multiple apps, even virtual servers, it barely even slows down.


    only two letters away from being an asset

    1 Reply Last reply
    0
    • J John M Drescher

      For a laptop I would not bother as it will cause the laptop to drain the batteries faster. For a desktop I would do it since 4GB of memory is around $120US right now.


      Last modified: 1hr 6mins after originally posted --

      John

      D Offline
      D Offline
      David Stone
      wrote on last edited by
      #11

      I have a feeling that's not true. If you have more RAM, the operating system doesn't have to swap out constantly, therefore you spend less time doing disk I/O, which is waaaay more expensive on the battery than the RAM is. Am I completely off base?

      J 1 Reply Last reply
      0
      • S S Senthil Kumar

        I'm planning to buy a new laptop and was wondering whether to get 4 gigs of RAM. Raymond[^] says that without /PAE and mother board support, Windows won't see the full 4 gigs. I am confused though - if as he says, memory mapped IO devices eat up into physical address space, shouldn't that happen even if the amount of physical memory is less than 4 GB? I guess it boils down to what physical address space is - I think of it as the range of physically addressable memory (as opposed to virtual address space, which the OS/CPU translates to physical addresses). With a 32 bit processor, the max physical address space is 4 Gb, but if you have only, say 2 Gb installed, wouldn't the physical address space seen by the OS come down to 2 Gb?

        Regards Senthil [MVP - Visual C#] _____________________________ My Blog | My Articles | My Flickr | WinMacro

        I Offline
        I Offline
        Ilion
        wrote on last edited by
        #12

        S. Senthil Kumar wrote:

        says that without /PAE and mother board support, Windows won't see the full 4 gigs.

        I just added 2 GB to my desktop PC, bringing it to 4 GB. The BIOS reports it as having 4 GB, but Windows (XP SP2) reports it as having 3.5 GB

        J 1 Reply Last reply
        0
        • D David Stone

          I have a feeling that's not true. If you have more RAM, the operating system doesn't have to swap out constantly, therefore you spend less time doing disk I/O, which is waaaay more expensive on the battery than the RAM is. Am I completely off base?

          J Offline
          J Offline
          John M Drescher
          wrote on last edited by
          #13

          David Stone wrote:

          waaaay more expensive on the battery than the RAM is.

          I may be wrong I believe 2GB of DDR2 ram uses more power than a single hard disk.

          John

          S D 2 Replies Last reply
          0
          • I Ilion

            S. Senthil Kumar wrote:

            says that without /PAE and mother board support, Windows won't see the full 4 gigs.

            I just added 2 GB to my desktop PC, bringing it to 4 GB. The BIOS reports it as having 4 GB, but Windows (XP SP2) reports it as having 3.5 GB

            J Offline
            J Offline
            John M Drescher
            wrote on last edited by
            #14

            This is because the PCI slots need memory addresses in the 32 bit address space. Some motherboards will allow you to move ram memory that overlaps above the 4GB mark but to see this you will probably need a 64 bit os (or one that supports > 4GB of memory with PAE).

            John

            D 1 Reply Last reply
            0
            • J John M Drescher

              This is because the PCI slots need memory addresses in the 32 bit address space. Some motherboards will allow you to move ram memory that overlaps above the 4GB mark but to see this you will probably need a 64 bit os (or one that supports > 4GB of memory with PAE).

              John

              D Offline
              D Offline
              Dan Neely
              wrote on last edited by
              #15

              Also, PAE needs to be implemented on a per application basis. IF an app hasn't been designed for it (and if it's not an enterprise class app that was butting against the 4gb limit years ago it won't be) trying to run with PAE will make the app blow up. You can run normal win32 apps along side PAE ones without difficulty, but only the PAE enabled ones will benefit from the extra ram.

              Otherwise [Microsoft is] toast in the long term no matter how much money they've got. They would be already if the Linux community didn't have it's head so firmly up it's own command line buffer that it looks like taking 15 years to find the desktop. -- Matthew Faithfull

              M 1 Reply Last reply
              0
              • J John M Drescher

                David Stone wrote:

                waaaay more expensive on the battery than the RAM is.

                I may be wrong I believe 2GB of DDR2 ram uses more power than a single hard disk.

                John

                S Offline
                S Offline
                Shog9 0
                wrote on last edited by
                #16

                AFAIK, power consumption for the harddrive would jump considerably when it's actually being used - seeking/reading/writing. So you may gain a bit of battery life by skimping on RAM if your machine isn't heavily loaded, but i'd expect that advantage to disappear quickly if you're doing a lot of compilation, or running a database, or even just keeping a lot of apps open at once.

                J 1 Reply Last reply
                0
                • J John M Drescher

                  David Stone wrote:

                  waaaay more expensive on the battery than the RAM is.

                  I may be wrong I believe 2GB of DDR2 ram uses more power than a single hard disk.

                  John

                  D Offline
                  D Offline
                  Dan Neely
                  wrote on last edited by
                  #17

                  If you're concerned about a few watts of power consumption and have money to burn, DDR3 is ~40% lower power than DDR2.

                  Otherwise [Microsoft is] toast in the long term no matter how much money they've got. They would be already if the Linux community didn't have it's head so firmly up it's own command line buffer that it looks like taking 15 years to find the desktop. -- Matthew Faithfull

                  1 Reply Last reply
                  0
                  • S Shog9 0

                    AFAIK, power consumption for the harddrive would jump considerably when it's actually being used - seeking/reading/writing. So you may gain a bit of battery life by skimping on RAM if your machine isn't heavily loaded, but i'd expect that advantage to disappear quickly if you're doing a lot of compilation, or running a database, or even just keeping a lot of apps open at once.

                    J Offline
                    J Offline
                    John M Drescher
                    wrote on last edited by
                    #18

                    I am under the impression that 2GB of memory uses around 20W while the hard drive will idle with less than 10W and for a laptop it shuts off. [EDIT]After doing some googling. The 20W is high for DDR2 and also this is only while active so it will not be eating this power all the time. [/EDIT]


                    Last modified: 16mins after originally posted --

                    John

                    1 Reply Last reply
                    0
                    • D Dan Neely

                      Also, PAE needs to be implemented on a per application basis. IF an app hasn't been designed for it (and if it's not an enterprise class app that was butting against the 4gb limit years ago it won't be) trying to run with PAE will make the app blow up. You can run normal win32 apps along side PAE ones without difficulty, but only the PAE enabled ones will benefit from the extra ram.

                      Otherwise [Microsoft is] toast in the long term no matter how much money they've got. They would be already if the Linux community didn't have it's head so firmly up it's own command line buffer that it looks like taking 15 years to find the desktop. -- Matthew Faithfull

                      M Offline
                      M Offline
                      Mike Dimmick
                      wrote on last edited by
                      #19

                      No, sorry, you're getting confused between /PAE, which enables Processor Address Extensions in the processor and therefore adds more physical memory address lines, and /3GB, which changes the virtual address space division between user and kernel mode (normally 2GB each). The former makes more physical memory available to the system as a whole; the latter allows more virtual address space for processes which need a lot, often for buffering disk contents (e.g. databases, email servers). You're correct that just throwing the /3GB switch isn't enough: processes have to be aware that the address space can be bigger than 2GB, and therefore that addresses of memory objects may have the high bit set. Mistreating such addresses - e.g. casting them to signed integers - can cause problems. Therefore Windows caps the address space at 2GB for any process that doesn't have the Large Address Aware bit set (link with /LARGEADDRESSAWARE). Microsoft Exchange Information Store is notoriously bad at managing its virtual address space and their recommendation is that if you have more than 1GB of physical memory fitted, you should boot with the /3GB switch and also use /USERVA to tweak it further (3030MB, if memory serves). Otherwise it will run out of virtual address space before it runs out of physical memory. Exchange Server 2007 avoids this problem by requiring that you run the 64-bit OS for a production system. In addition they recommend not fitting more than 4GB of RAM. The extra RAM can't be used by Exchange anyway, and the data structures required to manage it swallow up large chunks of the smaller system address space, leaving even less space for drivers and TCP connections. The effect of /PAE is to change the page table entries' physical address field from being 32-bits wide to 64-bits wide. In the original Athlon 64, AMD changed the meaning of the top bit to 'No Execute'. Hardware Data Execution Prevention (DEP) sets this bit to tell the processor that execution isn't allowed on this page, so the processor will generate an access fault if execution is attempted. There wasn't room to put this on the 32-bit Page Table Entry - all the bits were already in use. If you're on a system which supports hardware DEP, Windows will put the processor in PAE mode automatically to enable this feature. However, it won't use any physical memory above 4GB. Why? Because when testing this addition in XP SP2, many devices and drivers were found to fail when trying to do DMA from addresses above 4GB. PAE mode has been around for ye

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups