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. What to use all my new RAM for...

What to use all my new RAM for...

Scheduled Pinned Locked Moved The Lounge
comperformancequestion
28 Posts 14 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.
  • T Taka Muraoka

    I just upgraded my dev box with 2 Gb of memory (woo hoo!) and it runs pretty nice now :-) I was wondering if anyone had experience with using a RAM drive and if it made much difference? I was looking at speeding up VC6 builds, in particular e.g. putting all the intermediate files in the RAM drive.


    The two most common elements in the universe are Hydrogen and stupidity. - Harlan Ellison Awasu 2.2 [^]: A free RSS/Atom feed reader with support for Code Project.

    D Offline
    D Offline
    David Crow
    wrote on last edited by
    #19

    Taka Muraoka wrote:

    I was wondering if anyone had experience with using a RAM drive...

    Not since Windows v3.11.


    "The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb

    1 Reply Last reply
    0
    • P peterchen

      I once tried with VC6 - building to RAM drive is WAY faster (30%..50%). But my Build folder requires 2.5GB, so this is no option for me. I wouldn't do it without having 1G remaining for OS and application.


      We say "get a life" to each other, disappointed or jokingly. What we forget, though, is that this is possibly the most destructive advice you can give to a geek.
      boost your code || Fold With Us! || sighist

      T Offline
      T Offline
      Taka Muraoka
      wrote on last edited by
      #20

      That's what I suspected. The disk gets hit so hard, especially during a link, that I figured a RAM disk could well help (and make Windows that much more responsive). I expect even a small one, say 500Mb, with the key files (e.g. the PCH's) will make a difference. Thanks.


      The two most common elements in the universe are Hydrogen and stupidity. - Harlan Ellison Awasu 2.2 [^]: A free RSS/Atom feed reader with support for Code Project.

      D P 2 Replies Last reply
      0
      • T Taka Muraoka

        That's what I suspected. The disk gets hit so hard, especially during a link, that I figured a RAM disk could well help (and make Windows that much more responsive). I expect even a small one, say 500Mb, with the key files (e.g. the PCH's) will make a difference. Thanks.


        The two most common elements in the universe are Hydrogen and stupidity. - Harlan Ellison Awasu 2.2 [^]: A free RSS/Atom feed reader with support for Code Project.

        D Offline
        D Offline
        dandy72
        wrote on last edited by
        #21

        > The disk gets hit so hard, especially during a link, that I figured a RAM disk could well help I used to use a smallish ramdisk (128MB) to write temp files for a specific project a few months back, and it helped tremendously. Of course it's counterproductive for large projects, so I'd say go with trial and error--I'm sure you'll find the right balance. Actually, I'm sure that would make an interesting CP article... :-)

        1 Reply Last reply
        0
        • T Taka Muraoka

          John Simmons / outlaw programmer wrote:

          It seems to me that any time savings realized by using a ram drive would be devoured by the time it takes to delete/copy/copy those files

          I have a lot more than that but a lot of them change very infrequently. So a smart sync will only copy the files it needs to. Plus I can do something else while getting the files set up and save them all as part of my overnight batch runs i.e. it doesn't eat into useful development time. My main dev box is a laptop and I already have a 7200rpm drive so I'm a bit limited in what I can do. I believe you can get RAID'ed laptops now; God knows what they weigh :rolleyes:


          The two most common elements in the universe are Hydrogen and stupidity. - Harlan Ellison Awasu 2.2 [^]: A free RSS/Atom feed reader with support for Code Project.

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

          Taka Muraoka wrote:

          God knows what they weigh

          They're heavy. ;P I've got an Alienware Area 51m with dual RAIDed 60GB hard drives. I'm just thankful that my backpack provides enough support so this thing doesn't break my back. :)


          Picture a huge catholic cathedral. In it there's many people, including a gregorian monk choir. You know, those who sing beautifully. Then they start singing, in latin, as they always do: "Ad hominem..." -Jörgen Sigvardsson

          1 Reply Last reply
          0
          • T Taka Muraoka

            That's what I suspected. The disk gets hit so hard, especially during a link, that I figured a RAM disk could well help (and make Windows that much more responsive). I expect even a small one, say 500Mb, with the key files (e.g. the PCH's) will make a difference. Thanks.


            The two most common elements in the universe are Hydrogen and stupidity. - Harlan Ellison Awasu 2.2 [^]: A free RSS/Atom feed reader with support for Code Project.

            P Offline
            P Offline
            peterchen
            wrote on last edited by
            #23

            You can check your CPU usage - if the CPU is clogged, a RAM disk won't help much.


            We say "get a life" to each other, disappointed or jokingly. What we forget, though, is that this is possibly the most destructive advice you can give to a geek.
            boost your code || Fold With Us! || sighist

            D 1 Reply Last reply
            0
            • P peterchen

              You can check your CPU usage - if the CPU is clogged, a RAM disk won't help much.


              We say "get a life" to each other, disappointed or jokingly. What we forget, though, is that this is possibly the most destructive advice you can give to a geek.
              boost your code || Fold With Us! || sighist

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

              Is the compiler smart enough to go idle while blocking on diskio, or does it sit there throwing a steady stream of noops until the read completes?

              P 1 Reply Last reply
              0
              • T Taka Muraoka

                I just upgraded my dev box with 2 Gb of memory (woo hoo!) and it runs pretty nice now :-) I was wondering if anyone had experience with using a RAM drive and if it made much difference? I was looking at speeding up VC6 builds, in particular e.g. putting all the intermediate files in the RAM drive.


                The two most common elements in the universe are Hydrogen and stupidity. - Harlan Ellison Awasu 2.2 [^]: A free RSS/Atom feed reader with support for Code Project.

                D Offline
                D Offline
                Daniel Grunwald
                wrote on last edited by
                #25

                Windows automatically uses free RAM as additional disk cache. A RAM disk is not going to save you a lot of time. The first thing you should do is disable the swap file. Windows likes to swap away applications when they are minimized, even if enough memory is available.

                1 Reply Last reply
                0
                • I Indivara

                  Taka Muraoka wrote:

                  Windows comes with one installed[^], although it's not very good.

                  did you read the last two posts on that link? "One other thing you can do is to put your swap file (Page File) on the RAM drive. This is probably better than putting anything you want to keep on it in case you ever want to restart your machine, anyway." :-D

                  N Offline
                  N Offline
                  Nigel Savidge
                  wrote on last edited by
                  #26

                  I am impressed by that suggestion - there is some realy good logic there. Guess he has never done any timings to prove a successful result though. :sigh:


                  Team Leader - Team Code Project[^] :cool:

                  1 Reply Last reply
                  0
                  • D Dan Neely

                    Is the compiler smart enough to go idle while blocking on diskio, or does it sit there throwing a steady stream of noops until the read completes?

                    P Offline
                    P Offline
                    peterchen
                    wrote on last edited by
                    #27

                    it's idling (That's the typical behavior if you issue a synchronous file read/write). On my old dev box at w*rk CPU utilization was rarely exceeded 60% after the dependency check.


                    We say "get a life" to each other, disappointed or jokingly. What we forget, though, is that this is possibly the most destructive advice you can give to a geek.
                    boost your code || Fold With Us! || sighist

                    1 Reply Last reply
                    0
                    • T Taka Muraoka

                      I just upgraded my dev box with 2 Gb of memory (woo hoo!) and it runs pretty nice now :-) I was wondering if anyone had experience with using a RAM drive and if it made much difference? I was looking at speeding up VC6 builds, in particular e.g. putting all the intermediate files in the RAM drive.


                      The two most common elements in the universe are Hydrogen and stupidity. - Harlan Ellison Awasu 2.2 [^]: A free RSS/Atom feed reader with support for Code Project.

                      M Offline
                      M Offline
                      Member 96
                      wrote on last edited by
                      #28

                      I recently did a ram upgrade from 1 to 2gb but it made almost zero difference compared to the other upgrade which was a SATA Raid 0 dual Raptor array. Now *that* makes all the difference in the world in build times.


                      "Hello, hello, what's all this shouting, we'll have no trouble here! This is a Local Shop for Local People, there's nothing for you here!" -Edward Tattsyrup

                      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