Slashdot Mirror


How To Use a Terabyte of RAM

Spuddly writes with links to Daniel Philips and his work on the Ramback patch, and an analysis of it by Jonathan Corbet up on LWN. The experimental new design for Linux's virtual memory system would turn a large amount of system RAM into a fast RAM disk with automatic sync to magnetic media. We haven't yet reached a point where systems, even high-end boxes, come with a terabyte of installed memory, but perhaps it's not too soon to start thinking about how to handle that much memory.

424 comments

  1. 1 TB of memory... by Digi-John · · Score: 5, Funny

    Finally, I'll have enough space to run Firefox, OpenOffice, and Eclipse *all at the same time*! As long as I don't leave Firefox running too long.

    --
    Klingon programs don't timeshare, they battle for supremacy.
    1. Re:1 TB of memory... by smittyoneeach · · Score: 4, Funny

      You are wise to avoid discussion of emacs...

      --
      Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
    2. Re:1 TB of memory... by Digi-John · · Score: 2, Informative

      emacs is a Lisp interpreter, an editor, a games package, an irc client, many things, but its memory usage is just a drop in the bucket compared to the monstrosities I mentioned above. Of course, there's quite a few complete operating systems that can boot in the amount of RAM required by emacs :)

      --
      Klingon programs don't timeshare, they battle for supremacy.
    3. Re:1 TB of memory... by digital+bath · · Score: 5, Funny

      Of course, there's quite a few complete operating systems that can boot in the amount of RAM required by emacs :)

      emacs, for starters
      --
      find / -name "*.sig" | xargs rm
    4. Re:1 TB of memory... by osu-neko · · Score: 5, Funny

      Of course, there's quite a few complete operating systems that can boot in the amount of RAM required by emacs

      Yes, but they're substantially less functional operating systems than Emacs.

      --
      "Convictions are more dangerous enemies of truth than lies."
    5. Re:1 TB of memory... by frovingslosh · · Score: 5, Insightful
      I'm not sure why people are rating your post as funny. I have not had moderator points in a long time, but if I did I would mark it insightful.

      As to the problem of how to use 1 TB of RAM, spending any time at all thinking of this is foolish and wasteful. Of course, I remember the days when we rated our computers in how many kilo bytes of memory we had, and plenty of readers here will remember having 20 to 40 meg hard disks in PC's with far less than 1 meg of physical RAM memory. In those days (and I'll avoid the famous Bill Gates quote on the subject), how would you have spent your time deciding what to do with the memory if you had a computer with 1 gig, 2 gig or even 4 gig of memory? You may have come up with all sorts of amazing ideas. But none of them would have done you any good, because the developers (Mostly Microsoft, but Linux is far from lean and mean any more either) already decided what to do with it, waste it and leave you wanting more. And one of your ideas for a 4 gig system might not have even been to just pretend that most of the last gig of memory wasn't there and ignore it!

      So why even have a post about what to do with a terabyte of memory? The solution is simple, install Windows 9 and try to quickly order more memory on-line before the memory hungry service pack comes out, forces it's install on you, and your TB isn't enough.

      --
      I'm an American. I love this country and the freedoms that we used to have.
    6. Re:1 TB of memory... by jrockway · · Score: 4, Interesting

      It's interesting how times have changed. Over the years, emacs has used pretty much the same amount of memory. (My big emacs with erc and gnus is using about 67M right now. Firefox is using 1.7G.)

      In the 80s, the overhead of a lisp machine just to make your application customizable was absurd (hence the emacs jokes). Writing an editor all in C was a great idea. Speed! Memory savings! This approach made vi very popular.

      Now that it's 2008 and every new computer has a few gigs of RAM, it's not so absurd to write an editor in a dynamic language running on top of a minimal core. An experienced elisp coder can add non-trival functionality to emacs in just a few hours. emacs makes that easy and enjoyable.

      vi(m) may use less memory, but that just doesn't matter anymore. If you want to customize it (non-trivially), you have to hack vim and recompile. So while emacs jokes are hilarious, it dates you to the early 80s. There is no reason to write tiny apps in assembly anymore. Big apps that can be extended are a much better approach.

      --
      My other car is first.
    7. Re:1 TB of memory... by Bandman · · Score: 4, Interesting

      virtual machines. lots of 'em

    8. Re:1 TB of memory... by dgatwood · · Score: 2, Insightful

      Eighty Megamebibytes And Constantly Swapping?

      Besides, isn't it obvious how one should use a terabyte of RAM? Use it to upgrade your PC to run Windows Vista MegaUltimate, of course. :-D

      Or, to put it another way, the question of what to do with the extra RAM is a non-issue. Install software. Software developers will find a way to waste as much RAM as you can put in and performance will still be slow. It's just the nature of progress....

      *sigh*

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

    9. Re:1 TB of memory... by Anonymous Coward · · Score: 0

      still not enough for Vista though :)

    10. Re:1 TB of memory... by Digi-John · · Score: 2, Interesting

      I see by your sig that you're a Lisp programmer :)
      I don't program much in Lisp, although I have some familiarity with it, but on Linux my editor and my window manager are both written in Lisp: emacs and stumpwm. They work quite well... stumpwm includes an entire lisp interpreter in its binary and comes in at just 33M; you can hit C-t : at any time to evaluate a Common Lisp expression, and of course the window manager can be modified on the fly if you're a leet haxxor.

      --
      Klingon programs don't timeshare, they battle for supremacy.
    11. Re:1 TB of memory... by dougmc · · Score: 2
      Sorry, but jokes about emacs memory usage are old and busted. Emacs, even xemacs, is memory frugal by today's standards! (And yes, vi is even more so.)

      The new hotness in memory suckage is anything based on java.

    12. Re:1 TB of memory... by rbanffy · · Score: 4, Funny

      It's a nice OS. Too bad it lacks a decent text editor ;-) /me ducks

    13. Re:1 TB of memory... by Ed+Avis · · Score: 1

      Hmm, that seems wasteful somehow; can't they both just agree on a single Lisp dialect and use two instances of the the same interpreter?

      --
      -- Ed Avis ed@membled.com
    14. Re:1 TB of memory... by wsanders · · Score: 2, Funny

      Yeah, I look forward to our new "java -Xms1000000000" incompetent overlords.

      --
      Give a man a fish and you have fed him for today. Teach a man to fish, and he'll say "WHERE'S MY FISH, YOU IDIOT?"
    15. Re:1 TB of memory... by dwiget001 · · Score: 1

      Uh, FireFox loaded with a simple web page: 13 MB used. FireFox loaded with this web page to post this message uses a whopping 40 MB. Maybe I missed your sarcasm tags.

    16. Re:1 TB of memory... by Have+Brain+Will+Rent · · Score: 1

      There is no reason to write tiny apps in assembly anymore.

      Well there might be no need to write tiny editor apps in assembly anymore but there are lots of reasons to write tiny apps in assembly. Well, in fact maybe there are reasons to write tiny editor apps in assembly too, for low power firmware controlled devices for example... not hard to think of a few examples of those.

      --
      The tyrant will always find a pretext for his tyranny - Aesop
    17. Re:1 TB of memory... by Skapare · · Score: 1

      And you might even get lucky and be able to open 2 projects in Eclipse if you limit OpenOffice to 1 document and stay away from Slashdot on Firefox.

      --
      now we need to go OSS in diesel cars
    18. Re:1 TB of memory... by Shai-kun · · Score: 5, Funny

      Doesn't emacs run vi by now?

      --
      ...or so I've been told.
    19. Re:1 TB of memory... by Usquebaugh · · Score: 5, Insightful

      In the early 80s there was this funny machine called a System/38 from IBM that morphed in the AS/400 that is now called an iSeries. Now this machine was a RDBMS engine with simple green screens attached.

      Under the covers the System/38 was a cisc box, the AS/400 could be CISC or RISC and the iSeries is all risc. From an app dev point the same compiled object code could run on all three. Stop and think about for a second.

      Now the System/38 had a very advanced constraint based security system. For example you could use an object that you could not see. But in general is allowed for very fine grain control of security. Of course this has been improved throught to the iSeries.

      Also, this machine had a single address space for all storage. An app didn't need to worry about memory size, the machine automatically used ram as disk and disk as ram.

      Of course this machine has had a life of 30+ years and most OS designers have zero idea about just how revolutionary it is same sort of thing as the MCP for a Burroughs B5000. People who do not know history are doomed to repeat it over and over again.

    20. Re:1 TB of memory... by Anonymous Coward · · Score: 0

      > How to use a terabyte of ram?

      hellooooo??? Porn! Fast access, low latency porn!

    21. Re:1 TB of memory... by hcdejong · · Score: 1

      As to the problem of how to use 1 TB of RAM, spending any time at all thinking of this is foolish and wasteful.

      You may have come up with all sorts of amazing ideas. But none of them would have done you any good, because the developers (Mostly Microsoft, but Linux is far from lean and mean any more either) already decided what to do with it, And where did those developers come up with those ideas? Microsoft's decisions in this area may be driven mostly by corporate greed, but we've got the chance to do something different with Linux. This is the time to start thinking about the great stuff we can add to version X+2 of the Linux kernel.

      Accepting the status quo is what's foolish and (ultimately) wasteful when it comes to computers.
    22. Re:1 TB of memory... by ActionDesignStudios · · Score: 1

      (My big emacs with erc and gnus is using about 67M right now. Mmm... big emacs...
    23. Re:1 TB of memory... by masterzora · · Score: 5, Funny

      Fortunately, you can run vi inside emacs, so it does indeed have a good text editor.

      --
      Remember, open source is free as in speech, not free as in bear.
    24. Re:1 TB of memory... by hey+hey+hey · · Score: 3, Insightful
      vi(m) may use less memory, but that just doesn't matter anymore. If you want to customize it (non-trivially), you have to hack vim and recompile. So while emacs jokes are hilarious, it dates you to the early 80s. There is no reason to write tiny apps in assembly anymore. Big apps that can be extended are a much better approach.

      Give it up, this is a religious war. Those of us who prefer vi(m) consider it a more focused editor. We neither need, nor want the extensibility crave. Those of you who prefer emacs consider the extensibility vital to your work, and can't imagine how anyone can live without it.

      We have been debating this forever, and will continue to do so, as long as there are vi(m) and emacs users out there. There is no "right" answer, so just enjoy the jokes (they are normally harmless, and often good for at least a smile).

    25. Re:1 TB of memory... by blair1q · · Score: 3, Funny

      You don't customize emacs. It customizes you.

    26. Re:1 TB of memory... by Slashdot+Suxxors · · Score: 1

      What are you going to do with OVER 9000 virtual machines?

    27. Re:1 TB of memory... by Anonymous Coward · · Score: 0

      because the developers (Mostly Microsoft, but Linux is far from lean and mean any more either) already decided what to do with it, waste it and leave you wanting more.
      Probably good to note that this article seems to be a discussion about how Linux developers should best waste your memory, not how a user can best use the memory on their machine. So it's taken for granted that the OS developers will figure out how your memory will be used.
    28. Re:1 TB of memory... by Anonymous Coward · · Score: 2, Informative

      It does indeed, the implementation of vi for emacs is called viper, there might be another one as well, but I'm not sure.

    29. Re:1 TB of memory... by smittyoneeach · · Score: 1

      Good god, I've seen more than one project where the J2EE app server takes longer to boot up than the OS and hardware.
      It's like "the running dream" with a healthy dose of "WTF".

      --
      Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
    30. Re:1 TB of memory... by Anonymous Coward · · Score: 0

      Your comment has been marked +5 Interesting, but in fact it displays an enormous ignorance of what vi is really all about. I don't have the exact quote to hand, but the reason that vi was designed as in was, was to make the user productive even though they were at the far end of a 200baud connection that they could type down faster than the line could refresh. vi was designed for ultimate productivity in a minimal environment. Memory, per se, was not a consideration, and neither was CPU processing power. *Bandwidth* was.

    31. Re:1 TB of memory... by c0p0n · · Score: 1

      Jesus oO

      --

      Your head a splode
    32. Re:1 TB of memory... by glitch23 · · Score: 1

      What are you going to do with OVER 9000 virtual machines?

      Run 1 application in each one. And if you are running the system as a terminal server for thousands of users I'm pretty sure you can make plenty use of the 9000 virtual machines. You could even give each user their own VM. A developer could have his/her own complete operating environment for test purposes residing in a VM with all developers' VMs running on a single physical server. There are plenty of ways to utilize the memory...more for businesses than individuals though.

      --
      this nation, under God, shall have a new birth of freedom. -- Lincoln, Gettysburg Address
    33. Re:1 TB of memory... by yorde · · Score: 3, Funny
    34. Re:1 TB of memory... by Anonymous Coward · · Score: 0

      Firefox is using 1.7G.
      Try a current build. My Firefox 3 beta 4 has been stable at 200M RAM for hours. And that's with 39 active extensions, most of them bumped (not really compatible but working), 20 Greasemonkey scripts and dozens of open tabs. I've recently seen a comparison test where Fx3b4 beats all other major browsers memorywise. Can't find the URL now, but my experience confirms that.
    35. Re:1 TB of memory... by Arethan · · Score: 2, Funny

      At least they come with a decent text editor.

    36. Re:1 TB of memory... by Nethemas+the+Great · · Score: 1

      This is great and all but how does this help Vista users? They're the ones needing the RAM not Linux...

      --
      Two of my imaginary friends reproduced once ... with negative results.
    37. Re:1 TB of memory... by kesuki · · Score: 0

      call me crazy but i've always preferred ed. vi is ANNOYING remember how to do everything with keyboard commands?!?!? what am i a nuclear physicist????? i need context sensitive text menus that come up with an on screen displayed keystroke.. i come up with simple text cyphers to encode secure passwords on a plain piece of paper....i don't have spare memory to assign for how to 'use' a program man it's all in use so i can remember what i did today! if I'm lucky jeeze. i constantly look at man pages in a separate terminal every time i need to run a terminal app it's pathetic, but it works, some times i can grep the man page, but that only saves me a little time... if i remember/know what part of the man page i need to see in part...

    38. Re:1 TB of memory... by BiggerIsBetter · · Score: 3, Funny

      You don't customize emacs. It customizes you. In Russia.
      --
      Forget thrust, drag, lift and weight. Airplanes fly because of money.
    39. Re:1 TB of memory... by 313373_bot · · Score: 2, Funny

      My very own internets?

      --
      ^[:q!
    40. Re:1 TB of memory... by bob.appleyard · · Score: 1

      OK, have I been reading /. too long, or have I been reading XKCD too long? Because I knew exactly which comic that link refers to, without having to click it.

      ** bob.appleyard looks down at the XKCD he's wearing **

      Yeah, I know.

      It's both.

      --
      How dare you be so modest!! You conceited bastard!!
    41. Re:1 TB of memory... by bugg · · Score: 1

      Is it sad that I can't tell whether this is a joke or not?

      ed is generally regarded as having a far steeper learning curve than vi, yet it has significantly fewer commands than vi, so I think it could go either way.

      --
      -bugg
    42. Re:1 TB of memory... by kylehase · · Score: 1

      There is no reason to write tiny apps in assembly anymore
      I heard truecrypt rewrote AES in assembly to fit in the boot loader for whole disk encryption. This also had an added benefit of increasing performance.
      --
      You want fun, go home and buy a monkey!
    43. Re:1 TB of memory... by Anonymous Coward · · Score: 0

      Just you wait! Someone's going to figure out how to add bloat to the system even more! or have you forgotten KDE already?

    44. Re:1 TB of memory... by Dannkape · · Score: 1

      // insert soviet russia joke here //

    45. Re:1 TB of memory... by Unique2 · · Score: 1

      AS/400 that is now called an iSeries

      It's been renamed again now to "System i" - hurray for marketing!

      --
      No trees were harmed in the posting of this message. However, a great number of electrons were terribly inconvenienced.
    46. Re:1 TB of memory... by CCFreak2K · · Score: 1

      ...the developers (Mostly Microsoft, but Linux is far from lean and mean any more either) already decided what to do with it, waste it and leave you wanting more.
      Both Linux 2.6 and Windows Vista (and, to some extent, Windows XP) use available RAM for various caching mechanisms. In Windows Vista in particular, if you watch the performance counter for used memory from startup, it will gradually rise. People complain about it, but one question always stops them: what were YOU going to do with the unused RAM?
      --
      "Beware of he who would deny you access to information, for in his heart he dreams himself your master."
    47. Re:1 TB of memory... by Flammon · · Score: 1

      Yes, yes, the System 36/38/AS400/iSeries is a wonderful machine. RPG is the best programming language and we don't need GUIs. The text screens work just fine. No one needs more than 16 colours and besides, green on black just looks awesome. Working with simple text files is a real joy. One thing this OS does very well is handle out of memory condition. The machine will only be down for a few hours, 1 hour to shutdown and 1 hour to boot not bad for $100,000.00 machine. The hardware is cheap too, you can buy a refurb 36 Gig SCSI drive for a mere $1635.00.

    48. Re:1 TB of memory... by andy_t_roo · · Score: 1

      a fresh firefox with 10 tabs opened 137mb used - given the speed the tabs loaded, all of them have _way_ less than 1mb worth of text/images on them (2 slashdot windows, a couple of forums, gmail, and http://antwrp.gsfc.nasa.gov/apod/) so at this rate (10mb per tab) you could open a hundred thousand tabs (assuming memory consumption is directly proportional to the number of tabs open)

    49. Re:1 TB of memory... by Yeti.SSM · · Score: 1

      A beowulf cluster, of course!

      --
      R Tape loading error, 0:1
    50. Re:1 TB of memory... by bobtodd · · Score: 1

      They're working on it (sort of). These types of concerns are being addressed much more quickly nowadays as interest in Common Lisp increases. CL will be a much nicer Lisp to have underneath Emacs anyway.

      Incidentally, most (if not all) CL implementations are compiled nowadays. Even ones that act as an interpreter can compile forms behind the scenes quickly enough that you can't tell the difference.

    51. Re:1 TB of memory... by MarcQuadra · · Score: 1

      I always thought that this was where 64-bit computing was going to go, a whole 'new' way of looking at disk and RAM, just have the entire disk mapped into the memory address space, and have an intelligent kernel determining the 'temperature' and 'type' of data it was reading so it can make a proper judgment on where to keep it in the address space.

      --
      "Sometimes, I think Trent just needs a cup of hot chocolate and a blankie." -Tori Amos on Nine Inch Nails
    52. Re:1 TB of memory... by chthon · · Score: 1

      What about someone who used vi for 5 years, then transitioned to (X)Emacs out of curiosity ?

      vim is nice, but for the things I do, XEmacs is more powerful. It is easier to add buffers and switch between them. I can setup several shell buffers to run and log application output. I have org-mode, which is unbelievably powerful in helping me planning and tracking my daily tasks, problems and ideas. I can run clisp and sbcl repls using SLIME. I do not have to switch between modes for editing. Integrated help is much easier to use.

      Best of all, after using vi(m) for five years, I can still edit using vi when I need to.

    53. Re:1 TB of memory... by chthon · · Score: 1

      Since end 2003, I have an AMD based system with 2 Gb RAM. You know, even when my wife and I where logged in together (1 console X-session, 1 X-terminal, both KDE), I have never seen the active memory rise above 512 Mb (caching can of course use the rest).

      Taking into account the bottle-neck memory is now already, 1 Tb is only really usable by systems with multiple processors and advanced controllers and multiple caching.

    54. Re:1 TB of memory... by Kehvarl · · Score: 1

      C-M C-Soviet

    55. Re:1 TB of memory... by pla · · Score: 1

      Those of you who prefer emacs consider the extensibility vital to your work, and can't imagine how anyone can live without it.

      Personally, I prefer Emacs not for the extensibility, but because the default keybindings match those of virtually every shell in existance (again, by default... I realize you can change both sides of that equasion).

    56. Re:1 TB of memory... by Thumper_SVX · · Score: 1

      I know you're being funny... and yes, you're actually sort of correct in that hardware IS expensive for the 400. However, for doing real work, there's almost nothing that beats it.

      Bear in mind, I haven't admin'd a 400 in about 6 years; I've moved to the UNIX/Windows side of the house a long time ago. However, I still work with AS/400 people all the time in my job.

      On a server, you DON'T need a GUI. If you're wanting a machine to really crunch numbers and run intensive apps then 16 colors IS enough. Working with simple text files is all UNIX does, too... and besides, if you want to get real information then what else do you need? You don't need huge honking binary files to represent the data you want to crunch.

      And yes, it does take a LONG time to restart the system. But come on, do you know how often you actually need to restart an AS/400? I think the ones we have at work have run for two years or so without an IPL and are only coming up on a restart soon because of some updates to the operating system.

      For a corporation that wants uptime and pure number crunching there's almost nothing that compares in price/performance. Yes, they're complex... and yes, they're expensive. But for pure uptime and number crunching capability there isn't a UNIX or Windows-based option that even compares.

      Oh, and these days you can have your GUI and eat it. There are loads of Windows-based and X-based applications that use AS/400's as a backend system. The only people who use green-screens are usually the admins. In fact, I'd bet almost every one of our people who use our 400 on a daily basis have no idea that they're using a Windows app that's backended by an AS/400... and they don't care. Mercifully, they don't need to.

      And yes, I know about the whole "iSeries / System i" thing and don't really care. I've always referred to them as AS/400's and probably always will.

    57. Re:1 TB of memory... by typicallyterrific · · Score: 1

      No man, bitching about Java memory consumption is so 1990's.
      Nowadays, we complain that Ruby is too slow. Get with the times.

    58. Re:1 TB of memory... by Usquebaugh · · Score: 1

      Out of memory? You obviously failed to comprehend my previous post. The idea is that disk and memory are one and the same to the applications. Single level storage addressed exactly the same way. It can be made to run out of storage but you have to be malicious in intent to do so.

      Machine Down? It's been over ten years since I experienced an AS/400 going down when not scheduled to. In fact our current box only goes down for hardware upgrades. Apps go down for OS upgrades but the box doesn't. In short it rivals mainframes for reliability.

      Refurb hardware? Are you nuts! If it didn't come new from IBM it doesn't even get into the same room as the machine.

      So in short. Your post was riddled with mistakes and totally missed the point of the parent. I wonder if you even know what a B5000 was?

      Care to try again?

    59. Re:1 TB of memory... by jandrese · · Score: 1

      Out of memory? You obviously failed to comprehend my previous post. The idea is that disk and memory are one and the same to the applications. Single level storage addressed exactly the same way. It can be made to run out of storage but you have to be malicious in intent to do so.
      Isn't this called "Virtual Memory" or just "swap"? What's so special about it? I guess there's no such thing as a "file", you just malloc memory to get it, and your memory is automatically saved somehow? I guess that's a bit more convenient (although you would have to mark which memory you don't want saved), but not something I'd call revolutionary. I must be missing something here.
      --

      I read the internet for the articles.
    60. Re:1 TB of memory... by Usquebaugh · · Score: 1

      All swapping/paging is automatic apps do not control it. You do not malloc. You do not access to disk or memory but access storage. The OS handles it from there. Single level storage. Yes it is revolutionary and has been since the System/38 was introduced.

    61. Re:1 TB of memory... by MikeFM · · Score: 1

      I use nano. Nobody likes me.

      --
      At what price learning? At what cost wisdom? The price is a man's peace of mind, and the cost is his life.
    62. Re:1 TB of memory... by jandrese · · Score: 1

      But that doesn't answer any of my practical questions. If you don't malloc it, how do you tell the OS you want it? Is it statically assigned to applications somehow? What happens when you need a whole lot of it, is there a way to give the OS a hint as to which one needs to be fast and which one can be slow? How would you tell the OS you don't need it anymore? Garbage collection? How do you tell the OS you want to keep that memory around after your application shuts down (or crashes!)? I know my feeble brain has not taken part of this revolution, but it seems oh so very magical right now to have all of this memory but no way of actually getting at it that I see (no OS calls, no malloc like device, I guess you could statically define everything but that would be like a straightjacket and would almost certainly be wildly wasteful as people over-allocated constantly).

      --

      I read the internet for the articles.
    63. Re:1 TB of memory... by bensch128 · · Score: 1

      Hacking vi isn't hard...

      The hard bit is coming up with good vi jokes, like how many vim's can you fit on the head of a pin?

      Doesn't have the same punch as abusing emacs in the 80s. :)

      Cheers
      Ben

  2. You only need 16GB of RAM for this to be useful by 2nd+Post! · · Score: 5, Insightful

    Given that the core components of an OS are only a few GB, even 8GB systems might be able to do this, today.

    1. Re:You only need 16GB of RAM for this to be useful by Digi-John · · Score: 3, Funny

      640K should be enough for anyone.

      --
      Klingon programs don't timeshare, they battle for supremacy.
    2. Re:You only need 16GB of RAM for this to be useful by Anonymous Coward · · Score: 0

      This sounds like something I could use right now on my laptop which still uses a conventional harddrive.
      Surfing the web, all the writes and reads are related to the browser writing things to the cache, transparently mounting this FS over it and being able to have the relevant data would allow the HD to be spun down much longer, even with my meager gigabyte of RAM.
      A music player with some rudimentary battery-runtime awareness might also use this to pull the next few songs into RAM without having to provide it's own cache implementation.

    3. Re:You only need 16GB of RAM for this to be useful by Kjella · · Score: 5, Insightful

      Personally I just wish there was better cache hinting on current software. For example, playing a huge movie will swap out all my software to disk even though the 30GB Blu-Ray movie will likely be played start-to-finish once and give no benefit whatsoever. To the best of my knowledge (at least I've never seen it exposed to any API I've used), there's nothing like "Open, for reading, with READ cache but don't bother keeping it around in SYSTEM cache" flags.

      --
      Live today, because you never know what tomorrow brings
    4. Re:You only need 16GB of RAM for this to be useful by Dolda2000 · · Score: 2, Interesting
      Yeah, imagine, then, to be able to use such a fast disk as your swap device! That'll make your system swiftz0rs. Or, hey, wait a minute...

      In all honesty, though, I don't really get the point of this. Isn't the buffer cache already supposed to be doing kind of the same thing, only with a less strict mapping?

    5. Re:You only need 16GB of RAM for this to be useful by mpapet · · Score: 1

      Except, maybe I'd like to cache the mother of all queries from my multi-terrabytes worth of DB data? I'm at least half serious. There are a number of viable scenarios where this could be great.

      There must be a few more relevant applications. Pitch in!

      I'm all for new ideas and getting them out there for people to test. It's one of the major benefits of open systems.

      --
      http://www.maxineudall.com/2010/02/should-economists-be-sued-for-malpractice.html
    6. Re:You only need 16GB of RAM for this to be useful by Ed+Avis · · Score: 2, Interesting

      Database systems use that sort of thing all the time, telling the kernel not to bother caching their file I/O but send it straight to disk (of course, they have their own cache configured by the database administrator). Typically if it needs to scan table more than the size of available memory, it reads the data from start to finish off the disk but doesn't cache any of it.

      --
      -- Ed Avis ed@membled.com
    7. Re:You only need 16GB of RAM for this to be useful by exley · · Score: 2, Informative

      Things like this (somewhat smaller scale) already are (somewhat bigger scale) being done.

    8. Re:You only need 16GB of RAM for this to be useful by QuoteMstr · · Score: 5, Insightful

      See posix_fadvise. Using that API, a process can have as much control over a file as it needs; too bad the kernel does basically nothing with that information.

    9. Re:You only need 16GB of RAM for this to be useful by MrLogic17 · · Score: 1

      The same argument goes for the new solid-state drives that are finally becoming affordable. What's the point of swapping out RAM to a page file on a high speed flash drive?

      I'm thinking that the concept of a page file is going to soon become extinct.

      Random memory: Back in the day, I think I once created virtual memory on a RAM drive....

    10. Re:You only need 16GB of RAM for this to be useful by 2nd+Post! · · Score: 1

      Swap exists because there is not enough RAM to hold all data, so it is swapped to the HDD. We are talking about a situation where a system has so much RAM that swap is unnecessary, so instead parts of the HDD are stored in RAM instead!

      That is the point. A buffer cache still requires spinning up the HDD to fill it; if this is used to replace the buffer cache, then the HDD is only spun up once, during boot, and never again except to synchronize the data in RAM to HDD.

    11. Re:You only need 16GB of RAM for this to be useful by Anonymous Coward · · Score: 5, Interesting

      Did I hear a summer of code application?

    12. Re:You only need 16GB of RAM for this to be useful by rijrunner · · Score: 1


            You could do it now.

          But, think a bit further about the implications of this. It isn't the OS that this is aimed at. From the OS side, it would be nice to run a lot of it in RAM, but the reality is that most of the important parts of the OS (shared libs, kernel, and whatnot) are resident in RAM most of the time anyway.

          There are a couple ways to use this just off the top of my head that might make this a more interesting thing than is presented.

          The first is simple: You could load the OS into RAM. You can then compare the image in RAM periodically against the flashed image on disk. OS related files where the binary has been exploited could be identified and isolated. Also, and here's another nice feature is that you can really maximize virtual machines. You have a single image loaded on disk for each type of OS you want to run. When you activate each partition, you need only pull from one source. The virtual machines would only worry about saving the specific info local to their configuration in their profile. (Kinda RAMDISK version of AIX's WPAR concept.)

          Secondly, the real hogs are not the OS. A lot of databases do their own memory management. Say you could ramdisk an Oracle database. That would greatly speed its access. I do really sympathize with the fears of the users, but I think adding a flash drive for the journaled that is kept current as the system runs can address some of the problems and fears.

          Hmm.. Now that I think about it, I think they missed another area completely. Why not a RAMDISK video card? Seems to me that you could start carving out chunks of RAM and cpu cycles in a multithreaded system to do the video.

    13. Re:You only need 16GB of RAM for this to be useful by OnlineAlias · · Score: 1


      Actually, no, it doesn't. Flash drives are based on static memory and are just about as slow as a regular hard drive. This article talks about using volatile memory, which is many, many times faster.

    14. Re:You only need 16GB of RAM for this to be useful by Rich0 · · Score: 1

      Actually - is there really any difference between this and allowing a filesystem to have any amount of delay before syncing the write cache?

      Right now linux will hold buffers in memory to try to minimize disk IO. If you could tell it to try to cache as much of a filesystem as possible and take as long as it wants to flush buffers then you'd essentially have this.

      They talk about power failures as a potential problem. That doesn't worry me so much - just buy a UPS (a trivial expense if you're going to waste this much RAM). I'd be more concerned about kernel panics. I've had about one per week for the last few week ever since upgrading to avoid the vmsplice bug. I'm sure my array of somewhat-atypical hardware doesn't help, but neither does the fact that linux no longer has a real development branch...

    15. Re:You only need 16GB of RAM for this to be useful by zappepcs · · Score: 2, Insightful

      Go a couple of steps further. Today's motherboards are designed to support one cpu system and a compatible OS. Why not design them to support multiple cpu systems. A VME system will allow you to plug in multiple CPU cards and memory cards, map your apps to the right memory space, share memory.

      Something similar could be done with one supervisor cpu handling video mapping for multiple slave cpu's as well as managing a RAID-5 or better disk system that is partitioned and mapped to RAM disk mirror/buffers. Most home users are not having threading issues, they see I/O bottlenecks. When your bittorrent client is downloading and buffering a file while you are trying to watch a DVD it's difficult to get a full system clamav scan done in the background. Using multiple systems, this would be possible and easy. The supervisor system could give you Picture in Picture or tiled views of the video displays of all slave systems, so that while watching the DVD, if there is a pop up window from your system scan it shows in the upper corner somewhere.

      Sharing hardware among processes works, but if you really want speed, you need each process to have the full attention of the cpu. More RAM and specialized hardware would allow that for multiple processes. Tasks could be shared out by the supervisor to any non-active processors on the system such that by initializing a virus scan via the supervisor, it pushes the process off to the most available slave system cpu.

      Well, that is the thought. I'm certain that many will tell me why it won't work. I just think that if you are going to make specialized hardware you should do more than a bit extra RAM. Go full on with mini clusters or supervised slave systems.

      I currently sit infront of four screens at work. I'd like them all to be in the same box if possible, thanks. Running VMs might be an idea, but I like how they work separately too much. Yes, I would add one NIC for each slave system also.. they're cheap.

      Once you see the size of some mini-atx boards, it's not inconceivable that you could put 5 cpu systems in one tower case and have a 1TB RAID-5 system in there also. You just need a bit of specialized hardware, and some drivers to make it all look/feel real to the slave systems. You could support built-in video and NICs on the cpu system plug-in cards if you wanted. Treat it like a special motherboard with 4+ slots for system-on-module expansion cards. The variants of the PCI standard would make it fairly easy... I think

    16. Re:You only need 16GB of RAM for this to be useful by anexkahn · · Score: 1

      The HP DL785 gets you up to 250 GB of RAM: http://www.theregister.co.uk/2008/03/17/hp_dl785/

      --
      Curious about Storage and Virtualization? Check out
    17. Re:You only need 16GB of RAM for this to be useful by rijrunner · · Score: 1

      Today's systems are shipping with multicore cpu's. Even at one cpu per motherboard, that is not something that has been more than superficially addressed at the programming level.

          I would almost think that an open-source video card could be developed if you move most of the processing into RAM. Move the card design back to just being an interface between the computer and the monitor that just tells the monitor what color to make what pixel. That's a $5 card functionality.

          Hmm.. Addressable buses? Suppose you tie RAM into a system where the RAM and CPU can, on the fly, streamline I/O paths by allocating the most optimal I/O path for their functionality. They do something similar with hardware partitioning, but I am thinking you could dynamically change this on the fly, if you have the right sort of motherboard. Have the supervisor CPU isolate various buses are required.

          The first TB RAM boxes are going to be multi-cpu/core boxes. BY the time this all filters down to the desktop level (which isn't that far away really) desktop cpu's will be multicore and there will be multiple cpu's per motherboard.

    18. Re:You only need 16GB of RAM for this to be useful by dougmc · · Score: 2, Interesting
      An Azul Vega 2 7280 can have up to 768 MB of RAM -- and fits in 14U of rack space. It also has up to 16 cpus giving you a total of 768 cores. Crazy stuff!


      Granted, it doesn't run Linux (or if it does, it's kept hidden from the user.) But with these awesome specifications, I have to wonder why they don't just sell general purpose computers -- people would port Linux to them, and they'd clean up! Is there something special about their processors that they're good at doing java or what?

    19. Re:You only need 16GB of RAM for this to be useful by beuges · · Score: 4, Interesting

      Yeah, except Vista already does aggressive caching and makes full use of RAM that isn't currently being used by applications, but slashdot keeps going on about how its a bloated piece of crap that uses 2GB of RAM when idle. Yet they don't complain that their system runs a lot smoother thanks to prefetching which analyses program usage and preloads (in the background) data that it anticipates being loaded from disk in the future.

      Here's a question... if you actually had a system that had 1TB of RAM, wouldn't you like to see a lot of your hard drive contents being loaded into RAM in the background because you have the RAM to store it, and you know that it can be discarded at any time because its just cache memory and not committed memory? I mean, you've gone to all the trouble and cost of getting yourself that much RAM... do you ONLY want to ever make use of it all on the rare occasion you need to edit a 500megapixel picture in photoshop? Do you want your ram to sit idle the rest of the time, and have your hard drive grind away because /. would rather see the OS use 100mb of ram at idle and have the rest doing nothing?

    20. Re:You only need 16GB of RAM for this to be useful by Bert64 · · Score: 1

      I liked the Amiga/MacOS approach, where desktop os's didn't use swap... If you didn't have enough ram, you just closed down apps you weren't using. Swap is bad for desktop systems, as it encourages inefficient use of memory, encourages people to run more than their system is really capable of handling, and causes noticeable latency when swapping. Windows 3.1 was much faster if you turned swap off, and Amiga/MacOS was much faster and more responsive still.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    21. Re:You only need 16GB of RAM for this to be useful by Torvaun · · Score: 1

      I'd be happy to test out a system with a terabyte of RAM. Send one over, I'll figure something out.

      --
      I see your informative link, and raise you a pithy comment.
    22. Re:You only need 16GB of RAM for this to be useful by zappepcs · · Score: 1

      Indeed, that does seem to be the future plan on today's whiteboards. I was thinking more of doing just enough specialized hardware and software dev to jam 4+ systems in one box, while saving on some power and real estate by sharing certain resources. Hell, you could throw a 100Mb hub inside somewhere and just have one external NIC port. The point was to fix what is working today rather than restructure the OS's completely to handle multicore cpus and call that a fix.

      Sure, fix the OS to handle multicore, but also have it so we can cluster or slave them in one box. 4U of rack space is a huge amount. If you have the equivelent of 16 CPUs in there... well, no need to do the math on that for you. One pair of redundant power supplies and you're ready to go for a lot of requirements. If each slave has fiber speed access to their partition on the RAID it's going to run like a raped ape and look like a group/cluster of standard systems.

      By minimizing on common hardware, and developing the specialized hardware to do so, we already basically have what we need to build mini-uber computers. My thinking is that 4U of rack space is enough to do it. Turn that on it's side and you have a basic fat tower system.

      Heat won't increase exponentially, and reduced power supply heat helps. The more efficient they make newer chips, the better things get.

      Right now, *MOST* things that we do on home computers would be just fine on a fanless 800MHz cpu if that is the only process that needs to be running. It's the multitasking that causes the need for more speed/heat/power. Multicore cpu's will help solve the problem but the code to support it fully is still on a noisy machine in the corner of the dev lab... so to speak, and it does not fully eliminate the typical bottlenecks that home computing suffers from.

    23. Re:You only need 16GB of RAM for this to be useful by Bert64 · · Score: 1

      It's also not a new idea...
      High end RAID controllers have large amounts of volatile ram for read/write caching. They also have battery backups, so that the write cache doesn't get lost during a power outage (it stores it, and commits the write to physical disk when the power is restored, the host system can continue working long before the actual disk write finishes).

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    24. Re:You only need 16GB of RAM for this to be useful by afidel · · Score: 1

      Actually I can think of a great use for this, supporting the builtin database for Neverwinter Nights! The only way to get the complete object state saved was to use the builtin DB layer which was unbearably slow when backed by disk. Using a ramdisk was blazing fast but unsafe of course, having a magnetically backed ramdisk would have been great. Backing Oracle with this would be pointless as tables can already be cached in memory and putting logs on this would make any DBA's skin crawl as the system would be exposed from the time the writes were acknowledged to when they actually got written to permanent storage.

      --
      There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
    25. Re:You only need 16GB of RAM for this to be useful by Daniel+Phillips · · Score: 2, Informative

      Yeah, imagine, then, to be able to use such a fast disk as your swap device! That'll make your system swiftz0rs. Bingo. That is one way you can use the Violin 1010 without needing any special backing to disk at all. In fact, this is a nigh-on perfect use of the device, because the 2x8x PCI-e bus connection, while fast, is still not as fast as main memory. But the swap subsystem knows now to manage that latency increase quite nicely. Such a swap arrangement will even tend to bring things back in balance as far as the Linux VM goes, since in the good old days when swap was invented, disk was only two or three orders of magnitude slower than memory instead of 5 orders like today.

      Or, hey, wait a minute... In all honesty, though, I don't really get the point of this. Isn't the buffer cache already supposed to be doing kind of the same thing, only with a less strict mapping? Indeed, less strict, and it also does not know how to flush dirty cache to disk and switch to synchronous mode when running on UPS power, or how to fully populate the cache as fast as possible on startup. Indeed, buffer cache can be taught these things, but I have already created a block driver to do it, which has the added benefit of supplying a nice general interface that will no doubt be repurposed in ways I did not think of. Maybe after Ramback is really solid I will create a variation that sits right in the VFS, though actually there are other more important projects in the pipe so anybody who wants to do that, be my guest.
      --
      Have you got your LWN subscription yet?
    26. Re:You only need 16GB of RAM for this to be useful by hardburn · · Score: 1

      And cheaper, too. Sometime last year, I calced out the price of configuring a 64GB server (with most of that intended as a RAM disk). IIRC, it came out that the complete price of the system was less than the cost of the high-end solid state drives out there (like a RAMSAN). I was looking for some software exactly like the one in TFA so you could still have a hard drive backup automatically in place, but didn't find much at the time.

      The one thing you could try back then is a software RAID 1 setup, with one device being the RAM disk and the other on a hard drive. The only thing with this is that the Linux software RAID drivers remember where the hard disk head is at and read from the drive with its head closest to the needed data. That's a lot of wasted effort for a RAM disk. IIRC, most RDBMS have a similar problem.

      --
      Not a typewriter
    27. Re:You only need 16GB of RAM for this to be useful by 3vi1 · · Score: 1

      Of course the Amiga/Mac didn't use swapfiles, that was because there was no harddrive on the first models. It wasn't a design decision; it was a physical impossibility unless they wanted to swap to a slow floppy... which the user was free to eject at any time.

      Nothing is stopping the user from closing down programs they're not using now, if swapping is actually causing them latency. If it is causing them latency, then they're probably goinging back and forth between several programs that cannot possibly fit into memory at once (otherwise one would stay swapped out and there would be no visible latency). This means the user would be SOL if they need all these programs to communicate together directly (i.e. one's controlling the others), on a system without swapfile functionality.

    28. Re:You only need 16GB of RAM for this to be useful by anexkahn · · Score: 1

      This sounds an awful lot like blades: http://en.wikipedia.org/wiki/Blade_server Use something like open mosix: http://openmosix.sourceforge.net/ and make each blade a cluster node.....you now have your CPU/RAM on a card.

      --
      Curious about Storage and Virtualization? Check out
    29. Re:You only need 16GB of RAM for this to be useful by EvanED · · Score: 1

      The nice thing about having a RAM disk is that you may be able to predict the future better than the OS can. For instance, the buffer cache only comes into play when you first read a file. That's all well and good if you are doing repeated access or prefetching or such, but it will do diddly squat for the file that you are /about/ to open if you haven't loaded it since boot.

      You're right that it's not a clear win, and in fact there are plenty of times when it'll be a loss because you have more stuff than you have memory, and stuff that you aren't using that's in your ramdisk will take up space that could be used by the buffer cache for stuff that you are. But, if there is a time when you can keep all of your data that isn't a video or music file in RAM, that would be better than having a buffer cache. (Video and music are both big space hogs and I think it's unreasonable to expect that they will reside in RAM, both are read sequentially so caching what has been read isn't worth it, and both have predictable read patterns that are extremely amenable to prefetching. If your hard drive can provide the bandwidth, memory doesn't need to do much. So you could have a "media" partition that just has a small buffer cache bit for prefetching, and your ramdisk can have your data, programs, etc. on it.)

    30. Re:You only need 16GB of RAM for this to be useful by operagost · · Score: 1

      If you think flash memory is as slow as a hard disk, you haven't been paying attention. It's not your 1980s static RAM. The transfer speed is similar, but the difference in latency is huge. Why do you think Microsoft developed ReadyBoost?

      --

      Gamingmuseum.com: Give your 3D accelerator a rest.
    31. Re:You only need 16GB of RAM for this to be useful by Qubit · · Score: 1

      Granted, it doesn't run Linux (or if it does, it's kept hidden from the user.)

      Are you sure it's kept hidden? The azul system specs page says that all of their hardware can run multiple OSes, including some GNU/Linux distros:
        "Operating Systems: Interoperable with Sun(TM) Solaris(TM) on SPARC(TM) and x86; IBM® AIX® on Power Architecture, HP-UX on PA-RISC, Red Hat® Enterprise Linux®, and SuSe(TM) Linux on x86"

      I'm going to guess that you can get a console by sticking a keyboard in...
      --

      coding is life /* the rest is */
    32. Re:You only need 16GB of RAM for this to be useful by shapor · · Score: 3, Informative

      posix_fadvise() technically does allow you to do what you want. You can use posix_fadvise(POSIX_FADV_DONTNEED) to evict the buffer cache in the IO loop of the program. See http://insights.oetiker.ch/linux/fadvise.html for the ugly details. Unfortunately you can't just make one system call and have it effect an entire file or process. POSIX_FADV_NOREUSE is supposed to be the default in the kernel buffer cache management so it is implemented as a no-op.

    33. Re:You only need 16GB of RAM for this to be useful by Anonymous Coward · · Score: 0

      Use direct io in your player. I don't know why anyone, in a media player, would ever bother to not open content with the O_DIRECT flag.

    34. Re:You only need 16GB of RAM for this to be useful by 2nd+Post! · · Score: 1

      My Vista systems don't seem to run smoother nor faster despite the aggressive caching. It seems to be slower than installing XP on the system. Perhaps I need more than 1GB of RAM? The point is that this system shouldn't be in place unless you have a significant (like 4GB, 8GB, or 16GB) of RAM in place.

      The problem is that Vista isn't very good with 1GB of RAM, so the problem is compounded when the OS itself needs the RAM for itself and has none for speeding up the system.

    35. Re:You only need 16GB of RAM for this to be useful by gbjbaanb · · Score: 1

      , but slashdot keeps going on about how its a bloated piece of crap that uses 2GB of RAM when idle

      that's 'cos the Aero glass interface is written in .NET, so it keeps as much data in memory until it gets garbage collected. Its a new paradigm in programming (for windows) - use up all your RAM for the running application, until you need it for something else, and then start swapping.

      Swap is a strange thing, its never used by what you want it used for - either you use up all the ram you have (as free ram is wasted ram) but then, when you run out it starts to grind as existing app data is written to disk. Alternatively, you tell it to use as little as possible, but then you find it aggressively swaps unused apps and data out all the time.

      Don't forget that things like prefetch simply move grind time from on-demand to on-startup, the time spent grinding is not reduced, just made more annoying. Ever wondered why your box grinds away when you're doing nothing?

      The only answer is to have more ram than you could possibly need. If I had 1Tb RAM, I'd expect most of it would be given to file caching and app data. Unfortunately, I expect it'll be used as a huge managed heap waiting to be garbage collected.

    36. Re:You only need 16GB of RAM for this to be useful by Erpo · · Score: 1

      See posix_fadvise. Using that API, a process can have as much control over a file as it needs; too bad the kernel does basically nothing with that information.

      Is it really true that the kernel does basically nothing with posix_fadvise? I was about to rewrite an app to use posix_fadvise instead of O_DIRECT to manage caching based on this post by Linus:

      http://lkml.org/lkml/2007/1/10/233

      but if you're right then it would be a waste of time.

    37. Re:You only need 16GB of RAM for this to be useful by thealsir · · Score: 1

      I like the idea of being able to chain multiple boards together in one chassis with some redundancies eliminated and specialized. Interconnecting the boards via hypertransport or infiniband is almost a trival affair these days too. It sounds almost like video game consoles back in the day, where different chips were specialized to do different tasks, with multiple processors doing math and geometry intensive work. It wouldn't be too hard in these days of integration to design a southbridge to have more inputs so it could handle a consolidated system.

      --
      Do not downmod posts "overrated" simply because you disagree with them.
    38. Re:You only need 16GB of RAM for this to be useful by vidarh · · Score: 1

      Actually it was a physical impossibility on the early Amiga's and Mac's because the CPU's in the early models didn't have a MMU. Virtual memory simply couldn't be implemented in any meaningful way. They could've implemented some really nasty overlay systems, but the benefit just wouldn't be there.

    39. Re:You only need 16GB of RAM for this to be useful by dbIII · · Score: 1

      Yet they don't complain that their system runs a lot smoother thanks to prefetching which analyses program usage and preloads

      In many situations that is an utterly stupid idea especially with large program executables and libraries and a maximum possible RAM ceiling of 2GB. Where it does work is if you do almost exactly the same thing with the computer every day. In the situation where you are doing the same thing every day the files would be cached for quite a while from the first load anyway so the prefetch only has merit in the situation where you turn on a computer every day, go fetch coffee while it preloads everything and then turn the computer off at the end of the day.

      As to the second point, prefetch only makes sense if you know you are going to need those files no matter how much RAM you have or if you are prepared to ignore the time it takes to load all of those files into memory (even at 100 MB/s it probably won't be a trivial time). It takes time to get that stuff off disk and I/O operations slow down MS Windows significantly even if you have several processors. Also unfortunately the way the prefetch works in MS Windows is a bit different to normal caching. To free up memory it dumps the prefetched files to virtual memory on disk instead of discarding it - which means it makes your disk swap and slows everything down by an order of magnitude or two just when you need that memory. Look up superfetch on MS Technet and you'll see what I mean, for some reason this was an intended "feature".

      The RAM doesn't sit idle due to normal caching which has the advantage that things are discarded when you need the memory.

    40. Re:You only need 16GB of RAM for this to be useful by QuoteMstr · · Score: 1

      I read that thread; IIRC, downthread, people complain that posix_fadvise doesn't yet have the needed semantics.

    41. Re:You only need 16GB of RAM for this to be useful by Dolda2000 · · Score: 1
      Oh, a reply from the actual author? That be neat.

      I may have to concede that it seems like an interesting idea with using the Violin thing for swap, however with two counterpoints:

      1. To use the Violin as a swap device, it seems to me that it would work perfectly as just a normal ramdisk, without any special logic to synchronize to non-volatile storage, so it does not seem like much of an argument in favor of Ramback, but rather like one in favor of the Violin.
      2. I would question the need for 512 GB of swap, seeing how I almost never use any swap with just 1 GB of RAM. I'm sure there are people somewhere who may need that much swap, though.

      I am still not convinced on the whole Ramback vs. buffer cache point, though. Ignoring your point about the UPS mode (seeing how it only seems to be needed when using Ramback anyway), and addressing the population point instead; Surely, running "cat /dev/backing >/dev/null" should populate the buffer cache as fast and well as populating a Ramback (and it will still be able to serve sporadic reads from not-yet-populated pages), or am I wrong? As long as one really does have lots and lots of RAM, am I not right in saying that the buffer caches won't ever leave RAM anyway?

      As for what you say about the buffer cache not knowing how to flush dirty cache to disk, I'm not sure what you may be referring to. For sure, the buffer cache already flushes dirty pages after some time has passed (as controlled by the vm.dirty_writeback_centisecs sysctl), but I cannot imagine you being unaware of this, so you must be referring to some other effect of which I am unaware.

    42. Re:You only need 16GB of RAM for this to be useful by dougmc · · Score: 1

      "Operating Systems: Interoperable with Sun(TM) Solaris(TM) on SPARC(TM) and x86 ... Key word: interoperable. It doesn't run Solaris, AIX, HPUX, Linux -- it can work with them. I don't think it even has any hard disks, or if it does, they're small and used only for cache and the OS.

      Basically, it runs Java programs. You run a stub-JVM of sorts on your normal computer, and it feeds work to the Azul box over the network, which does all the heavy lifting. And even the modest Azul boxes does this heavy lifting really really fast.

      I don't know about a console -- perhaps you can do a little configuration that way, but I doubt you can log in and do *nix-y stuff.

    43. Re:You only need 16GB of RAM for this to be useful by Daniel+Phillips · · Score: 1

      Actually - is there really any difference between this and allowing a filesystem to have any amount of delay before syncing the write cache? Yes, there are differences. Ramback is able not only to flush out all dirty cache when the UPS kicks in, but then to continue on in a synchronous write mode where the backing store is always left in a consistent state in case the UPS battery runs out before line power comes back. Also, at startup, Ramback populates the cache as fast as the backing store will transfer, which the Linux VFS cannot do efficiently at the filesystem level.
      --
      Have you got your LWN subscription yet?
    44. Re:You only need 16GB of RAM for this to be useful by Daniel+Phillips · · Score: 1

      I'd be more concerned about kernel panics. I've had about one per week for the last few week ever since upgrading to avoid the vmsplice bug. I'm sure my array of somewhat-atypical hardware doesn't help, but neither does the fact that linux no longer has a real development branch... And of course you have posted your panic or oops or whatever to lkml?
      --
      Have you got your LWN subscription yet?
    45. Re:You only need 16GB of RAM for this to be useful by jlarocco · · Score: 1

      Not even that much. It seems to me he's just added an automatic backing store to a RAM disk. That's convenient, but doesn't seem very revolutionary. You can already have 90% of that functionality with about 20 minutes of initial setup and a couple of shell scripts.

      Besides that, isn't there already a buffer cache for disk IO? Why not modify it to achieve the same thing?

    46. Re:You only need 16GB of RAM for this to be useful by Daniel+Phillips · · Score: 1

      Surely, running "cat /dev/backing >/dev/null" should populate the buffer cache as fast and well as populating a Ramback Except that in Linux, file data is cached in the "page cache" (per-inode disk mapping) not the buffer cache. So pre-populating the buffer cache does you no good at all, you need to individually populate each file. A big mess to implement efficiently.
      --
      Have you got your LWN subscription yet?
    47. Re:You only need 16GB of RAM for this to be useful by GigaplexNZ · · Score: 2, Interesting

      if you actually had a system that had 1TB of RAM, wouldn't you like to see a lot of your hard drive contents being loaded into RAM in the background Not really. Vista does this already. Too bad it copies a 700MB ISO into memory every time I reboot (even though I have only used it once) and then proceeds to attempt to load 5 more ISOs each around 2GB. I have 2GB of RAM, which means it is copying all this data into a circular cache overwriting anything that might be useful. All I want it to do is cache system libraries and frequently used applications, not obscure user data.
    48. Re:You only need 16GB of RAM for this to be useful by Kjella · · Score: 1

      I imagine the paging system is a quite performance sensitive part of the kernel, and splitting the pages into different classes hardly seems trivial. Not saying it couldn't happen but sounds to me like a tall order for a SoC candidate.

      --
      Live today, because you never know what tomorrow brings
    49. Re:You only need 16GB of RAM for this to be useful by ckaminski · · Score: 1

      I bought a new Compaq C712NR with Vista on it this winter, and although I liked where Microsoft was going with the interface, it was a dog, even with all the crapware removed/disabled with 1GB. So I upgraded to 2GB, and noticed absolutely no change whatsoever. Apps took the same amount of time to load, Vista took 90 seconds to boot to usable condition on powerup.

      So I downgraded to XP. And have a functional desktop in 30 seconds from poweron. I run VMware server with three VMs, Openoffice and Firefox 3. And free RAM to spare.

      Vista was NOT a major improvement over XP, but perhaps the next generation of 4G laptops and computers will prove me wrong.

    50. Re:You only need 16GB of RAM for this to be useful by Anonymous Coward · · Score: 0

      I'm assuming theres a typo, otherwise I'm not particularly impressed by its amount of ram :)

    51. Re:You only need 16GB of RAM for this to be useful by darkwhite · · Score: 1

      The fact that Vista does prefetching and other advanced memory management has no bearing on the fact that it's still a ridiculously, unacceptably bloated pig of an OS in terms of RAM, disk, and CPU resource use.

      --

      [an error occurred while processing this directive]
    52. Re:You only need 16GB of RAM for this to be useful by Rich0 · · Score: 1

      Alas - when it happens:

      1. I have linux set to autoreboot on panic - and this usually works. This is a mythtv box and I don't want it to sit around not recording stuff for three days as a result of a panic.
      2. The console may not display the error since I'm running nvidia X11 drivers.
      3. Even if it did display the error, it isn't like I'm going to copy the dump to paper or take a photo of the screen...

      I can't find a way to log panics in any way - short of putting the console on some device that would independently support logging. Granted, I can see why the kernel devs wouldn't want to try to write to disk after a panic - who knows what would happen. Then again, maybe there should be some facility to allocate a tiny partition or something to hold kernel core dumps that would be safer to write to if something went wrong...

    53. Re:You only need 16GB of RAM for this to be useful by Daniel+Phillips · · Score: 1

      2. The console may not display the error since I'm running nvidia X11 drivers. Just say no to buggy closed source secret interface spec drivers and buy AMD for your next MythTV box. Turn the NVidia box into a firewall or something.
      --
      Have you got your LWN subscription yet?
    54. Re:You only need 16GB of RAM for this to be useful by Anonymous Coward · · Score: 0

      From what I have gathered, Vista uses all the rams that are not currently being used. So what if a new process come into main memory? Then there would be needless context switch. The problem is Vista is trying to use all of the Ram at all time (there isn't a limit). That's probably one reason why Vista drain the hell out of my laptop versus XP.

    55. Re:You only need 16GB of RAM for this to be useful by Rich0 · · Score: 1

      Regardless - even if the console did display the error I wouldn't be able to report it short of taking a photo of the monitor...

      Don't get me wrong - I'd be happy to go open-source with video drivers. My understanding is that the competitors haven't really been comparable in performance - although perhaps that has changed. When my current $15 video card dies maybe I'll try a $15 AMD card instead...

      And the box actually is a firewall already. It is by general-purpose backend server (and linux desktop)... I don't actually watch TV on it. :)

    56. Re:You only need 16GB of RAM for this to be useful by Anonymous Coward · · Score: 0

      ... prefetching which analyses program usage and preloads (in the background) data that it anticipates being loaded from disk in the future. Indeed, Microsoft is now able to see in the future.

      Or did you want to invalidate your own argument by saying that Vista loads data which could be used soon, if your computer didn't crash? Oh, well.
    57. Re:You only need 16GB of RAM for this to be useful by Daniel+Phillips · · Score: 1

      You wonder why your linux box panicks? Regard that nividia binary hack with extreme suspicion.

      --
      Have you got your LWN subscription yet?
    58. Re:You only need 16GB of RAM for this to be useful by Bert64 · · Score: 1

      I'm sure there were external MMUs available for the 68000, at least very early sun workstations and others ran unix on such processors...
      It could easily have been an option on version 2 of amigaos, which came out on the A3000 that shipped with an MMU and hard drive by default.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
  3. Find a cure to cancer! by Doug52392 · · Score: 0, Redundant

    With all that RAM, projects like Folding@home, SETI@home, and all these distributed computing projects could have endless RAM.

    We could cure diseases by doing research on those systems!

    First post :)

  4. Add-Free one-page Version of the story by saibot834 · · Score: 4, Informative

    For those of you who don't have Adblock: Printerfriendly Version

    1. Re:Add-Free one-page Version of the story by Freedom+Bug · · Score: 4, Informative

      Here's a much better link on Jon Corbet's own site, the famous Linux Weekly News:

      http://lwn.net/Articles/272011/

    2. Re:Add-Free one-page Version of the story by Anonymous Coward · · Score: 1, Informative

      Or you could just read the story on LWN.

      Out of curiosity, why the link to PC World when the summary specifically mentions that it's on LWN? If Jon get paid for the PC World version because of the ad revenue, that's fine with me. However saying that it's an LWN piece and linking to another source is a bit misrepresentative.

  5. Memory usage by qoncept · · Score: 4, Interesting

    I would think that, since we aren't even close to having boxes with more memory than we actively use, and RAM isn't growing any faster than we are using it up, that using it as a "disk" is even further off than the article would seem to imply.

    --
    Whale
    1. Re:Memory usage by Bryansix · · Score: 2, Insightful

      For some uses we use all the RAM and for others we don't. For instance I think WIN98 boot disks create a RAMDRIVE which is pretty usefull when you can't access any of your hard drives because they aren't formatted or partitioned.

    2. Re:Memory usage by wizardforce · · Score: 5, Interesting

      since we aren't even close to having boxes with more memory than we actively use
      640k should be enough for anyone. you do realize that the fact that computer manufacturers are happy bundling over 2 gigs of RAM in a default install so it runs Vista all prettily gives the linux users of us a fantastic advantage when we don't use anywhere near that on a regular basis. there are already linux distros that are small enough as to be sitting entirely in RAM, some even small enough to run on the L2+3 cache if you like. being able to do things like this is going to be a major advantage.
      --
      Sigs are too short to say anything truly profound so read the above post instead.
    3. Re:Memory usage by Ephemeriis · · Score: 3, Insightful

      RAM is getting cheaper every day. Capacity is constantly growing. I just bought 4 GB RAM for about the same price I paid a few years ago for 1 GB. Right now I could build a system with 16 GB RAM without breaking the bank, all from basic consumer-grade parts available on NewEgg. It isn't going to be long before we see systems with more RAM than we know what to do with. Turning a chunk of it into a big RAMdisk sounds like a good idea to me.

      --
      "Work is the curse of the drinking classes." -Oscar Wilde
    4. Re:Memory usage by Anonymous Coward · · Score: 1, Interesting
    5. Re:Memory usage by cgenman · · Score: 1

      This sounds a lot like google's server needs. Truly random access at high speeds.

      Ram disks were available on the mac in 1990. You can get specialized rocket drives that are entirely RAM. How is this so "far off" again?

    6. Re:Memory usage by Feyr · · Score: 1

      just leave firefox open for a week, it will happily gobble it all up

    7. Re:Memory usage by Lumpy · · Score: 1

      Actually the article and summary and you are wrong. Comcast uses servers all over the US that has over 2 TB of ram in each one of them.

      they are the secondary and trinary servers for the Video on demand system. Each one is capable of holding 32TB of ram but are configured with only 2 for now. The secondary and trinary servers are all ram based, they simply propagate the videos down to each segement that needs VOD videos. if one fails, a simple instant reboot, reload from the secondary or primary is all that's needed and they are back online functional in less than 15 minutes. (Gotta love bonded Gigabit and Fiber-channel)

      Granted I am assuming you are talking low end home use, in that regard you are right. but mid level commercial and corperate use... multi terabyte of ram is not uncommon.

      --
      Do not look at laser with remaining good eye.
    8. Re:Memory usage by geekoid · · Score: 2, Interesting

      well I wish 64 Bit would get pushed and 32 Bit activly phased out. as in, stop making it.

      I can get a 64bit mobo, 64bit proc, and still ahve problem finding on that can take more then 8Gigs of ram.

      I want to load up my games into a ram disk and play them from their. I've didi it in the bad ol'/good ol' days. I want to put a 2 hour movie entirely in RAM. I want 100+gigabytes of RAM, damn it. I've beens tuck at 4 Gigs for years. ENough already.

      also, I want a pony.

      --
      The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
    9. Re:Memory usage by Hatta · · Score: 1

      I would think that, since we aren't even close to having boxes with more memory than we actively use

      I just upgraded my box from one with 512mb of RAM to one with 2GB of RAM, and honestly I haven't noticed a difference for most applications. So, I think we are pretty close. What the hell do I need 2 GB of RAM for anyway? Oh yeah, Civ4.

      --
      Give me Classic Slashdot or give me death!
    10. Re:Memory usage by Hatta · · Score: 1

      My box has been up 18 days, running firefox the whole time with an ungodly number of tabs. Top tells me it has reserved 277MB, or 13.7% of my RAM. More than it probably should, but not really that bad.

      --
      Give me Classic Slashdot or give me death!
    11. Re:Memory usage by Ephemeriis · · Score: 1

      I can get a 64bit mobo, 64bit proc, and still ahve problem finding on that can take more then 8Gigs of ram.
      I just bought a couple GIGABYTE GA-M52L-S3 motherboards from NewEgg... They weren't the cheapest things there, but I've certainly paid more for a motherboard. And they support up to 16 GB RAM. Actually... Most of the GIGABYTE AMD motherboards on NewEgg support up to 16 GB.

      well I wish 64 Bit would get pushed and 32 Bit activly phased out. as in, stop making it.
      It is happening... Slower than I'd like, but it is happening. As RAM gets cheaper you're going to see more and more machines with 4+ GB standard. And then they'll have to switch over to 64-bit.
      --
      "Work is the curse of the drinking classes." -Oscar Wilde
    12. Re:Memory usage by Epistax · · Score: 1

      The parent is correct. We aren't close to having boxes with more memory than we actively use. As soon as we add more memory, we actively use it. See Vista. See games. See Eclipse. I'm glad at work that I have 2 GB of ram on my workstation because just opening the bare applications I use minus a webbrowser puts me at about 1.2G used. (My bootup before launching any app is around 150 megs)

    13. Re:Memory usage by QuestionsNotAnswers · · Score: 1

      I was just looking at Gigabyte consumer motherboards for Intel, and they seem to mostly max out at 8GB memory. e.g. http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID=2736

      --
      Happy moony
  6. One Terabyte by Cedric+Tsui · · Score: 4, Funny

    One Terabyte ought to be enough for anybody.

    1. Re:One Terabyte by Captain+Splendid · · Score: 4, Funny

      One Terabyte ought to be enough for anybody.

      Obviously you're running windows XP, not Vista!

      --
      Linux, you magnificent bastard, I read the fucking manual!
    2. Re:One Terabyte by Bryansix · · Score: 1

      Ya, saying one Yobabyte of RAM would be enough would have been safer.

    3. Re:One Terabyte by xgr3gx · · Score: 1

      Oh man, you beat me to it! haha
      I wanted to say "640 TB of should be enough for anybody"
      Cool - Now quote me on it in 30 years.

      --
      Shameless plug alert: Game server control panel
    4. Re:One Terabyte by Enleth · · Score: 1

      As Master Yoba said, "Vista capable" it is, but enough it is not, young one!

      --
      This is Slashdot. Common sense is futile. You will be modded down.
    5. Re:One Terabyte by nbritton · · Score: 1

      640^2.0727394482 bytes ought to be enough for anybody.

    6. Re:One Terabyte by Anonymous Coward · · Score: 0

      No, no, no, it's "640 Terabyte ought to be enough for everybody"!

    7. Re:One Terabyte by blair1q · · Score: 1

      Yes, haha, but, I run Vista Ultimate on 2 GB and, as always with Windows, it stabilizes at about half the physical memory. Why it does that, I don't know; probably something about keeping the pools in that ballpark and not cleaning up until you need it. And it runs just fine. The only slownesses I ever notice on that machine are:

      1. Spooling up my backup drive on the eSata port.

      2. Starting java.

      2GB is the new 1GB (XP's sweet spot; it was a dog in 512MB and adding that other stick always satisfied the need).

      Of course, I'm also running a 3-GHz Intel QX9650 and have the memory bus at 1333 MHz (not even oc'd) and my main HD is on a Sata-2 line, so ymmv.

    8. Re:One Terabyte by lelitsch · · Score: 1

      No, 640GB should be enough for everybody.

    9. Re:One Terabyte by Captain+Splendid · · Score: 1

      2GB is the new 1GB

      You're not joking. My 512MB XP laptop barely runs adequately, and that's after stripping it down to within an inch of its life.

      --
      Linux, you magnificent bastard, I read the fucking manual!
  7. Obligatory by noidentity · · Score: 1

    Well, if the OS doesn't have to be *nix, you could run Windows Vista on it. Maybe.

  8. Windows 7? by Lectoid · · Score: 4, Funny

    See also, Windows 7 minimum requirements.

    --
    Is it just me, or do you hate it when people say "Is it just me..."?
  9. ... and cue by Anonymous Coward · · Score: 0

    the people who spell it "terrabyte".

  10. Vista SP1 by sakdoctor · · Score: 3, Funny

    Is that the recommended or minimum requirement?

    1. Re:Vista SP1 by felipekk · · Score: 1

      It's worse than that: These are the "Vista Capable Logo" numbers.

  11. 8 GB by Rinisari · · Score: 5, Funny

    I have 8 GB of RAM and rarely use more than four of it unless I'm playing a 64-bit game which eats it up (Crysis). Yes, I am running both 64-bit Linux and Windows.

    One time, I opened up more than a thousand tabs in Firefox just because I could.

    1. Re:8 GB by ls+-la · · Score: 1

      I have 1 GB of RAM, and I rarely use it all up. Of course, I don't play ram-hungry games or use Vista; Those two and maybe compiling large programs are all I can think of that would need more than a gig of ram to function at a reasonable speed.

      As a side note on the compiling, I'm doing a thesis on memory paging, and the largest trace we have is of compiling a linux kernel: over 4 million distinct pages, each page 4kB for a total footprint over 16GB.

    2. Re:8 GB by corychristison · · Score: 1

      I have 4GB, still two more slots for another 4GB...

      How the hell do you use ~4GB? I do video encoding, compression, editing, graphics, etc. etc. all simultaneously and honestly never go above 2GB. The only time I ever go over that is when I boot up XP via VMware (ram set to use up to 1GB), although I think I've done that once since I've gotten Photoshop CS2 and Flash 8 running fine under WINE.

    3. Re:8 GB by jo42 · · Score: 1

      How the hell do you use ~4GB? Open up Photoshop CS3 and a large PSD. In VMware Workstation one Windows 2003 R2, one CentOS 5.0, one Windows XP with IE6. That's 2+ GB right there.
    4. Re:8 GB by Gr8Apes · · Score: 2, Informative

      I run Oracle on Linux - it barely fits into 4GB. Add in a few other daemons, and I can easily fill 8GB.

      --
      The cesspool just got a check and balance.
    5. Re:8 GB by mikael_j · · Score: 1

      Interesting, I tend to have my "standard" setups of software to run, Maya + Photoshop, Photoshop + Illustrator and so on. Running more than two while running a few "desktop apps" like Adium, Safari/Firefox and Mail.app will get my RAM use up to above 2 GiB. And since I like to have some free RAM to work with (in case I need to open a new large PSD or make twenty copies of an object in Maya etc.) I limit myself to two "heavy" apps at a time...

      /Mikael

      --
      Greylisting is to SMTP as NAT is to IPv4
    6. Re:8 GB by Grayswan · · Score: 1

      I have a machine w/10G RAM. I can only load about 15% of the articles in alt.binaries.hdtv before I run out and swapping only makes about 20% loadable before the slowdown is too much. So, I could literally use ALL of 64Gig.

      --
      If you open your mind too wide, people will throw trash in it.
  12. Power Failure by Anonymous Coward · · Score: 3, Informative

    One important thing to consider, is that if using a ramdisk for important stuff, what happens when the power dies?

    For example, will the stuff synced from magnetic media be stored elsewhere? If so, what happens to the speed?

    -B

    1. Re:Power Failure by itsjz · · Score: 5, Informative
      There's about three paragraphs in the article discussing this. Basically, use a UPS:

      If line power goes out while ramback is running, the UPS kicks in and a power management script switches the driver from writeback to writethrough mode. Ramback proceeds to save all remaining dirty data while forcing each new application write through to backing store immediately.
    2. Re:Power Failure by Anonymous Coward · · Score: 0

      Use a UPS or battery backup. Even the Gigabyte iRAM comes with a battery backup.

    3. Re:Power Failure by Anonymous Coward · · Score: 0

      I am still wondering, how hard is it to put a rechargeable backup battery in the box for cases just like this? surely it's easier than designing DRM system & "trusted computing" platform. so why not?

    4. Re:Power Failure by Tanman · · Score: 1

      Disk saves still go to the HDD, it just keeps all the files loaded into local memory. So, a power failure is no more or less catastrophic assuming you regularly press CTRL+S.

    5. Re:Power Failure by nvivo · · Score: 1

      One important thing to consider, is that if using a ramdisk for important stuff, what happens when the power dies?

      Although that is a problem, you don't need to move all your disk to RAM. You can move the system partition, and let your documents on regular disks. My home computer with Ubuntu and lots of additional stuff must be about 5 or 6Gb (without home folder). So, 8Gb of RAM would allow me to run the whole system at an amazing speed while leaving the other stuff that don't care about performance safe on the disk.

      Of course I'm not considering the regular RAM requirements, but then work with 12 or 16Gb of RAM, you should be good to go.
    6. Re:Power Failure by Znork · · Score: 3, Insightful

      Basically, use a UPS

      Then it goes on with the other questions, like, what if the hardware or kernel crashes and answers them with 'use things that don't crash'.

      Agh. I mean, that's really, really bad engineering. You don't engineer things with the assumption that everything will work. You engineer them to fail gracefully when everything that can go wrong does go wrong. And preferably with margin.

      If the system requirements for this are UPS, crashproof hardware and a completely bug-free OS, well, I'm sorry, but there's no system in the world capable of fulfilling the requirements.

      Still, I'm sure there are cases where it's useful; as long as speed is of higher importance than data integrity, this sounds very useful.

    7. Re:Power Failure by renoX · · Score: 1

      [[Agh. I mean, that's really, really bad engineering. You don't engineer things with the assumption that everything will work. You engineer them to fail gracefully when everything that can go wrong does go wrong. And preferably with margin.]]

      [sarcarsm]
      Yeah right, that's why we're *all* using ECC memory and RAID disks and using off-site backup, everywhere sure!
      [/sarcarsm]

      More seriously users assess the failure cost, price, performance tradeoffs and choose accordingly to their needs: no need to over-engineer everything..
      So this solution could be very useful in many situation.

    8. Re:Power Failure by algaeman · · Score: 1

      You are obviously not a system administrator. UPS' are not by any means the answer to all system failures. There are things you can't predict which cause systems to fail, mostly to do with various hardware failures (when computers get hot, bad things happen). While there's few things worse than your primary database server dying at 2AM because a $3 fan stopped spinning on the xeon furnace, it is simply adding insult to injury when you have to recreate a whole day's worth of business from transaction logs. I think most system admins will take data integrity over a small improvement in disk caching.

    9. Re:Power Failure by Daniel+Phillips · · Score: 1

      Agh. I mean, that's really, really bad engineering. You don't engineer things with the assumption that everything will work. You engineer them to fail gracefully when everything that can go wrong does go wrong. And preferably with margin. Very insightful. And if you had read the thread you would know that the engineers are already on top of it.
      --
      Have you got your LWN subscription yet?
    10. Re:Power Failure by Daniel+Phillips · · Score: 1

      I think most system admins will take data integrity over a small improvement in disk caching. In what way is 25 times a "small improvement"?

      If you read the thread, you will see that you can have both data integrity and high performance. Get your wallet out.
      --
      Have you got your LWN subscription yet?
    11. Re:Power Failure by ckaminski · · Score: 1

      Why, WHY has no one invented a battery-backed PSU? Why? A simple interface to the system to put it into sleep mode or hibernate when the power goes out and trickle power to keep the memory alive? Why!? I once had the ears of a Veep at APC, who liked the idea... I guess I just can't see the business case. :-/ maybe now we have one? Keeping RAM alive!

  13. With that much RAM... by erroneus · · Score: 2, Insightful

    ...I might be able to run Vista!!! (I wonder how many people have written this prior to me already?)

    It's a lot of RAM and at today's computational speeds, it's not likely that it could be used for anything beyond a RAM drive.

    Is it too soon to think about how to use that much RAM? NO! It's the lack for forward thinking that caused a lot of artificial limitations that have been worked around in the past. We're still dealing with limitations on file systems and the like. I've got an old Macintosh that can't access more than 128GB or something like that because its BIOS can't handle it... I had to get another PCI controller installed to handle larger drives.

    What it is time to think about is now to code without such limitations built-in. This would better enable things to grow more easily and naturally.

    1. Re:With that much RAM... by andphi · · Score: 1

      I've felt a great disturbance in the comment queue, as if a grepload of slashdotters all thought of the same joke at once . . . and then tried to post it.

  14. Mod parent up by Shandalar · · Score: 1

    Our use of RAM as users expands about as fast as our ability to add sticks of RAM to the box. If the latter happened at 1000 times the rate of the former, then in 15 years let's talk about the luxury of wasting RAM as a disk mirror.

  15. The problem with giving Windows 1TB... by Gybrwe666 · · Score: 4, Funny

    The System Tray would end up filling most of my dual monitors with all the crap Microsoft will inevitably find "necessary" to run the OS, leaving me with a small, 640x480 patch and approximately 640k for applications.

    1. Re:The problem with giving Windows 1TB... by Bryansix · · Score: 1

      If you run MS SQL Server and don't manage the RAM then it will use it all just for the fun of it.

    2. Re:The problem with giving Windows 1TB... by W2k · · Score: 3, Informative

      If you run MS SQL Server and don't manage the RAM then it will use it all just for the fun of it.

      If you find this in any way strange, wrong or confusing, perhaps you should read up as to what the primary purpose of a frikkin' DATABASE SERVER is.

      Here's a hint: the more data it can keep readily accessible (that is, in RAM) the better it will perform. And as you mentiones, you can of course set it to use less RAM if you have to. It's just that it's optimized for performance by default.

      --
      Quality, performance, value; you get only two, and you don't always get to pick.
    3. Re:The problem with giving Windows 1TB... by Bryansix · · Score: 1

      No, I know that it optimizes for performance. What I don't understand is how a 128k database with no logs and no users would still need to use up a Terabyte of RAM. It even does this to the detriment of the console session of the OS GUI. It's a Microsoft product and it isn't even smart enough to be aware that windows might need some RAM to function correctly.

    4. Re:The problem with giving Windows 1TB... by operagost · · Score: 1

      Do your databases normally remain at 128K forever? Or could you start a 2 GB import at any time? The database server doesn't know. And if it has to allocate all that RAM once you being importing, it will incur a performance penalty.

      --

      Gamingmuseum.com: Give your 3D accelerator a rest.
    5. Re:The problem with giving Windows 1TB... by geekoid · · Score: 1

      Yes, byt MS SQL has been know to eat all the ram. All The Ram, and then cause the server to Freeze, exactly what a database server isn't supposed to do. I mean really, shouldn't leave enough to at least operate?

      --
      The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
    6. Re:The problem with giving Windows 1TB... by Thundersnatch · · Score: 1

      This is false. We have dozens of MSSQL servers, both 2000 and 2005, and they generally operate with four-nines-plus reliability. Most have uptime measured in months. When you don't worry about patching things like IE on a server, very few restarts are required.

      MSSQL *will* by default use up nearly all memory on a system, leaving enough for all the other running processes plus about 64 MB. It does this so it can do joins, hash merges, and sort all in memory where possible, as well as cache as many database pages in RAM as it can. This is well-documented behavior, and it is easy to change if you are running MSSQL on a machine that does other stuff.

  16. uh - there is at least one system with 1TB of RAM by Anonymous Coward · · Score: 5, Informative

    You wrote: "We haven't yet reached a point where systems, even high-end boxes, come with a terabyte of installed memory" - this is not true. Sun's E25k can go over 1TB of memory.....

  17. How ? by herve_masson · · Score: 5, Funny

    // Use 1TB of RAM
    char *ptr=malloc(1099511627776);
    memset(ptr,1,1099511627776);

    1. Re:How ? by Anonymous Coward · · Score: 1, Insightful

      Cute, but there's no guarantee any of that malloc'ed space will actually be in RAM. The OS might decided to dump all that to a HDD or somesuch.

    2. Re:How ? by hey! · · Score: 1

      Sure there is; just "/sbin/swapoff -a", and there's no backing store.

      --
      Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
    3. Re:How ? by anonypus_user · · Score: 1

      ::wishes i understood::

    4. Re:How ? by moderatorrater · · Score: 1

      It's C code for getting the system to allocate 1 terabyte of memory and then fill it up with 1's. The funny comes from the fact that it uses 1 tb of memory, but it's useless.

    5. Re:How ? by cylcyl · · Score: 1

      // Use 1TB of RAM
      char *ptr=malloc(1099511627776);
      memset(ptr,1,1099511627776); Hmmm... I think size_t for 32bit systems only go up to 10^32-1 (1099511627775). I also recall that size_t doesn't expand for 64bit systems... So the above code might be a little problematic.
    6. Re:How ? by Neil+Hodges · · Score: 1

      Or if you want a one-liner:

      char * ptr = calloc(1099511627776, sizeof(char));
    7. Re:How ? by blair1q · · Score: 1

      How are you going to tell that the malloc succeeded?

      Unless you have more than 1TB of RAM and need to figure out how to use that...

    8. Re:How ? by Azh+Nazg · · Score: 1

      You'd be wrong on that count. sizeof(size_t) on my x86_64 box is 8. When I use -m32 (thereby telling the compiler to compile a standard x86 binary), sizeof(size_t) is 4. You'll note that 8 bytes for size_t allows it to account for all 64-bits of memory in a 64-bit system. . . Just like size_t is supposed to do. ;)

      Also, size_t on 32-bit systems goes up to 2^32-1 (the max that can be stored in 32 bits), not 10^32-1 (the max that can be stored in 32 decimal digits). . . Assuming, of course, we're talking your standard binary processors; I can imagine a 32-digit base-10 system having size_t go up to 10^32-1, but, then, who the hell uses a base-10 processor?

      --
      Azh nazg durbataluk, azh nazg gimbatul, Azh nazg thrakataluk agh burzum ishi krimpatul! This sig blocked by Slashdot.
    9. Re:How ? by Anonymous Coward · · Score: 0

      #define RAM_USAGE ((1<<40)-1)
       
      // Don't want to use to much RAM so only a small buffer here for the 100Gbit ethernet data
      char *ptr = malloc(RAM_USAGE);
      memset(ptr,0xCC,RAM_USAGE);
    10. Re:How ? by Anonymous Coward · · Score: 0

      As a simple programmer I found this the funniest comment in the thread. Although, please, memset to 0.

      Thxs.

    11. Re:How ? by sparcnut · · Score: 0

      I think the parent post contains fail, aren't raw values like that of type int (signed, 32-bit if you're using gcc on x86_64)?

      --
      perl -e 'print $i=pack(c5, (41*2), sqrt(7056), (unpack(c,H)-2), oct(115), 10);'
    12. Re:How ? by reg · · Score: 1

      You're only using 1 bit in 8! memset(ptr,0xff,1099511627776);

    13. Re:How ? by bitMonster · · Score: 1

      Don't you have to ULL that constant?

    14. Re:How ? by uid8472 · · Score: 1

      No need for administrative action; a simple call to mlock(2) should do.

    15. Re:How ? by geminidomino · · Score: 1

      Nope.

      void *malloc(size_t size);

      size_t is 64-bit unsigned on my box.

    16. Re:How ? by WithLove · · Score: 1

      I bet you're a lot of fun at parties.

  18. nothing new here by dltaylor · · Score: 3, Informative

    Linux gobbles free RAM to add to the buffer cache. This is already a large RAM disk with automatic sync. In embedded systems, you can even decouple the buffer cache from any physical media and just live in a variable size RAM disk, which means that Linux finally catching up to AmigaDOS.

    1. Re:nothing new here by Anonymous Coward · · Score: 0

      Yep. I have 16GB of ram on a database machine here with a smaller working set. Reads rarely come from the physical disk.

    2. Re:nothing new here by MostAwesomeDude · · Score: 1

      This code prefers to flush as little as possible; sync() doesn't do anything. That's the "new."

      --
      ~ C.
    3. Re:nothing new here by rthille · · Score: 1

      That's the "wrong". Because when the system crashes all the writes that 'sync' should have put on stable storage are gone.

      --
      Awesome furniture, accessories and cabinetry in Santa Rosa, CA: http://humanity-home.com/
    4. Re:nothing new here by Anonymous Coward · · Score: 0

      And with Windows, would it flush basically every file that changed since startup to the hard disk on shutdown?

    5. Re:nothing new here by darkwhite · · Score: 1

      RTFA.

      --

      [an error occurred while processing this directive]
    6. Re:nothing new here by darkwhite · · Score: 1

      Read the fucking article.

      --

      [an error occurred while processing this directive]
  19. 1TB of RAM is available today in a server by sf_basilix · · Score: 1

    I believe Sun has a server that can do 1TB of memory.

    1. Re:1TB of RAM is available today in a server by thinduke · · Score: 2, Informative

      IBM p595 can have 1TB of RAM too. And yes, they run Linux.

    2. Re:1TB of RAM is available today in a server by thatskinnyguy · · Score: 2, Informative

      Something like this one?

      --
      The game.
    3. Re:1TB of RAM is available today in a server by Nearspace · · Score: 1

      "or up to 2TB of DDR2 memory running at 400 MHz"

      fascinating.

    4. Re:1TB of RAM is available today in a server by pedrop357 · · Score: 1

      Indeed, as do the System i 595s (yeah, same hardware as the already mentioned p595).
      I don't know about AIX and Linux, but I don't believe i5/OS can actually access the entire 2TB max of the i595.

      Assuming that memory limitations follows the same limitations as processors, a single partition would be able to access at least 1TB. Right now, the 595 will go up to 64 way, but i5/OS partitions have a limit of 32 processors. I'm assuming memory would be similarly limited. Still (2) 32-way 1TB machines would be nice (and unbelievably expensive).

      The p/i570 is not too shabby with a 768GB limit.

      On a side note, does anyone else think IBM should just consolidate the p and i systems. Perhaps call is "System pi" and come up with a bunch of goofy marketing related to pi? IE., Have your pi and eat it too-show some guy eating pie while his 'pi' system is up and the wintel people :P are dealing with outages. "System pi"-the possibilities are endless. Stuff like that?

    5. Re:1TB of RAM is available today in a server by thinduke · · Score: 1

      On the other hand, I've never seen a single OS using that much memory. These machines are meant to be, and usually are, partioned. I believe the largest RAM I've seen allocated to a partition was about 64 GB.

    6. Re:1TB of RAM is available today in a server by Anonymous Coward · · Score: 0

      The Teras supercomputer at Sara (www.sara.nl) had 1 TB of memory. They did not run it as one single system image often, but they could and did a few times. The system was brought online in 2000-2001, and was planned to be removed in 2007 (http://tweakers.net/nieuws/46929/ibm-gaat-nieuwe-supercomputer-voor-sara-bouwen.html). It's still so sad SGI is no longer with us, they really were so far ahead of the game.

      .

    7. Re:1TB of RAM is available today in a server by pgfault · · Score: 1

      The technology is already there. SGI's Altix 4700 (cc-numa) "Scales to 512 sockets or 1024 cores system size and as much as 128 TB globally addressable memory." http://www.sgi.com/products/servers/altix/4000/features.html

      Yeah, that's a bit more than 1TB. Imagine a Beowulf... Wait a minute... Imagine a RAM disk.

    8. Re:1TB of RAM is available today in a server by ckaminski · · Score: 1

      Huh? SGI has been beaten down, but it is far from dead.

  20. 1TB RAM! by nabil2199 · · Score: 1

    so now we can run solaris

    1. Re:1TB RAM! by ls+-la · · Score: 1

      so now we can run vista There, fixed that for you.
  21. Didn't someone say once... by michaela · · Score: 1

    that 640GB should be enough?

    (Yes, I know he denies actually saying it, but we all know it's true anyway.)

    --
    That is all.
  22. What about copy-on-write for executables? by Enleth · · Score: 3, Interesting

    I'm using regular ramdisks initalized with data on bootup, composited with temporary, empty disk partitions using unionfs and synchronized back to their real partitions on powerdown, so that I have an extremely fast read time for most things contained on such a disk and conventional write-reread times. However, the problem is that for the upper layers of the kernel, those ramdisks are not RAM at all, just some other block device around - and when it comes to loading executables and libraries, they are copied, well, from memory to memory. What's missing is some way to tell the damn thing to use the data pages that already are there and issue a copy-on-write only when required. If this mechanism can do that - well, I'll be in as soon as they make it a little bit more fault-tolerant.

    --
    This is Slashdot. Common sense is futile. You will be modded down.
    1. Re:What about copy-on-write for executables? by Higman · · Score: 1

      "execute in place" is the name of the kernel option, IIRC.

      --
      -- [insert sig here]
    2. Re:What about copy-on-write for executables? by Enleth · · Score: 1

      AFAIR it is only available for ext2 as of now - not as a global kernel option or something like that. That's a good starting point, but not very useful for me right now.

      --
      This is Slashdot. Common sense is futile. You will be modded down.
    3. Re:What about copy-on-write for executables? by Wesley+Felter · · Score: 1

      Try tmpfs instead of a ramdisk.

  23. How is this different.... by wowbagger · · Score: 1

    How is this different from the already existing kernel VFS buffer store, other than for the repopulation at startup?

    Could you not accomplish this much more simply by having a process read all the blocks in a given block device at startup, thus faulting everything into the kernel buffer cache?

    1. Re:How is this different.... by arcade · · Score: 1

      It doesn't guarantee to sync your data to disk, only to the ramdisk. It will _Attempt_ to sync the data to disk, but it won't block to do so.

      This means that both all your read and all your write operations will go splendidly fast.

      It also means that you lose if you have a sudden powerloss. But, in many situations, that might actually not matter so much compared to the speed advantage you get out of this.

      --
      "Rune Kristian Viken" - http://www.nwo.no - arca
    2. Re:How is this different.... by Daniel+Phillips · · Score: 1

      ...this means that both all your read and all your write operations will go splendidly fast. It also means that you lose if you have a sudden powerloss. With dual power supplies connected to independent UPS units, how are you going to have a sudden power loss?
      --
      Have you got your LWN subscription yet?
  24. Cache as RAM, RAM as hard disk by doojsdad · · Score: 1

    Just get rid of the external hard disk as a storage mechanism all together. Use the RAM as the 'hard disk', create a large L3 cache on the CPU that directly caches the RAM, and the L1 and L2 cache can cache the L3 cache. No problem.

    1. Re:Cache as RAM, RAM as hard disk by exley · · Score: 1

      Until the power goes out or a reboot is needed... :)

    2. Re:Cache as RAM, RAM as hard disk by Anonymous Coward · · Score: 1, Funny

      Don't forget to add a racing stripe. It will make it go faster too.

    3. Re:Cache as RAM, RAM as hard disk by darkpixel2k · · Score: 2, Interesting

      Use a large geographically distributed cluster with the ability to pxe boot off each other.

      Then a power outage wouldn't be an issue. Power comes up, machine PXE boots off a machine in a neighboring town, state, country, whatever.

      I know--not really feasible, but you'd be the king of basement dwellers if you could pull it off...

      --
      There's no place like ::1 (I've completed my transition to IPv6)
    4. Re:Cache as RAM, RAM as hard disk by MrNemesis · · Score: 1

      Geographically distributed? Basement dwellers usually only have the one basement, what with only having one mother. I, for one, wouldn't welcome cloning my matriarchal overlord.

      --
      Moderation Total: -1 Troll, +3 Goat
  25. Not quite understanding... by Junta · · Score: 1

    The analysis thankfully makes a comparison to the IO caching that happens nominally. The distinction seems to be that this 'innovation' makes calling 'sync' a lie. That just doesn't seem like a good thing. It seems a roundabout way to make sync a lie as well.

    I put in 16 GB of ram in a system, and operations are quite snappy, the disk cache happily filling and draining, and it feels more or less like a ramdisk system, once the data has been read into memory the first time on read operations. Sure, sync takes an ungodly amount of time, but that only happens when something wants to make damn sure the system is ready to tolerate an unfortunate event after something important happens.

    --
    XML is like violence. If it doesn't solve the problem, use more.
    1. Re:Not quite understanding... by raxx7 · · Score: 1

      1 This device will actively pre-load your entire disk into ram, a normal filesystem won't.
      2 Event without sync(), a normal filesystem usually has limits on how many pending data it keeps, after which it'll start throtling the application's write requests. This device hasn't any.
      3 Event without sync(), a normal filesystem retains some ordering when it writes data to the disk. Keeping that order requires more RAM to keep the pending data and a less efficient use of disk I/O. This device keeps no order.

      Of course, the reason of (2) and (3) is that said normal filesystems try to minimize data loss and keep themselves consistent in case of an unexpected failure.
      With this device, an unexpected failure may very well yield a filesystem corrupted beyond any recovery.

    2. Re:Not quite understanding... by Junta · · Score: 1

      1) I prefer the userland approach of PreLaunch. A couple of fatal problems with a pre-load of my 'entire' disk are the fact that my memory is limited relative to disk space, and even it if weren't, I'd probably start trying to use my system so soon after boot up, that it probably wouldn't have cached the data I wanted yet anyway. PreLaunch attempts to identify and prioritize (my understanding) what gets loaded, so that the first stuff to the disk cache is the most likely to be used.

      2 & 3 make some degree of sense, but I wouldn't choose that tradeoff. Particularly as SSD technology improves and ultimately may render the point nearly moot (latencies will drop to a reasonable amount, not probably within an order of magnituted of system memory, but tons closer than spinning disks, and close enough that I would guess such esoteric measures as this extend beyond the point of diminishing returns.).

      --
      XML is like violence. If it doesn't solve the problem, use more.
    3. Re:Not quite understanding... by raxx7 · · Score: 1

      I agree.

      As many others, I don't find this tool very interesting.
      The writeback mechanism lacks any notion of write barriers or whatsoever and therefore the information on disk is very likely to become *extremely* corrupted in case of an unexpected system crash.
      Therefore, I find it unusable for any data I want to keep on disk.

      For data I don't want to keep on disk.. we already have ramdisk and tmpfs.

    4. Re:Not quite understanding... by Daniel+Phillips · · Score: 1

      The distinction seems to be that this 'innovation' makes calling 'sync' a lie. Not at all. By calling sync you tell ramback to be sure to get that data onto disk before power goes out.
      --
      Have you got your LWN subscription yet?
  26. As the developer puts it: by mac1235 · · Score: 1

    "You just need to believe in your battery, Linux and the hardware it runs on. Which of these do you mistrust?"

    1. Re:As the developer puts it: by Hatta · · Score: 1

      All of them.

      --
      Give me Classic Slashdot or give me death!
  27. Give it three or four years, I'd say. by jcr · · Score: 1

    We have desktop systems now that can go up to 32GB RAM, so 1TB isn't that far off.

    -jcr

    --
    The only title of honor that a tyrant can grant is "Enemy of the State."
  28. Not so far off by Guspaz · · Score: 3, Interesting

    Current high-end server boards support up to 64GB of RAM (16 slots, 4GB DIMMs).

    By Moore's Law, we should hit 1TB in a high-end server 6 years, high-end desktops (assume 8GB of RAM, currently selling for $180 CAD) in 10.5 years, and the average midrange desktop (assume 2GB of RAM, currently selling for $45 CAD) in 13.5 years.

    We might be a while off in consumer applications, but for high-end servers, 6 years doesn't seem very far away.

    1. Re:Not so far off by imsabbel · · Score: 1

      Quad CPU Opteron boards supporting 64 DIMMs arent unheard of.

      Sun had released a 8-socket board with 128 DIMMS (and claims future 4DB Dimm support -> 512 Gbyte RAM).

      --
      HI O WISE PRINCE. WHT TOOK U SO DAM LONG?
    2. Re:Not so far off by Guspaz · · Score: 1

      And there's one company providing 504GB external memory enclosures that behave like local memory via PCI-Express interconnects; that's going beyond high-end server and into the HPC arena...

      I'll give you the 64 slot Opteron board, though. Knock 18 months off the 6 years. Still doesn't change the consumer figures, in any event :P

    3. Re:Not so far off by geekoid · · Score: 1

      If only Moore's law applied. If it did we would have 64GB momory ships.
      Lets see:
      in 1981 I had 4K (WOOT!)

      18 months is 2 doubling every 3 years.
      it's 2008, thats 27 years.
      about, what 18 doubling?

      4096^18 is 1.0531229166855718669791802768367e+65 bits.

      which is:

      1.3164036458569648337239753460459e+64 bytes

      So much for mores Law..or rather your poor/lack of understanding of it.

      --
      The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
    4. Re:Not so far off by matt21811 · · Score: 1

      Huh?
      18 doublings:
      0 - 4k
      1 - 8k
      2 - 16k
      3 - 32k
      4 - 64k
      5 - 128k
      6 - 256k
      7 - 512k
      8 - 1024k - 1MB
      9 - 2MB
      10 - 4MB
      11 - 8MB
      12 - 16MB
      13 - 32MB
      14 - 64MB
      15 - 128MB
      16 - 256MB
      17 - 512MB
      18 - 1GB

      A typical machine does indeed have very close to this amount of RAM.
      Moores law seems to fit almost perfectly even after 27 years. The guy was a genius.

    5. Re:Not so far off by Rudolf · · Score: 1

      Current high-end server boards support up to 64GB of RAM (16 slots, 4GB DIMMs).

      What's your definition of "high-end"?

      As noted in another post, HP, Sun, and IBM all sell servers today with 1TB or more of RAM.

    6. Re:Not so far off by Guspaz · · Score: 1

      4096^18 is 1.0531229166855718669791802768367e+65 bits.

      which is:

      1.3164036458569648337239753460459e+64 bytes

      So much for mores Law..or rather your poor/lack of understanding of it.


      Yeah, see, my "poor/lack of understanding of it" is that it DOUBLES 18 times, it doesn't get squared. Your first "doubling" is 4K * 4K (16MB), when in fact twice 4K is... 8K.

      Nice try. Come back after completing the fifth grade, at which point you'll also presumably be able to spell "Moore"

  29. Oh yea? by SeePage87 · · Score: 5, Funny

    Well I can do cock push-ups.

    1. Re:Oh yea? by BigDaddyOttawa · · Score: 1

      One is all you need.

      --
      Sig? SIG? We don't need no stinkin' sig!!!
    2. Re:Oh yea? by jfuredy · · Score: 1

      Well I can do cock push-ups. Yes, but can you drive a six inch spike through a 2x4 with your penis?
    3. Re:Oh yea? by waferbuster · · Score: 1

      [Chris Knight is trying to hit on Susan, a beautiful woman he finds in Professor Hathaway's house]

      Chris Knight: So, if there's anything I can do for you, or, more to the point, to you, you just let me know.

      Susan: Can you hammer a six-inch spike through a board with your penis?

      Chris Knight: Not right now.

      Susan: A girl's gotta have her standards.

      --
      I'm an individual! Just like everyone else!
    4. Re:Oh yea? by Cctoide · · Score: 1

      But can you do the freaking moonwalk?

      --
      "Let's face it, it's a good story. Accuracy would kill it."
    5. Re:Oh yea? by flanksteak · · Score: 1

      Yes, but only when dressed like a bear at a basketball game below an underpass.

    6. Re:Oh yea? by Synthaxx · · Score: 1

      Bouncing off your inflatable girlfriend does not constitute a push up.

    7. Re:Oh yea? by Anonymous Coward · · Score: 0

      How many?

    8. Re:Oh yea? by Epistax · · Score: 1

      I had mouthwash in my mouth! You owe me a wall you insensitive clod!

    9. Re:Oh yea? by Anonymous Coward · · Score: 0

      More than one?

  30. More things change, the more they stay the same... by Anonymous Coward · · Score: 0

    Anyone remember RAM disks from the DOS days? This was the same thing, when we had excess RAM, we would load files into memory. Next, I bet someone is going to tell me that thick-client is more efficient than thin-client...

  31. Video Streaming Server by JoeRandomHacker · · Score: 3, Interesting

    Check out the specs on the Motorola (formerly BroadBus) B-1 Video Server:

    http://www.motorola.com/content.jsp?globalObjectId=7727-10991-10997

    Sounds like a good use for a terabyte of RAM to me.

    Disclosure: I currently work for Motorola, but I don't speak for them, and don't have any involvement with this product beyond salivating over it when it was announced that we were buying BroadBus.

    1. Re:Video Streaming Server by Anonymous Coward · · Score: 0

      Wow. 80 Fibre ports. We don't even have that many ports total in all of our fibre switches combined.

  32. We'll be there soon enough. by darkmeridian · · Score: 2, Interesting

    Ten years ago, my PC had 8 megs of system RAM. My laptop now has four gigs of RAM. In ten more years, I am sure we'll have a terabyte of RAM.

    --
    A NYC lawyer blogs. http://www.chuangblog.com/
    1. Re:We'll be there soon enough. by RicktheBrick · · Score: 1

      Memory has made very little progress in the last 10 years. One Gigabytes sticks were being mass produced in 1999. It is still very expensive to buy a memory sticks larger than 1 gigabyte. At today prices it would cost over $30,000 for a Terabyte of memory. If progress would have been the same as it was in the nineties than we should be buying at least 256Gbytes sticks today. If ram memory could be loaded at the rate of 100 Megabytes per second than it would take more than 2.77 hours to fill it up. I would think that it would be a very long boot process even at that very fast speed. It would lead to most people leaving their computers on all the time. Artificial Intelligence could take up a lot of memory if a dictionary and encyclopedia with a large index of every significant word were include in memory.

    2. Re:We'll be there soon enough. by cnettel · · Score: 1

      They were massproduced in 1999, but the sweetspot for a new stick was around 128 MB, at about 8 times today's cost.

  33. take it to the next step... by ecloud · · Score: 4, Interesting

    If you are planning on having a few minutes' worth of UPS backup then why would you need to write to the hard drive continuously? Keep the hard drive spun down (saving power). If the system is being shut down, or AC power fails, then spin up the drive and make a backup of your ramdisk, thus being ready to restore when the power comes back up.

    Next step beyond that: stop using a filesystem at runtime. Just assume your data can all fit in memory (why not, if you have a terabyte of it?) This simplifies the code and prevents a lot of duplication (why copy from RAM to RAM, just to make the distinction that one part of RAM is a filesystem and another part is the working copy?) But you will need a simple way to serialize the data to disk in case of power-down, and a simple way to restore it. This does not need to be a multi-threaded, online operation: when the system is going down you can cease all operations and just concentrate on doing the archival.

    This assumption changes software design pretty fundamentally. Relational databases for example have historically been all about leaving the data on the disk and yet still fetching query results efficiently, with as little RAM as necessary.

    Next step beyond that: system RAM will become non-volatile, and the disk can go away. The serialization code is now used only for making backups across the network.

    Now think about how that could obsolete the old Unix paradigm that everything is a file.

    1. Re:take it to the next step... by Anonymous Coward · · Score: 0

      Now think about how that could obsolete the old Unix paradigm that everything is a file

      That is more of a human thing. It gives a way to organize the data into distinct segments. Then share those segments between applications.

      It could actually be more interesting. As allocating memory would be more like a fopen in crt or CreateFile for win32. Debugging could become more interesting as you could 'share' memory fairly easily. These sorts of things exist now. But delving even deeper into the file metaphore could be even more useful I think.

      What gets me is why a HD with nearly 500GB on it has a 8MB RAM cache? That bad boy should be a 512MB cache or more! RAM is ultra cheap these days and putting paltry amounts of RAM is silly.

    2. Re:take it to the next step... by veso_peso · · Score: 1

      reading the summary the I-RAM came to my mind. They should try again with an updated version. With the current DDR2 prices and fast PCI-E slots it would be a pretty fast solid-state drive.

    3. Re:take it to the next step... by tepples · · Score: 1

      why copy from RAM to RAM, just to make the distinction that one part of RAM is a filesystem and another part is the working copy? Revision control.

      The serialization code is now used only for making backups across the network. Provided that the telcos ever let networks get that fast, particularly in the case of home or mobile installations.
    4. Re:take it to the next step... by ecloud · · Score: 1

      why copy from RAM to RAM, just to make the distinction that one part of RAM is a filesystem and another part is the working copy? Revision control. Yeah but some in-memory techniques could be invented for that.
    5. Re:take it to the next step... by bhima · · Score: 1

      The i-RAM connects to a single SATA I port. And only gets its power from the slot.

      --
      Nothing in the world is more dangerous than sincere ignorance and conscientious stupidity.
    6. Re:take it to the next step... by SatanicPuppy · · Score: 1

      I guess as long as we're imagining 1TB of RAM, we might as well imagine hard drives that can write 1TB in a couple of minutes...You'd need a STR of 3.5GB/s or better (to write a TB to disk in 5 minutes), and thats about 60 times the current rate.

      Seems a bit like masturbation to me...If you've got a TB, just use it as volatile storage, write the stuff you want to keep to a HDD, and let the rest evaporate if the power goes down.

      --
      ad logicam Claiming a proposition is false because it was presented as the conclusion of a fallacious argument.
    7. Re:take it to the next step... by MostAwesomeDude · · Score: 1

      You're assuming that every page of that RAM is dirty, which is probably not a safe assumption. (Well, I mean, it's safe, but it's not realistic.) Also a modern enterprise UPS can give you twenty minutes, easily. If we assume that only two thirds (66%) of the pages are dirty, then our rate comes down to ten times your estimated max throughput of 60MB/s, which is 600MB/s and could be matched by a RAID array. Suitable for the home, no, but definitely possible in an enterprise scenario. (Also my numbers are very conservative; I'm sure that many businesses have much more powerful backup power supplies.)

      --
      ~ C.
    8. Re:take it to the next step... by SatanicPuppy · · Score: 1

      Well, just speaking of where I work right now, we have about 8 hours, so yea, certainly. Still, it's sustained transfer, which would certainly be hard to match for a TB of data, even on a big sexy RAID.

      Better to treat the data as volatile and not have to hope the machine recognizes it's going to be out of power in time to backup critical data.

      --
      ad logicam Claiming a proposition is false because it was presented as the conclusion of a fallacious argument.
    9. Re:take it to the next step... by Anonymous Coward · · Score: 0

      You don't only need to protect yourself against power outages, you need to protect yourself against stupid OSes. I think I have experienced the BSOD too much to trust my hard disk in RAM. Yes, even Macs get kernel panics.

    10. Re:take it to the next step... by Anonymous Coward · · Score: 0
      This assumption changes software design pretty fundamentally. Relational databases for example have historically been all about leaving the data on the disk and yet still fetching query results efficiently, with as little RAM as necessary.

      ...
      Next step beyond that: system RAM will become non-volatile, and the disk can go away. The serialization code is now used only for making backups across the network.

      ...
      Now think about how that could obsolete the old Unix paradigm that everything is a file.

      It sounds like you are suggesting the mere presence of 1TB of RAM would present a fundamental change in the trade-offs between memory and disk, requiring a reevaluation of file systems and software in general. I disagree.

      In computing, the idea of having a continuum of storage technologies that balance cost, access time, transfer speed, persistence, cache control, etc, is a fundamental concept in which the number of layers (e.g. cpu internal cache, external cache, memory, disk, tape) has increased over time and extended into new domains including network and application layer caching. The paradigm of Unix files has adapted to numerous changes to those hierarchies over nearly 40 years . And, there is no reason to believe there will be a substantial change in the structure of storage hierarchies in the near future. If folks in the future have 1TB of RAM, then they will are likely to have something like 250TB of fast local storage media as well.

      Databases are on disk for good reason, which is that it is cheaper to store more data on disk. Say you want to have 50 blue ray movies available for playback from your storage (without physically handling media). Or 300 hours of HD content for reasons we cannot imagine yet (well, there's always porn). Or imagine the databases at a large bank or government institution. Perhaps 3D video comes along some day. Who knows. But we know they are going to just get bigger. Information expands into the available storage fairly quickly.

      Don't get me wrong. I think its a good idea to rethink our usage of storage hierarchies. I like the idea of replicating small databases to the RAM of geographically distributed computers. However, we don't need to wait for 1TB of memory on a desktop. We can do that right now if we use our computing power more efficiently by rethinking paradigms.
      offtopic:
      For the typical corporate computer user, I think there is now sufficient desktop computing power (cpu/memory) available for the typical problems being solved. It was not always this way. For example, it used to take minutes to print a document. Now it takes seconds. So rather than more memory, I think we'll get the most bang for our buck with better software (and increased network bandwidth and connectivity).

    11. Re:take it to the next step... by the_ed_dawg · · Score: 1

      If you are planning on having a few minutes' worth of UPS backup then why would you need to write to the hard drive continuously? Keep the hard drive spun down (saving power). If the system is being shut down, or AC power fails, then spin up the drive and make a backup of your ramdisk, thus being ready to restore when the power comes back up.
      DRAM consumes roughly 10 W/GB when banks are put into standby mode. A disk consumes 5-15 W, depending on the rotational speed. Power is the limiting factor for 1 TB of RAM. It would take ~10 kW/TB. Until you can significantly drop the power consumption of memory, there's no way you get close to 1 TB. Even at a 100x reduction in power, you're still talking about 100 W/TB.
      --
      There are two types of people: those prepared for the zombie apocalypse and those who will be eaten.
    12. Re:take it to the next step... by Daniel+Phillips · · Score: 1

      If you are planning on having a few minutes' worth of UPS backup then why would you need to write to the hard drive continuously? Keep the hard drive spun down (saving power). If the system is being shut down, or AC power fails, then spin up the drive and make a backup of your ramdisk, thus being ready to restore when the power comes back up. Good point. The main reason for continuous flushing to disk is to keep the dirty cache flush window as small as possible in case line power does go out. But since you know the window is big enough for the worst case, then why not just suspend writeback entirely until needed? This probably deserves to be a driver option.

      One very small reason for keeping the disk spinning: the most common failure mode for a disk is quite possibly failure to spin up.
      --
      Have you got your LWN subscription yet?
    13. Re:take it to the next step... by Apocros · · Score: 1

      that product would be so much more useful if it used ECC memory.

      --
      "onward!" cried the copper man, little knowing brass corrupts...
    14. Re:take it to the next step... by shapor · · Score: 1

      If you are planning on having a few minutes' worth of UPS backup then why would you need to write to the hard drive continuously? Keep the hard drive spun down (saving power). If the system is being shut down, or AC power fails, then spin up the drive and make a backup of your ramdisk, thus being ready to restore when the power comes back up. The UPS might not last long enough to copy all the data out. The Violin 1010 in the example is a 504GB RAM disk, which would take over an hour to copy to the fastest SATA disks (516096 MB / 100MB/s / 60s/min = 86 minutes). Sure, you could use an array of disks but that is only going to chew through the UPS faster, and the RAM disks will only get bigger. Either way "a few minutes" of UPS isn't enough.
  34. The sync is a lie!! by Anonymous Coward · · Score: 0

    Anyway this sync is great,
    It's so delicious and moist...

  35. It's BEEN done, on Windows NT, since v. 3.51... by Anonymous Coward · · Score: 0

    "Given that the core components of an OS are only a few GB, even 8GB systems might be able to do this, today." - by 2nd Post! (213333) on Thursday March 20, @03:38PM (#22810564) Homepage They can, on Windows NT-based systems, since NT 3.51 iirc, in fact... done via SuperDisk &/or SuperVolume, by SuperSpeed.com (formerly EEC Systems):

    http://www.superspeed.com/servers/supervolume.php

    I wrote up an article for that companies' website whose ideas took them to a finalist position @ Microsoft Tech-Ed 2000-2002 iirc, in one of the harder (if NOT the hardest to win) ones to be in, SQLServer Performance Enhancement.

    APK

    P.S.=> That was while I was being paid to create their SuperCache/SuperCache II tuner code, which started out as a free addon to it, & then I sold they the code which made it up to 40% more efficient (because it reminded me of tuning DOS' SmartDrive, lol, & had parameterization possiblities for the driver init. stage)...

    Anyhow, the article I wrote (for they, AND later, CENATEK, about their RocketDrive SSD) was a good side thing to "turn them on to" (back in 1996 in Windows NT-Pro Magazine no less to a GREAT review by Mr. John Enck, technical editor then & now (since they are Windows.NET magazine OR WindowsIT Pro mag now, not sure anymore)...

    & it worked - for DATABASING people, & other things galore (serving up websites, etc. & just general HUGE reductions in latency, in almost anything you can imagine to apply them to, really)... apk

    1. Re:It's BEEN done, on Windows NT, since v. 3.51... by awrowe · · Score: 1

      Bully for you!

      Now all you need is Chuck Norris to use it and you will be truly l337.

      --
      A.I. Research. The peculiar science in which we know the question and we know the answer, but can't show the working
    2. Re:It's BEEN done, on Windows NT, since v. 3.51... by Anonymous Coward · · Score: 0

      "Bully for you!" - by awrowe (1110817) on Thursday March 20, @04:47PM (#22811638) No, just pointing out this is NOT "original thought" on the Linux crew's part & all that, as far as a mirroring-backing to disk system, & that it's existed on Windows NT-based OS since around 1995/Windows NT 3.51 or so...

      ----

      "Now all you need is Chuck Norris to use it" - by awrowe (1110817) on Thursday March 20, @04:47PM (#22811638) I just wrote a complete account based on my experiences as having been part of such a solution for Windows, more than a decade ago now, that has done well FIRST starting its life as a freeware, & going commercialware & done well is all.

      I was proud to have contributed to such an idea, & others like it (for both CENATEK & SuperSpeed.com), more than a decade ago, & it's nice to see others FINALLY coming around & "seeing the light"... only now, lol!

      ----

      Heck, & about Ramdisks in general, & iirc, MAINLY SSD's (Solid-State Disks)? Even "Penguin #1" Linus Torvalds, is excited about them:

      (& for the RIGHT reasons too, imo as well, which IS the same, & just common-sense I felt & have for more than a decade now on PC's of all types, home use to servers!)

      ====

      Torvalds on where Linux is headed in 2008:

      http://www.itnews.com.au/Feature/4052,torvalds-on-where-linux-is-headed-in-2008.aspx

      "One of the things I personally am really interested in is the move over to SSD (solid-state drives) disks. Im a huge believer in reducing latency, and some of the better SSDs are changing the whole game when it comes to access latency, which in turn has potentially big impacts on the kernel and while they are currently expensive enough to be a pretty minor player, that is certainly looking to change in 2008 and later." - LINUS TORVALDS

      Linus Torvalds, Torvalds on where Linux is headed in 2008 (article by Charles Babcock)

      ====

      SSD's, & EVEN Software-Based Ramdisks/Ramdrives (given a system w/ enough RAM, especially ones w/ OS's that are 32-bit/4gb RAM addresseable MAX in nature, which IS the majority for more than a decade now) that has more than 4gb of RAM on it, but using a 32-bit OS?

      Ramdisks (both software AND hardware ones) still so no less work great for reducing latency & seeks/access of files!

      Especially for reads, on ALL types/kinds (from true SSD's, to FLASH-MEMORY based ones, to software ramdrives)...

      (Reads ARE better on TRUE Solid-State disks like the CENATEK RocketDrive, or Gigabyte IRAM, OR HyperOS III series units than on FLASH-MEMORY based ones, by far, on writes especially which is slowest afaik on FLASH-MEMORY based "SSD's", which imo, for performance' sake, are not anywhere NEAR a true SSD especially on WRITES!)...

      APK

  36. Billy Ram by echogen · · Score: 0, Troll

    Don't worry about your 1TB RAM... Microsoft would have the right tools to overflow it by that time!

    --
    mmmmm.....
  37. Windows 3.1 can't even address that much memory by SlappyBastard · · Score: 1

    Geez. Why would I ever need it!?!

    If you ever want a fast OS, run Windows 3.1 on a 300 MHz P2 with 64 Mb of RAM. Blazing fast.

    Let's get to 128 Gb of RAM before we start pimping 1 Tb.

    --
    I scream. You scream. I assume that means we're both acquainted with the problem. We proceed.
  38. Am I alone in thinking? by UnknowingFool · · Score: 1

    The first thing I thought of was pr0n. Is that so wrong?

    --
    Well, there's spam egg sausage and spam, that's not got much spam in it.
  39. IBM System p can have 2 TB of RAM by The+Mad+Duke · · Score: 1

    The IBM System p model 595 can hold 2 TB of RAM with 64 processors. I just got done installing on 7 of these boxes which had 1 TB in each. These servers can run AIX or Linux, but you gotta use AIX if you need lots of memory in a partition. FYI !
    - The Mad Duke

    --
    -The Mad Duke
  40. It's easy to use a TB of RAM by gujo-odori · · Score: 0, Troll

    Want to use a TB of RAM? It's simple - just install Vista and that terabyte'll be used up before you can say "640K ought to be enough for anybody" :)

    1. Re:It's easy to use a TB of RAM by gujo-odori · · Score: 1

      Troll?! Troll?! The mods have one or more of:

      -No sense of humor
      -No experience with Vista

      Of course, using a terabyte is a humorous exaggeration, but Vista is not exactly known for being memory-stingy, not even in comparison to previous Microsoft products. And I'm a troll for humorously pointing out that truth? Mmmmmkay.

  41. Re-inventing the disk cache wheel by flyingfsck · · Score: 3, Interesting

    Geez, I wrote a floppy disk cache driver as a programming homework exercise in the 1980s. Talk of re-inventing the wheel...

    --
    Excuse me, but please get off my Pennisetum Clandestinum, eh!
  42. Stop thinking in terms of caching? by Doctor+Faustus · · Score: 1

    When I started my programming career (1997), my employer had 3-4 servers, the newest of which had a RAID array of Micropolis drives totaling a staggering 18GB for the volume. The older servers had 6GB and 9GB volumes. While we did have to take a bit more care then than now to conserve space, that was enough for an awful lot of tasks.

    If I'm reading the specs right, you can now get parts for a PC with 12GB of RAM (mixing DDR2 and DDR3) from NewEgg for something on the order of $1000. While I wouldn't suggest making a file server that just works in RAM (what if you lose power?), what about databases? Modern database servers write to the transaction log (on disk) before they do anything else so that their caching logic can write the changes themselves to disk whenever it's convenient. Why not try a database where the tables themselves aren't on disk at all? Put BLOB fields into actual files, and keep the transaction log on disk (RAID 1), but otherwise the database only exists in RAM. If you need to restart, you just process all the transactions that happened since the last complete backup.

    Now, this wouldn't be big enough for everything, but it would be big enough for an awful lot of jobs (stop and think for a minute about just how much information 12GB really is), and it would allow quite good performance on some pretty cheap hardware. And who knows? When you start wanting to support more than will fit in RAM, maybe virtual memory will turn out to be a better model than disk caching.

  43. You can get 2TB in a server today ... by Anonymous Coward · · Score: 0
  44. Finally, by wozzinator · · Score: 1

    I can bucket sort over 1099511600000 integers in it's worst case run.

    --
    BSD is for people who love Unix, Linux is for people who hate Microsoft.
  45. Yes I could Use it. by jshriverWVU · · Score: 1

    During games or analysis I could store the entire 3-6men endgame table bases in memory and get rid of the bottleneck that a HD is when doing a lot of searching in a 1.5 TB dataset. So yes, it could be useful to some people. Perhaps not mom and pop who check email, but researchers who crunch large datasets.

  46. Fuzzy difference by Tablizer · · Score: 1

    Perhaps its time to not make a hard distinction in software between RAM and disk. I know that RAM caching sort of does this, but software still assumes a difference between the two. It may be time to come up with a "generic storage model" of some sort that does not assume RAM or disk. This way when one or the other changes, or an intermediate option (flash RAM?) comes along, the software will be ready. Of course, there may be some overhead in putting an abstraction layer between storage calls, but as time goes on, we usually march up the abstraction ladder anyhow.

    The closest thing I worked with to this was Clipper. It would automatically cache data tables in RAM if they fit, otherwise use regular disk-based indexing/searching (most RDBMS do this now, but it is hard "see" it happening because they're on a busy server in a different room). I just "talked" to the tables and didn't worry about whether they were using RAM or disk or a combo because the internals managed that. And they were pretty fast too if lots of a table could be cached.

    1. Re:Fuzzy difference by Lunatrik · · Score: 1

      You mean.. I will finally be able to stop explaining to people the difference between "Memory" and "Hard Drive"?
      Going to go hop into my DeLorean, see you guys in about 15 years (suckers!)

    2. Re:Fuzzy difference by Tablizer · · Score: 1

      You mean.. I will finally be able to stop explaining to people the difference between "Memory" and "Hard Drive"?

      But you'll still have to explain the difference between temporary and permanent files/tables/rows. Sorry.

  47. Process size limit question by smorken · · Score: 1

    Does this require multiple processes to run? From what I understand, current Linux kernels have a ~2GB process size limit.

    1. Re:Process size limit question by gilboad · · Score: 1

      3GB is a 32bit-only limitation. *
      AFAIR 64bit processes have a theoretical memory space of ~63bits.

      - Gilboa
      * Modifiable by changing CONFIG_PAGE_OFFSET and/or __PAGE_OFFSET.

  48. Systems with 1TB of memory are for sale now by Anonymous Coward · · Score: 0

    We haven't yet reached a point where systems, even high-end boxes, come with a terabyte of installed memory


    Yes we have. You can buy a system with 8 terabytes of RAM
    here

  49. Massive typo revealed by Drinking+Bleach · · Score: 1

    Although it is common to speak of "GNU Emacs", it has been revealed that it was intended to be "GNU/Emacs"; no, not in the same sense of GNU/Linux, but rather to speak of them being one and the same. All it is missing now is a kernel, but I'm sure something will show up to allow GNU/Emacs be a standalone operating system.

    1. Re:Massive typo revealed by webmaster404 · · Score: 1

      No, it should be Emacs/GNU/Linux/X/Xterm/Bash/Zsh/Ksh/Csh

      --
      There is no "disagree" moderation, and troll, flamebait and overrated are not valid substitutes
  50. cachefs by argent · · Score: 2, Informative

    A fully caching file system that could be layered on top of your network or disk file system. Sun did this for dataless workstations and it worked pretty well.

    Another historically interesting ram file system was the Amiga Recoverable RAM Disk. You coudl even boot off it.

  51. Floating point voxel octree Google Earth by heroine · · Score: 3, Interesting

    Still think the floating point voxel octree version of Google Earth will use that memory before any ramdisk gets it.

  52. HP Superdome supports up to 2TB RAM by ryanisflyboy · · Score: 1
    Mainframes would be a great example of using technology like this. Current mainframes are amazingly capable (and expensive) devices. There is a reason they still sell them.

    Here are the details:
    http://www.hp.com/products1/servers/scalableservers/superdome/specifications.html

    With up to 128 CPUs, 2 TB of memory, 16 hard partitions and 32 GB/s of I/O bandwidth... I did an evaluation recently with the sx2000 chipset, very cool stuff - but in my opinion Linux isn't quite there yet.

    With the ability to take that 2TB of RAM, all hot-swappable, and run it in mirror-redundancy (1TB usable), you would have a very reliable and fast system.
  53. Less RAM by ThurstonMoore · · Score: 1

    Wouldn't this work with less RAM say 256-512MB and create a kind of virtual hybrid hard drive? That would really help the majority of users.

    1. Re:Less RAM by Daniel+Phillips · · Score: 1

      Wouldn't this work with less RAM say 256-512MB and create a kind of virtual hybrid hard drive? Yes.
      --
      Have you got your LWN subscription yet?
  54. The Crushing Truth: Linux by Anonymous Coward · · Score: 0

    Althouth I really like Linux and the free software, I think that we all have to accept the crushing truth.

    In these times it really doesn't matter if is launched KDE 35.0 or Gnome Vista, because while both environments (and others with less weight as IceWM) were worrying in confusing the user with a completely different aspect, Microsoft was consolidating his position as leader in the field of the operating systems of office, first with the operating system Windows XP (that have approximately 90% of the client operating system market) and with its advanced successor, the recently Windows Vista, that offers a new form to interact with its PC. Is faster, friendlier, and more secure.

    The reality is that Linux has little to offer the inexperienced user. The same novice that is seen disconcerted by the impossibility to do a simple one copy-paste between QT and GTK applications. Go out and ask to the people how they install a program that does NOT have packages for its distribucción (because each one has its own packege system, completely incompatible with the others and that requires the use of complicated commands). Still the packages of the same format as RPM, they cannot be installed equally in Mandriva or Suse.

    Then what we suggest to this user (that is just beginning in the Unix Word) is that he need to download the source code, go to the console, decompress it and compile it. How many they managed to do this? One of each a million, I have to say. We persist in THAT is the normal thing. ..nothing more further from the reality.

    Explain him why in his Ubuntu, Kubuntu or Fedora cannot see many web pages: he must download the Flash and the Java plugin, in order then to install them with complicated commands. Also make him know that he won't be able to listen its MP3, WMA and WMV files. Tell to the flaming buyer of a new AMD64 how he can play flash games.A shit.

    And the gamers? Obviously they'll return to windows, because even God can't use the hardware acceleration of the most modern graphics cards (besides, the drivers don't come in the distributions. ..becuase of the fucking freedom) and that games...just a few ones. By each Linux videogame we have 500 that run on Windows. And the few ones that run on Linux...Oh! Surprise!...Just Windows binaries on the CD, and you have to download the Linux version from a website. Finally the user return to the best option, the OS most used on home (all we know what OS is).

    The proof of the free software failure is seen also in the professional world, either in areas like electronic design (doesn't exist anything similar to Protel), architecture (the standard CAD -all we know wich one-only works on Windows), web design (something similar to Dreamweaver? Don't mention something like NVU, that not only is full of bugs, but also just have the 5% of the Dreamweaver features. Neither Bluefish, Quanta or similars...no one would face a complex project with such a primitive tools). DTP? Scribus is a good try (very immature) but Quark or InDesign are far batter. Flash content creation (A standard, and a flash player installed in the 99% of PCs)? It cannot be done on Linux.

    In the software development industry there's not a single decent RAD tool. Gambas seems to promise but for now is shit, Eclipse is a RAM eater (thanks Java) that only can be used with 2GB RAM, Kylix promised give the potential of Delphi to Linux, but it was discontinued because the developers hate to pay for licenses and they prefer to use a primitive tool, like KDevelop. And now that we talk about Borland tools, is not rare that programming gurus like Ian Marteens abandoned Delphi and C++ Builder and now prefer the most powerful system for software development: Microsoft Visual Studio.NET.

    A computer game developer would never develop free (as in free spech) games, because they have to eat and there's not a business model compatible with free software. The Linux users don't want free (as in free spech) games, t

    1. Re:The Crushing Truth: Linux by EEPROMS · · Score: 1

      The reality is that Linux has little to offer the inexperienced user.

      I used to be one of these inexperienced users then I went to a thing called a "community college " and learn't how to use computers including using Linux. Dont you hate how certain segments of the geek elite think just because a few users do not want to improve their computing ability that means everyone is the same. Your whole diatribe is one big stereotype and fails on so many levels it's not funny.

  55. Re:uh - there is at least one system with 1TB of R by SDF-7 · · Score: 1

    As can HP Superdomes. (I know for a fact there's a 1Tb one not far from me, 2Tb is possibly out there [the machine can do it, I just don't know personally if there's one extant.. surprise me if there isn't (see http://h20341.www2.hp.com/integrity/cache/342370-0-0-0-121.html) ]). It wouldn't at all shock me that IBM has machines in this class.

    This whole discussion is so PC-centric it is hilarious. Oracle will find a way to make their SGA take 1Tb if you let them.

  56. Mobile much? by tepples · · Score: 5, Insightful

    Now that it's 2008 and every new computer has a few gigs of RAM Handheld computers don't.

    There is no reason to write tiny apps in assembly anymore. Other than the fact that embedded systems outnumber PCs?
    1. Re:Mobile much? by LordOfTheNoobs · · Score: 1

      I agree. In all these discussions on what editor to use, we never get to hear about the embedded systems angle. Have you ever tried to bring up emacs on a wafer thin mp3 player? I think not. When it comes to embedded, vi is the only way to fly.

      I'm curious, how often do you bring up vi on your mp3 player?
      --
      M-x work-on-a-wafer-thin-mp3-player-mode

      --
      They're there affecting their effect.
    2. Re:Mobile much? by MikeFM · · Score: 1

      Your iPhone is more pimp than my computer of not to many years ago was. Sure for small devices small code matters a bit more than for full PCs but it doesn't matter near as much as it used to.

      --
      At what price learning? At what cost wisdom? The price is a man's peace of mind, and the cost is his life.
  57. I have so much ram by EEPROMS · · Score: 1

    I don't surf the internet, the internet surfs me.

  58. only 1Tb? by chegosaurus · · Score: 1

    We haven't yet reached a point where systems, even high-end boxes, come with a terabyte of installed memory

    FYI, the Sun M9000+ can be delivered with 2Tb of RAM which, should you so desire, can all be shovelled into a single domain chock full of Solaris 10 goodness.

  59. What's so 64-bit about 64-bit gaming? by tepples · · Score: 1

    I have 8 GB of RAM and rarely use more than four of it unless I'm playing a 64-bit game which eats it up (Crysis). I have another 64-bit game: Goldeneye 007. How much RAM does that take?
  60. Finite Element Analysis by CompMD · · Score: 1

    I suppose I could perform a full scale impact analysis of the Titanic hitting an iceberg in NASTRAN and then perform the CFD analysis to determine how fast it sank based upon fluid ingress flow rate.

  61. sounds like Puppy Linux by extraqwert · · Score: 1

    This is how Puppy Linux works, when running from the USB pendrive. Everything is in RAM, and saves to USB automatically every 30 minutes.
    But the thing is so small, 512 Mb of RAM is usually enough. No need for a Terabyte...

  62. Re:uh - there is at least one system with 1TB of R by Dammital · · Score: 2, Informative

    IBM's just-announced z10 mainframe, with 1.5 TB memory.

  63. Ahem, Daniel Phillips by Daniel+Phillips · · Score: 1

    Hi all,

    That would be Daniel Phillips with two ells.

    Regards,

    Daniel

    --
    Have you got your LWN subscription yet?
    1. Re:Ahem, Daniel Phillips by bhima · · Score: 1

      Don't feel bad, we don't do spelling here.

      --
      Nothing in the world is more dangerous than sincere ignorance and conscientious stupidity.
    2. Re:Ahem, Daniel Phillips by wild_berry · · Score: 1

      How nice of his evil twin to supply that correction!

  64. hrm by MrShaggy · · Score: 1

    Maybe a couple of beowulf clusters.

    --
    I have mod points and I am not afraid to use them.
  65. One Terabyte of RAM by Anonymous Coward · · Score: 0

    I used to work on Linux at IBM, where we did have machines capable of running with a maximum configuration of 2 terabytes of RAM.

    http://www-03.ibm.com/systems/p/hardware/highend/595/specs.html

    Typically, those machines would be partitioned into smaller logical partitions (LPARs), and I never saw any machine that had a maximum configuration anyway. But supposedly someone does have a 2 terabyte machine running Linux.

    So this isn't as far-fetched as one might think.

  66. 1001 tabs by langelgjm · · Score: 1
    --
    "Anyone who [rips a CD] is probably engaging in copyright infringement." - David O. Carson
    1. Re:1001 tabs by Rinisari · · Score: 1

      *headdesk* I can't believe I actually got someone to take the time not only to say they've opened 1001 tabs, but also do it and take a screenshot of it. You, sir, win at the Internet today.

  67. Speed vs tmpfs? by SanityInAnarchy · · Score: 5, Interesting

    How it seems to work:

    Actual "ramdisk" -- that is, like /dev/rd -- that is, appears as a block device. You can run whatever filesystem you want on it, but it's still serializing and writing out to... well, RAM, in this case. No sane way for the kernel to free space on that "disk" that's not actually used.

    How I wish it worked:

    No Linux that I know of has used an actual ramdisk in forever. Instead, we use tmpfs -- a filesystem which actually grows or shrinks to our needs, up to an optional configurable maximum size. It'll use swap if available/needed. It's basically a RAM filesystem, instead of a RAM disk.

    Even initrds are dead now -- we use initramfs. Basically, instead of the kernel booting and reading a ramdisk image directly to /dev/rd0, it instead boots and unpacks a cpio archive (like a tarball, but different/better/worse) into a tmpfs filesystem, and uses that.

    So, how I would like this to work is, use a tmpfs filesystem -- as I suspect it will be faster, and in any case simpler, than a ramdisk -- and back it to a real filesystem on-disk. The only challenge here is that it's not as deterministic -- it would be more like a cp than a dd.

    An even better (crazier) idea:

    Use a filesystem like XFS or Reiser4 -- something which delays allocation until a flush. In either case, it would take a bit of tweaking -- you want to make sure no writes, or fsyncs, block while writing to disk, so long as the power is on -- but you'll hopefully already be caching an obscene amount anyway, so reads will be fast.

    In this case, forcing everything out to disk could be as simple as "mount / -o remount,sync" -- or something similar -- forcing an immediate sync, and all future writes to be synchronous.

    Conclusion:

    Either of the two ideas I suggested should work, and could perform better than a traditional ramdisk. If it is, in fact, a simple disk-backed ramdisk (not ram filesystem), then it's both not as flexible (what if your app suddenly wants 50 gigs of RAM in application space?) and a bit of a hack -- probably a hack around traditional disk-backed filesystems not being able to take advantage of so much RAM by themselves.

    In fact, glancing back at TFA, it seems there are some inherent reliability concerns, too:

    If UPS power runs out while ramback still holds unflushed dirty data then things get ugly. Hopefully a fsck -f will be able to pull something useful out of the mess. (This is where you might want to be running Ext3.)

    Now, true, this should never happen, but in the event it does, the inherent problem here is that the ramdisk doesn't know anything about the filesystem, and so it doesn't know in what order it should be writing stuff to disk. Ext3 journaling makes NO sense for a ramdisk when the ramdisk itself knows nothing about the journal -- the journal is just going to slow down the RAM-based operation. Compare this to a sync call to XFS -- individual files might be corrupted, but all the writes will be journaled in some way, so at least the filesystem structure will be intact.

    This gets even better with something like Reiser4's (vaporware) transaction API. If the application can define a transaction at the filesystem level, then this consistent-dump-to-disk will happen at the application level, too. Which means that while it would certainly suck to have a UPS fail, it wouldn't be much worse than the same happening to a non-ramdisk device, at least as far as consistency goes. (Some data will be lost, no way around that, but at least this way, some data will be fine.)

    --
    Don't thank God, thank a doctor!
    1. Re:Speed vs tmpfs? by Shadow-isoHunt · · Score: 1

      There's a solution to your problems, it's called mknod. Prepare the file in ramdisk with dd, make the file special, and then use mdraid. The file can be synced to disks on the fly w/ mdraid, and it will appear as a normal block device so you can put whatever FS you'd like on it.

      man mknod


      Also, a loopfile may also fix the proposed issues.
      man losetup

      ;)

      --
      www.isoHunt.com
    2. Re:Speed vs tmpfs? by SanityInAnarchy · · Score: 1

      Erm... you seem to have just described a hack to achieve their solution; that is, a block-device-level solution. Except yours is worse; raid would attempt to write to both at once, right? The whole point here is to queue writes up (but keep writing) until power fails.

      I thought I'd explained why I think there are problems with any block-level solution, though?

      --
      Don't thank God, thank a doctor!
    3. Re:Speed vs tmpfs? by Shadow-isoHunt · · Score: 1

      It's not a "hack", any more than a swapfile is. And, md/dmraid will do asynchronous writes.

      --
      www.isoHunt.com
    4. Re:Speed vs tmpfs? by SanityInAnarchy · · Score: 1

      It's not a "hack", any more than a swapfile is.

      Swapfiles (or partitions, usually) are something the OS is designed specifically to be able to deal with, and are required by the fact that there's not actually enough RAM to accomplish the task. It's a hack around the fact that modern filesystems aren't designed for the scenario where you have terabytes of RAM and a UPS -- in other words, it's a hack around a software problem, rather than around a lack of hardware.

      And, md/dmraid will do asynchronous writes.

      You've got me there. Still, I call it a "hack" because I can't help but imagine it's not going to work as well as the system TFA describes -- and it does exactly the same thing.

      --
      Don't thank God, thank a doctor!
  68. not enough memory... by BlueshiftVFX · · Score: 1

    my wife just got a new Vista Laptop and against my better judgment, I recomended that one as the hardware was much better then the same priced XP laptop. So when we had it at home with all it's 2 gigs of memory, It did not have enough memory free to install the printer drivers with nothing else running.

    I haven't seen anything like this since MS orfice on a 486.

    and all this talk of addressing 1 Terabyte has got to bring to mind, "Why would anyone need 1 Terabyte of Ram?" (sarcasm)

    1. Re:not enough memory... by Tony+Hoyle · · Score: 1

      Stick SP1 on (just before upgrading to XP probably, but it's worth a try). It collapses the memory usage to 'only' about 700mb on an empty machine.

    2. Re:not enough memory... by Anonymous Coward · · Score: 0

      So when we had it at home with all it's 2 gigs of memory, It did not have enough memory free to install the printer drivers with nothing else running. Vista is a hog, but your anecdote is a little over the top. Assuming you are not just lying, I'm pretty sure there was something else going on with your wife's laptop to cause that "out of memory" error.
    3. Re:not enough memory... by BlueshiftVFX · · Score: 1

      totally honest here. while I am guessing there may have been something else going on, I have no idea what, cause I rebooted the machine, went into task manager and killed what ever I could that didn't seem important. and it still did it.

      I honestly don't know a lot about vista so far, but I had a better, and more enjoyable experience setting up a computer with Mandriva the other day. (aside from a few screens popping up with russian instead of english for some reason.)

    4. Re:not enough memory... by Anonymous Coward · · Score: 0

      That's just pathetic.

    5. Re:not enough memory... by IntlHarvester · · Score: 1

      The software probably has a bug where it's using a variable to check memory that's too small and overflows. (In other words a bug caused by too much RAM, not too little.)

      --
      Business. Numbers. Money. People. Computer World.
    6. Re:not enough memory... by ckaminski · · Score: 1

      Oh, like the WindowsXP bug that won't let you hibernate if you have 2GB of RAM in your laptop?

      Thankfully there's a hotfix for that...

    7. Re:not enough memory... by toadlife · · Score: 1

      I've seen that before with old educational software I support in labs at the school I work at. In one lab where they use several ancient programs, one pops an 'out of memory' error if the swap file was larger than 768MB and another pops an error if the swap file was smaller than 512MB. Neither program takes up more than 10MB of ram. It took me awhile to figure that one out.

      --
      I don't always use unix-like operating systems; but when I do, I prefer FreeBSD.
    8. Re:not enough memory... by IntlHarvester · · Score: 1

      The ancient CD-ROM repair manual for my ancient car has this problem, I ended up having to setup VirtualPC with only 64MB for it to run because anything more just errors out.

      --
      Business. Numbers. Money. People. Computer World.
  69. Single Level Store (SLS) by Anonymous Coward · · Score: 0

    You mean what IBM's been doing forever?

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

  70. 1TB of RAM? by AMuse · · Score: 1


    Actually, Some Linux Systems are already dealing with RAM on the Terabyte level. :)

    1. Re:1TB of RAM? by estevon07 · · Score: 1

      One word: virtualize Imagine 32 core Xeon CPU's with 1T RAM carved up into bite size guest chunks that can be supersized as resource requirements increase. Who can quote us the maximum CPU and RAM a 64bit OS can address? I know we're not due to be anywhere close for a while..

  71. Plz keep in mind.... by killmofasta · · Score: 1

    Please keep in mind, that the larger the memory pointer, the slower the program.

    When the first linux patch came out to use more than 1GB of memory, I applyed the patch, and experenced a significant performance hit, in terms of speed. It was a patch to make SAP run, and a gargantian database like that just goes faster, if its all loaded into RAM, so it becomes a bit better slug, instead of just a ugly slug. ( Do you get the feeling I dont like SAP? ). Suffice to say, the new extension, and the patch before it, are for specific tasks that can take advantage of it.

    If you have a ram intensive task, like SAP, its going to show some improvement. If you have a disk intensive task, or a processor intensive task, its probibly going to hurt your performance. Hence, GNU/Emacs, is probibly going to run slower. ( dear god, I think I have the 0.1 distrubution mag tape. )

    Windows with 4GB is slower, except for certain operations in Photoshop, and thats both the result of the coagulated slag of spegetti code, and the p*ss poor scheduler. I am going to get a look at the new memory fixes and see how well they work on the big ram box.

    1. Re:Plz keep in mind.... by amorsen · · Score: 1

      When the first linux patch came out to use more than 1GB of memory, As far as I know, Linux supported >1GB of memory as soon as the Alpha port was done. No special patch needed, and no slowdown. The only reason why you might have needed a patch is >1GB of memory with a 32-bit architecture. The solution is right there in the problem description.
      --
      Finally! A year of moderation! Ready for 2019?
    2. Re:Plz keep in mind.... by killmofasta · · Score: 1

      http://kerneltrap.org/node/2450/7217

      "The Problem:

      So, the basic problem here is, the kernel ( 2.6 ) can just address 1 GB of virtual addresses, which can translate to a maximum of 1 GB of physical memory. This is because the kernel directly maps all available kernel virtual space addresses to the available physical memory."

      "Solutions:

      http://web.archive.org/web/20020313185718/http://strasbourg.linuxfr.org/jl3/features-2.3-2.html

      "Originally HIGHMEM was called BIGMEM and BIGMEM seen the light in kernel 2.3.16."

      This is the Kernel patch I was talking about. The IA64 Kernel, that Alan Cox was the maintainer for SGI was nothing less than a brilliant peice of work, however it left the IA32 world behind, and a few linux vendors were left with the HIGHMEM patch, which slowed the machine's down due to having to use a segmented (1GB segment ) address space. It easily trimmed off 30% of the horsepower, but since it was running SAP, most of the horsepower was wasted anyway.

      The problem will be back when, for IA64, when the SAP database requirements grow beyound 16GB, and the MMU chips will need a diffrent type of patch.

      Dont think for a second, that both Alan Cox's work on the SGI/IA64 port was anything less that brilliant, nor that Andrea Arcangeli's work was anything less than brilliant either. It was an enhancement that came at a cost.

    3. Re:Plz keep in mind.... by amorsen · · Score: 1

      All the HIGHMEM and BIGMEM crap is for 32 bit. If you need >1GB for anything serious, go 64 bit. You have been able to since the mid 90's.

      --
      Finally! A year of moderation! Ready for 2019?
    4. Re:Plz keep in mind.... by killmofasta · · Score: 1

      It would have been nice of you to fork over the cash for the SGI memory. The client wasnt willing to run all SGIs, while the ram was $1,500 a gig. Given the time frame, we used a software patch, and maxed out the ram on a supermicro motherboard 1U w/ 32-bits. The performance was lackluster, but for another $25,000 per machine it would have been nice to run o2 boxes, with 8GB of ram, but the application was not supported on them. It was us or HP on a superdome. So, we bit the job, at 1/10 of the cost, and got about 70% of the performance. an SGI solution "If you need >1GB for anything serious, go 64 bit." would have cost a bit more than the superdome.

      "Armchair warriors often fail, And weve been poisoned by these fairy tales" -Don Henley

  72. Interestingly, I wanted to do this small at home by MikShapi · · Score: 1

    Several months ago when hard-drive-speed flash disks were not readily available and I was thinking how to build a no-moving-parts gamebox, I was considering making my fileserver a RAM server as well, export the RAM as disk over the network, then install the rest of the machines at home on iSCSI devices going over this network.

    Ironically, problem is not the RAM. You can easily buy 32-64GB for sane amounts of money in 2GB DDR2 sticks.
    Problem is cheap commodity motherboards you can put so many sticks in.

    IDEA:
    PCI Express 16 board with many many many laptop-class SODIMM DDR2 slots. As many as you can fit. Mount them diognally over each other, both sides of the board. Just get as many of them on as you can. Sure the bus (even a PCI-Express 2.0 or 3.0) will limit the aggregate speed to the PCI Express speed of several gigabytes per sec, but this would facilitate cheap RAM servers (with disk-sync) with multiple other machines on the network using the RAM server as their disk and bottlenecked primarily by the underlying gig ethernet.

    --
    -
  73. But how long does it take? by ghjm · · Score: 1

    Are we assuming that the time required to write to backing store increases directly with the quantity of RAM? Or is it possible that with a TB of RAM, the "write to backing store" process might take longer than the available battery life?

    Reverting to a low-performance mode and scheduling disk activity through the end of battery life might not be the smartest move, particularly if the user is sitting there with knowledge of a particularly important data item that they want to commit to disk in the 10 minutes they have.

    -Graham

    1. Re:But how long does it take? by MostAwesomeDude · · Score: 1

      Perhaps when the UPS is active, fsync() and friends work as intended, forcing certain dirty blocks (like that one containing your resume or database driver or porn or whatever the hell you have at work) to disk ahead of not-so-important blocks. Also don't forget that ramback is constantly flushing to disk, it's just not doing it at a very fast pace.

      --
      ~ C.
  74. Ramdisk of Ramdisks by suggsjc · · Score: 1

    what happens when the power dies?
    First, if you want to be secure you just create a ramdisk for your ramdisk. But then you ask the same question again. Answer? You just simply create a ramdisk for your ramdisks for your ramdisks. You could ask the same question again but at that point I'd just slap you...trust me, it would be secure then.

    ps. that was sarcastic
    --
    When I have a kid, I want to put him in one of those strollers for twins and then run around the mall looking frantic.
  75. Re:uh - there is at least one system with 1TB of R by gormanly · · Score: 1

    and Sun's X4600 ships with Linux (RHEL or SLES, if you don't like Solaris) and up to .25TB already, in a 4U box. such a sweet machine: 8 Opterons, 16GB per core, GNU/Linux ...

  76. memory test by Skapare · · Score: 2, Funny

    You better skip the memory test.

    --
    now we need to go OSS in diesel cars
  77. 1TB Ramdisk - already exists by Phishcast · · Score: 1
    It's an external box, but it's a TB ramdisk:

    Texas Memory Systems RAMSAN

  78. A "penguin imitation", perhaps? Take a read... apk by Anonymous Coward · · Score: 0

    http://linux.slashdot.org/comments.pl?sid=494546&cid=22811144

    (There is TRULY nothing as flattering, as imitation!)

    APK

  79. DSOrganize by tepples · · Score: 2, Interesting

    I'm curious, how often do you bring up vi on your mp3 player? I play .ogg and .mp3 on a PDA made by Nintendo, on which I also use a text editor (although not vi or Emacs). It has 4 MB of RAM and a 1 GB microSD card.
    1. Re:DSOrganize by Jax+Omen · · Score: 1

      I love DSOrganize, but I'm not sure I'd call it a PDA. And since DSLinux exists, you probably COULD run Vi on it, if you really really wanted to. Also, you should get a 2GB MicroSD.

  80. NeXT hardware had similar design by SethJohnson · · Score: 1



    Once you see the size of some mini-atx boards, it's not inconceivable that you could put 5 cpu systems in one tower case and have a 1TB RAID-5 system in there also.

    You know, in the old NeXT Cube, you could install up to 4 motherboards which I think were interconnected over ethernet. The foundation of NexT OS allowed for processor sharing over the network, so you could kind of have slow multiprocessing.

    Seth

  81. Re:uh - there is at least one system with 1TB of R by cymru_slam · · Score: 1

    We have an IBM P-series box with ~0.25Tb using about 80Gb of that for RAMdisks for DB temporary space.

  82. Re:uh - there is at least one system with 1TB of R by cymru_slam · · Score: 1

    Even in the Intel world, HPs new DL785 can do 0.25 Tb now and soon to do 0.5Tb http://h18004.www1.hp.com/products/servers/proliantdl785g5/index.html

  83. Screw this, fix the cache instead by billcopc · · Score: 1

    This sounds like the wrong solution to a very simple problem: caching.

    Why do hardcore people use ramdisks ? Because disk caches are stupid. Why not make the cache smarter ?

    I'll give an example of what I do with a ramdisk: I copy various video files to it, do my editing, then save the finished work back to a physical disk. These are all things a good disk cache could manage with ease, but it doesn't. Why not ? Because it evicts my precious video files in favor of less important data. What if my encode is going to take a few hours and I'd like to surf or play a quick game ? All those stupid little files will kick out my "old" video files.

    If we could ask the caching system to hold a certain file in memory until released, we could use the cache as a transparent ramdisk, and all would be well. Corollary to this is the ability to specify what NOT to cache. If I'm playing a movie, burning an ISO image, or running a backup, don't cache it! - I won't need it after I'm done. I'm certainly not against caching something if there's plenty of free memory, but there should be a priority system that both the application and the user can control. Make it work transparently for most people, and then allow the power mongers to exert manual control where appropriate.

    --
    -Billco, Fnarg.com
    1. Re:Screw this, fix the cache instead by bugg · · Score: 1

      Because it evicts my precious video files in favor of less important data.

      Why is this decision wrong? Sure, you've got more domain knowledge than the kernel, but I'd be curious as to real world cases where you would know better than the OS in cases like this. LRU is a pretty good mechanism for determining what needs to be removed from a cache and flushed to disk, no?

      --
      -bugg
    2. Re:Screw this, fix the cache instead by billcopc · · Score: 1

      I never said LRU was wrong, it's right for a large majority of scenarios, but it could be greatly improved with hinting. If I know I'm going to be noodling with a certain dataset, I'd like for that data to stay cached above other incidentals. Conversely, I'd like to specify things that should never be cached. The remainder would be handled by the default LRU logic.

      --
      -Billco, Fnarg.com
  84. Virtual Machines by nurb432 · · Score: 2, Insightful

    Thats the only reason i can see to have that much ram. Unless our current crop of so called programers bloat their code to fill the expansion for yet another worthless feature.

    --
    ---- Booth was a patriot ----
    1. Re:Virtual Machines by pandrijeczko · · Score: 1
      Thats the only reason i can see to have that much ram.]

      Erm, Vista?

      --
      Gentoo Linux - another day, another USE flag.
  85. Some of us do have access to 1TB or more of RAM by Colin+Smith · · Score: 4, Interesting

    Well, closer to 1.2 TB. 40 systems with 32Gb each. Want to know what it's used for? Disk cache... It's virtually all I/O buffer.

    All RAM is used as cache anyway. When an application allocates some RAM, it's in lieu of directly manipulating the permanent (disk) storage because it's horribly horribly slow. That's really an operating system failure. Network file systems, disk, RAM should all be completely transparent, the OS should abstract all that away and allow application programmers to handle it simply as storage.

    --
    Deleted
    1. Re:Some of us do have access to 1TB or more of RAM by kesuki · · Score: 3, Interesting

      you know, this subject (1 TB RAM) brings up an annoying point, every year RAM access has gotten slower and slower relative to the CPU. when you bought a 486 computer, the RAM and Processor were running essentially at the same speed if the CPU needed data, as fast as it could be transfered from disc to ram was good enough, the cpu never hit cycles where the ram couldn't keep up with cached data and would miss a cycle for the want of data. But every new system, from the Pentium 1 on up ram has gotten slower and slower than the CPU, so now the CPU comes with 256KB to 8MB of 'very fast ram' that is specially designed to run at the speed of the processor, because the processor needs that cache for when the ram hasn't acquired and written the data to ram from HD because the system memory simply isn't fast enough.

      I have a gaming rig I custom built 5 or 6 years ago with some very sweet OCZ ram with 2-2-2-2 timings, but now when i was wish-listing a new gaming PC the best ram i could find was 3-4-4-15 timings that's ALMOST HALF THE SPEED that means that it's going to hit those 'unable to fetch ram for the CPU' TWICE AS OFTEN with horrendous results... And it's getting worse, DDR3 ram is all running at 5-5-5-15 timings stock, and mind you 4-4-4-15 is the normal variety of DDR2 'fast' ram, this was again OCZ over-clocked ram...

      with multi-core processors this is only going to get worse, with a dual processor rig, to truly keep both processors from missing cache you realistically need 1-1-1-10 ram and they KEEP MAKING THINGS WORSE by bumping up the amount of 'burst' data the RAM can put out, instead of how FAST the ram can access and reload ram!!!

      really with such pathetic timings realistically a dual core is going to be spending about 20% of it's cycles 'waiting on ram' if it needs randomly accessed memory, that can't be 'burst read' a lot of applications need random access, database, server farms, complex 3-d video game graphics... the reason why 512MB graphic cards cost so much is they really all need REALLY FAST random access memory that is way faster than 'stock' DDR3... and the reason why frame rates don't scale with more processor pipelines very well, is because those cards keep missing strokes because the system wasn't able to load the memory in time for the processor to work on it...

      I can't think of a single mainstream computers need to 'burst' more GB/second Instead of improving latency, yet the crazy computer scientists keep making it worse by engineering for 'burst' mode rather than latency.

      it almost makes one want to use normal DDR 1 ram, with the sweet 2-2-2-2 timings instead of ddr2...

    2. Re:Some of us do have access to 1TB or more of RAM by pikine · · Score: 1

      every year RAM access has gotten slower and slower relative to the CPU. when you bought a 486 computer, the RAM and Processor were running essentially at the same speed

      In the old days, it used to be faster to do table look-up for some simple math expressions with a small domain. Nowdays it's better to do the math instead for precisely the reason you mentioned. However, I still see this old mentality in new code. One example is the code I just looked at last night, h264.c from libavcodec. It still uses various look-up tables defined in h264data.h that can be computed as trivially as i*c+j, with i and j row and column of the table and c some constant. I was shaking my head as I read the code. O what vanity!

      --
      I once had a signature.
    3. Re:Some of us do have access to 1TB or more of RAM by gfody · · Score: 2, Insightful

      If the table fits in the cpu's data cache don't the lookups get executed as fast as possible (multiple lookups per cycle fully utilizing the ILP window)? Granted, i*c+j would be a single lea instruction anyways.. but even so there could be benefits to using a lookup to eliminate a branch that would otherwise be in the inner loop or to handle some odd case (that would otherwise be a branch in your loop) etc.

      --

      bite my glorious golden ass.
    4. Re:Some of us do have access to 1TB or more of RAM by laejoh · · Score: 0

      Hey, if you want to IO, get yourself a mainframe, son. Those suckers are made to do IO, lots of it, fast, and if it breaks it wont mind.

    5. Re:Some of us do have access to 1TB or more of RAM by rdebath · · Score: 1

      All RAM is used as cache anyway.... in lieu of directly manipulating ... (disk) ...

      Another problem with directly manipulating disk is that you don't want to leave a change half done. In reality the closest we get to your world is a database; but it's manipulated using that horribly slow and unstructured language called "SQL".

    6. Re:Some of us do have access to 1TB or more of RAM by ichigo+2.0 · · Score: 1

      Timings are relative to clockspeed. So 4-4-4 on 800 Mhz RAM is the same amount of time as 2-2-2 on 400 Mhz.

    7. Re:Some of us do have access to 1TB or more of RAM by ckaminski · · Score: 1

      There's never been (except perhaps odd systems) atomic file IO because it's never been needed/not optimized for the "general use case." If RAM == DISK became the norm, I'd imagine you'd find that you could easily introduce multi-unit atomicity into FileIO as memory.

      People have done it with OODB's for years (objectstore, etc), and that's without native OS and compiler support for it.

    8. Re:Some of us do have access to 1TB or more of RAM by cibyr · · Score: 1

      Ignoring that the fastest DDR timings were 2-2-2-5, and 2-2-2-6 was likely to get you better performance, you're forgetting that timings are measured in clock cycles.

      Seeing as modern RAM runs much, much faster than 400MHz (where DDR topped out), in terms of actual time spent waiting, that 3-4-4 DDR2 (assuming it's at least DDR2-800 a.k.a PC-6400) has lower latency than your precious 2-2-2 DDR. Of course if you really care about memory latency, you'll want your memory controller to be on-die with your CPU, which for now means AMD. Strangely enough, Intel systems seem to be a lot faster and AMD ones right now... methinks memory latency isn't the giant issue you're making it out to be.

      --
      It's not exactly rocket surgery.
    9. Re:Some of us do have access to 1TB or more of RAM by leenks · · Score: 1

      This is the stupid thing though - there are lots of machines with 1TB or more of RAM (HP SuperDomes have up to 2TB in a single machine for example, SGI make a "clustered" beast with a shared memory model that will scale to 128TB of RAM if you really want it and can afford it) and many people use machines this large regularly - particularly in research, weather, government etc.

    10. Re:Some of us do have access to 1TB or more of RAM by dargaud · · Score: 1
      Could you please point me to an explanation on what those 5-5-5-15 RAM timings are, and most important how to set them in your BIOS depending on your mobo, processor, RAM model, bus type, etc...?

      I never could find a clear tutorial so I always left the default settings in place after locking the boot a few times. Thanks

      --
      Non-Linux Penguins ?
    11. Re:Some of us do have access to 1TB or more of RAM by Anonymous Coward · · Score: 0

      Um, we all know that you can't get faster than the speed of light, and Latency increases as the size of the memory array increases. The solution is to put smaller faster caches of memory closer to the cpu, and larger slower caches of memory farther from it. OMG, looks like that's what those crazy computer scientists are doing.

    12. Re:Some of us do have access to 1TB or more of RAM by fbriere · · Score: 1

      when you bought a 486 computer, the RAM and Processor were running essentially at the same speed Not in the case of a DX/2 or DX/4, they weren't.

      the cpu never hit cycles where the ram couldn't keep up with cached data and would miss a cycle for the want of data The CPU has always hit wait cycles, because RAM has always been slower than we would've liked. You think that your non-EDO 100ns DRAM was magically keeping pace with your 486 just because it was on a 40MHz bus? Why do you think Intel went to the trouble of putting a L1 cache on that chip?

      (I for one distinctly remember wait states BIOS settings for my 386SX-16, and we're talking about a CPU that was as slow as molasses.)

      But every new system, from the Pentium 1 on up ram has gotten slower and slower than the CPU Ironically enough, if I'm reading this chart correctly, the Pentium 60 and 66 would appear to be the only points in the x86 timeline where there was RAM available that could keep pace with the CPU, at least in bursts.

      yet the crazy computer scientists keep making it worse by engineering for 'burst' mode rather than latency. The same could be said about disk drives, and seek times vs. throughput. It should be obvious that both are the result of physical limitations, and are not likely to go away any time soon.
    13. Re:Some of us do have access to 1TB or more of RAM by fbriere · · Score: 1

      you're forgetting that timings are measured in clock cycles. Right.

      3-4-4 DDR2 (assuming it's at least DDR2-800 a.k.a PC-6400) has lower latency than your precious 2-2-2 DDR. Wrong.

      DDR-400 (PC-3200) and DDR2-800 (PC-6400) are both running on the same 200 MHz clock. A CAS latency of 2 cycles at this speed equals 10ns, regardless of how many transfers are taking place in one clock cycle.
    14. Re:Some of us do have access to 1TB or more of RAM by kesuki · · Score: 1

      here's a simple primer http://en.wikipedia.org/wiki/CAS_latency

      hth

    15. Re:Some of us do have access to 1TB or more of RAM by mako1138 · · Score: 1

      DDR-400 (PC-3200) and DDR2-800 (PC-6400) are both running on the same 200 MHz clock.


      No, DDR2-800 runs at 400 MHz.
    16. Re:Some of us do have access to 1TB or more of RAM by fbriere · · Score: 1

      No, DDR2-800 runs at 400 MHz. I stand corrected.

      While the RAM itself still runs at 200 MHz (which was the point of DDR2), the I/O is indeed clocked at 400 MHz. Thus, a CAS latency of 2 cycles would equal 5ns.

      Thanks for setting me straight.
  86. Mac OS 8? by ruiner13 · · Score: 1

    I seem to recall the ability in Mac OS 7-9 where you could create a RAM disk out of a chunk of your unused memory. There were even programs that would automatically store the contents to disk on shutdown and restore it on startup. How is this new, exactly?

    --

    today is spelling optional day.

  87. IBM p595 from Feb. 2007 maxed out at 2TB of RAM by StickInTheMud94 · · Score: 1
    Or how about this old system (from Feb. 2007): http://www-03.ibm.com/systems/p/hardware/highend/595/

    From the page... 8GB to 1TB of DDR2 SDRAM running at 533 MHz or up to 2TB of DDR2 memory running at 400 MHz

  88. pfft, only a TB by The+-e**(i*pi) · · Score: 1

    You can already buy computers with 2 TB of ram, silly reporters/bloggers and their outdated articles.
    http://h20341.www2.hp.com/integrity/cache/342254-0-0-0-121.html

  89. Re:uh - there is at least one system with 1TB of R by Necron69 · · Score: 1

    Or you can buy an HP SuperDome with up to 2TB of RAM.

    - Necron69

  90. Already there? by Anonymous Coward · · Score: 0

    If I recall correctly, the United States Government installed several large-memory computers systems (in the Terabyte range), for the purposes of holding single instances of very large databases, used for a (very) rapid search by many many stakeholders (I think the Department of Homeland security was the owner, with CIA, FBI, NSA, etc. as stakeholders). It was supposed to be able to handle 100,000 full-space queries per day, and all data was in ram.

  91. Already done by Shadow-isoHunt · · Score: 1

    The experimental new design for Linux's virtual memory system would turn a large amount of system RAM into a fast RAM disk with automatic sync to magnetic media. That's already being done by people with tmpfs, dd'ing a file onto it with /dev/zero to fix the size, mknod to make it a block device, and then md raid1.... it's been done for years.
    --
    www.isoHunt.com
  92. Everything old is new again by putaro · · Score: 1

    I looked at doing battery backed RAM cache back in the early nineties. At the time, NFS servers were either slow or expensive (Auspex) and it was pretty obvious that one of the things that really slowed them down was the NFS requirement to commit changes to disk before acknowledging the write. So, battery backed RAM write cache!

    NetApp had the same idea and brought it to market. If you look at the design of WAFL (NetApp's Write Anywhere File System), it is basically dependent on having a large, stable RAM cache. Doesn't work if the RAM cache isn't stable.

    The question that Daniel (the author of the patch) posed was "You just need to believe in your battery, Linux and the hardware it runs on. Which of these do you mistrust?" The answer is - all three. NetApp delivers a quality product that is engineered to work the way it needs to. Trying to get it to work with a bunch of off-the-shelf stuff not designed to do it is a recipe for disaster.

  93. Closer than you think by stabiesoft · · Score: 2

    Chip design apps (and I imagine a number of other ones) will likely need 1TB in a year or so. I already know of several companies using boxes with 64G of RAM and the apps are consuming like around 40-50 of it. Designing (& analyzing) those multi-billion transistor designs eat memory. My sw package was designed to allow for ~80G per cell in the hierarchy. Since my system allows 128K cells, thats about 10TB of RAM that could be used. I have even wondered if the 80G limit needs to be increased in the near future.

  94. cosmology simulations by Anonymous Coward · · Score: 1, Informative

    Speaking of voxels, octrees, and a terabyte (TiB that is; 2^40 bytes):

    Cosmology simulations take as much memory as you can throw at them. You think a few exabytes is big, but that's just peanuts to space!

    This one is one is the most complex (by most measures) cosmological simulation ever run, using just over 10 billion particles and nearly the entire terabyte of the computer's available memory:
    http://www.mpa-garching.mpg.de/galform/millennium/

    They ran it on a 512-CPU IBM p690, which took about 28 days of parallel runtime. (2^40) / (10^10) ~= 100 bytes per particle, which is high by maybe 50% but accounts for overhead and is a reasonable value. The paper reports ~200 Gflops sustained, which is certainly memory bound in any distributed N-body simulation, giving ~5*10^17 total floating-point ops.

    They only did total output at 64 output timesteps because each of those took about 300GB for ~20TB total, which filled up a decent sized storage rack 3+ years ago (and still). The contemporary highest-detail galaxy clusters were modeled with as many as 3 million particles, but the simplest interesting "structures" (the dark-matter halo detection threshold was 20 particles) contained 20~100 particles.

    Now for the cool stuff:
    - there are ~400 billion galaxies in the observable universe, even if galaxy surveys (Sloan, etc.) catalog only a small fraction of them
    - reasonable (i.e. "useful") resolution for typical structures of interest (quasars, typically) is ~1~10 million particles; better if you can get it

    So:
    You have to model dark matter halos with useful precision. Even if you are satisfied with modeling whole galaxies as point-like objects:
    (4*10^11 galaxies) * (100 bytes/particle) = 4*10^13 bytes ~= 40 TB
    (~10^12 CDM particles) * (100 bytes/particle) = ~100TB
    => allowing a little slush, 200TB of RAM would get you some very valuable theoretical simulation data of an object/construct/whatever that approaches literally the size and complexity of the observable universe at a galactic scale. More memory will just make that even better, too.

    Desktop memory doubles say, every 2 years; look at the typical "consumer" systems the last few years: ...
    1994: 16MB (P1... wow; 16 is a little high for '94 I guess)
    1996: 32MB
    1998: 64MB
    2000: 128MB
    2002: 256MB
    2004: 512MB
    2006: 1GB
    2008: 2GB

    We want to see when we have about 100,000 times as much memory as now, which is about 16.5 doublings, each of which take around 2 years, so we should see this some time around 2035-2040 on consumer grade machines. A purpose-built supercomputer can contain, say, 1000 times the consumer amount, so today's 4~50TB supercomputers need to double, drumroll.... 2~5.5 times. The top supercomputers will probably have 200 terabytes of ram within 2 years, and the lowly supercomputers cosmology simulations have to settle for will probably have that within 10-12 years; i.e. by 2020 (yeah, it's getting closer!).

    It may even be possible to do quad-precision floats in hardware, which would be beneficial for cosmological simulation (or any N-body simulation), and that will cost a doubling too. And after a petabyte or so, the resolution gets *really* interesting because you can start modeling macro-scale systems of micro-scale (you know, individual atoms or stars) as long as you know the force laws, and you can start finding those out numerically if you don't. So there's plenty of use for *truly* astronomical, dizzying amounts of memory way, way beyond one measly terabyte.

  95. clarification by Anonymous Coward · · Score: 0

    They ran it on a 512-CPU IBM p690, which took about 28 days of parallel runtime. I should have said this more clearly: it took about 28 days on each processor; ~350,000 CPU hours / 512 CPUs = ~28 days to run the whole thing in parallel.
  96. Microsoft has already done this by nexeruza · · Score: 1

    Didn't Microsoft already do "proof of concept" on howto use a Terabyte of RAM when they booted up Vista?

  97. Databases have a better answer by rdebath · · Score: 2, Interesting

    I really don't like the idea that this is racing with the UPS. When the battery gets old it's ability to hold a charge drops and a timeout that was sufficient in the old days won't be now. I've also had situations where the battery was supposed to tide you over till the generator kicked in; but the system was never tested for the generator failing at exactly the wrong moment.

    I'm pretty sure the answer to this is a simple generation number on the blocks so you can use a database checkpoint scheme.

    1) Every write to the ramdisk brands that block with an ever increasing number (transaction number).
    2) When you initiate a checkpoint the driver finds all blocks that have changed since the last checkpoint and writes them to a "physical log", followed by the checkpoint marker.
    3) The same blocks are then written to the actual disk area; nb application writes to these blocks must be diverted.
    4) The "physical log" is cleared.
    5) Block diversions from (3) are cleared.

    Using this well known scheme the disk is always either in a consistent state or easy to get there.

    Note the "diversions" may mean that clean blocks must be discarded from the ramdisk/cache to prevent the applications being blocked by the checkpoint.

    If you want the ability to have the system 'roll forward' after a crash you need a transaction log where the updates are written to the log as they happen, because this is linear it happens at the maximum transfer rate of the disk; but it's still limited in performance.

    This also looks a lot like doing a backup from a volume snapshot.

    1. Re:Databases have a better answer by Daniel+Phillips · · Score: 1

      I really don't like the idea that this is racing with the UPS. When the battery gets old it's ability to hold a charge drops and a timeout that was sufficient in the old days won't be now. I've also had situations where the battery was supposed to tide you over till the generator kicked in; but the system was never tested for the generator failing at exactly the wrong moment. That is why you use dual power supplies with independent UPS units on each so you can regularly swap out the UPS unit for a known-good one, and then test the swapped-out unit. Preemptive maintenance. For good measure, raid1 the whole arrangement, giving a total of 4X redundant UPS units. Still worried? Then I sincerely hope you do not get hit by a meteorite tonight.

      The flaw in your atomic commit proposal is that after a period of continuous writing the ramdisk will outrun the physical disk and then ramdisk writes will have to start waiting on physical disk completions, dropping your transaction rate down from microseconds range to milliseconds range.
      --
      Have you got your LWN subscription yet?
  98. First Post! by darkshadow · · Score: 1

    Running Windows 7?

    --
    -Darkshadow (There was a thing called Heaven; but all the same they used to drink enormous quantities of alcohol.)
  99. Joys of cache by zdzichu · · Score: 1

    That reminded me situation I saw few years ago. New server arrived, with 8 GB of RAM. After few days of use all disk activity almost ceased. Under load systems did some writes sometimes. *Only* writes. No reads from disk. It was little puzzling. Under closer inspection it became obvious that all disk content was cached in RAM. There was about 4GB data on server disks (including operating system) and all of this was cached in RAM. Only changes were written to disk.

    This was first time when I saw linux "free" showing 2-3GB of literally free memory. Which couldn't be used for disk cache, because there wasn't any more data to cache.

    --
    :wq
  100. 1TB RAM since Sun E25K, now 2TB with M9000 by vallef · · Score: 1

    This is a good example where people and the market do not understand how far large system and OS technology has reached. Sun has been selling and their customers have been running servers with 1TB since the E25K which came out years ago. Present Sun M9000 servers can have up to 2TB of RAM. Solaris has no problem manging this with 128 cores. Sun servers and Solaris is not stopping at these limits. More to come. Some OSes and perceptions need to catch up. NB Solaris is also open (OpenSolaris) and you can run it on a laptop and PC with 200MB of RAM. Solaris is supported on servers from HP, IBM and 1000's of others.

  101. Didn't Bill Gates once say... by vanillacokehead · · Score: 1
    ...that 640GB "ought to be enough for anyone"?

    Oh, wait, that was 640 KB when he said this back in '81.

    Considering how software tends to keep up (and usually surpass) hardware, as soon as one hardware "bar" is set, software will find some way to surpass it.

    And I bet not too far into the future, we'll be talking about what to do with one petabyte of RAM.

  102. been there, done that by hyc · · Score: 1

    Funny, I was benchmarking an SGI Altix with 1TB of RAM back in 2005. What's this "not available yet" nonsense?

    --
    -- *My* journal is more interesting than *yours*...
  103. Access by Forty+Two+Tenfold · · Score: 3, Insightful

    The question should be not WHAT to fill it with, but how to read/write gargantuan amounts of data quickly.

    --
    Upward mobility is a slippery slope - the higher you climb the more you show your ass.
  104. How to use a terabyte of ram? by sega01 · · Score: 1

    Use Vista to write "Hello World!" in .NET.

  105. A "penguin imitation" part deux? apk by Anonymous Coward · · Score: 0

    http://linux.slashdot.org/comments.pl?sid=494546&cid=22811144

    (Again - There is TRULY nothing as flattering, as imitation!)

    APK

    1. Re:A "penguin imitation" part deux? apk by Daniel+Phillips · · Score: 1

      Did that Windows code know anything about a UPS or power management events,
      or how to fully populate the cache on startup?

      --
      Have you got your LWN subscription yet?
    2. Re:A "penguin imitation" part deux? apk by Anonymous Coward · · Score: 0

      I didn't design THAT part of it, in the DDK/Device Driver Kit work for the drivers for it.

      (Again - I did the usermode/RPL 3/Ring 3 components for the SuperCache/SuperCache II engine (diskcache that works @ disk driver block level, vs. filesystem logical level) that made it up to 40% more efficient/effective, depending on a systems' use patterns, & it worked out well enough to become part of that commercial product (1 of their 2 main ones, SuperCache &/or SuperDisk-SuperVolume))...

      For their Ramdisk &/or SuperVolume programs though?

      I wrote up an article about set of things one could use a Ramdisk for to enhance performance, on the Ramdisk/Mirroring back to backing HDD SuperVolume unit (their mirroring-back-to-backing-HDD version), as far as contributing to ramdisk work.

      (Also, many years later, I did the SAME general type of article & review for CENATEK & their RocketDrive SSD (which I am a proud owner of - that's how much I liked it).

      All in all?

      Well, that article's ideas did pretty well (especially in database work with SQLServer - Which it took EEC Systems/SuperSpeed.com to a finalist position for, @ Microsoft TechEd 2000, & 2001, iirc on the dates, 2 yrs. in a row @ TechEd).

      ----

      Personally, on the application of Ramdisks in general for more speed?

      I used to use software-based Ramdisks (ArSoft free model, that did unlimited size (in theory) quite a lot since it is free) for things like:

      Webbrowser caching
      Logging (OS EventLogs, application logs, etc. et al)
      %temp% & %tmp% environment variable redirection to ramdisk folders

      & more... but, since have moved to hardware based RamDrives instead, in my using a CENATEK RocketDrive for ALL of the above instead.

      ----

      INCIDENTALLY (in the way of Solid-State RamDrive boards)?

      There are BETTER units than the PCI 2.2 bus/PC-133 SDRAM CENATEK RocketDrive I use, that are out there nowadays!

      (& one imo @ least, is the Gigabyte IRAM (which uses DDR-RAM, faster than PC-133 SDRAM + SATA 1 150mb/sec. bus, vs. PCI 2.2 132mb/sec. bus))...

      ALSO - Hopefully, the "DDRDrive X1" will release for public "general consumption" also (based on PCI-Express & DDR2 RAM), which is overall MUCH faster in theory @ least.

      HOWEVER/BOTTOM-LINE - For the information you request?

      I suppose You'd want to talk to the folks @ SuperSpeed.com in regard to THAT much & the fellow who did the Device Driver Kit/DDK work.

      APK

      P.S.=> All-in-all - Your idea(s) for LINUX you are working on now?

      WELL - It sounds INCREDIBLY like the SuperDisk/SuperVolume program which has existed for Windows NT-based OS' since 1995 or so is all, & why I commented here on it
      ... apk

    3. Re:A "penguin imitation" part deux? apk by Daniel+Phillips · · Score: 1

      WELL - It sounds INCREDIBLY like the SuperDisk/SuperVolume program which has existed for Windows NT-based OS' since 1995 or so is all, & why I commented here on it There are similarities, which is not surprising since the concepts of writeback and writethrough caching are older than the hills. Remember Smartdrv? And you can be sure IBM and others were doing both way, way earlier.

      But: The system administrator chooses the desired mode at installation, this means the superdisk guys (you?) did not have that essential bit that allows ramback to be used with data that has to be perserved, and has to support transactions at ramdisk speeds. This is the notion that you can put the virtual disk into a flush mode, and it will later go synchronous when flushing completes. The "depends on a UPS" bit.
      --
      Have you got your LWN subscription yet?
    4. Re:A "penguin imitation" part deux? apk by Anonymous Coward · · Score: 0

      "There are similarities, which is not surprising since the concepts of writeback and writethrough caching are older than the hills.." - by Daniel Phillips (238627) on Saturday March 22, @05:18AM (#22827888) The concept IS the same here in what you're doing, vs. that of SuperVolume for Windows by SuperSpeed.com!

      In fact - I would say EXACTLY the same as what the folks @ SuperSpeed.com do, in their "SuperVolume" program in fact...

      (Now, on UPS? Well, I know that they recommend the use of a UPS in conjunction with their wares, which are CITRIX/HP/MICROSOFT certified for Enterprise Class Usage in fact, but as to accounting for it via driver API code?? That, you WOULD have to ask them about)

      HOWEVER - I do know, however, it operates @ a DISK DRIVER (disk.sys iirc) level, instead of the filesystem driver level.

      ----

      "Remember Smartdrv?." - by Daniel Phillips (238627) on Saturday March 22, @05:18AM (#22827888) Of course: I commented on it earlier & how having used IT in the past (prior to Windows NT-based OS, in DOS usage) gave me the "inspiration" to code a parameterizing engine & interface for the SuperCache/SuperCache II program for EEC Systems (Superspeed.com).

      ----

      "And you can be sure IBM and others were doing both way, way earlier." - by Daniel Phillips (238627) on Saturday March 22, @05:18AM (#22827888) Perhaps... but, were they also doing their work @ the level of disk.sys (disk driver level) OR, filesystem driver (in this case, ntfs.sys, iirc) level??

      APK

      P.S.=> Where does yours work from (filesystem level, OR, diskdriver level)?

      & is it a FILTERING driver??

      I am assuming it is, since it selectively checks on dirty vs. clean flags, etc. et al (iirc, from reading about it)... thanks! apk

  106. Too late, Sun servers with 2TB, 1TB since E25K by vallef · · Score: 1

    This is a good example where people and the market do not understand how far large system and OS technology has reached. Sun has been selling and their customers have been running servers with 1TB since the E25K which came out years ago. Present Sun M9000 servers can have up to 2TB of RAM. Solaris has no problem manging this with 128 cores. Sun servers and Solaris is not stopping at these limits. More to come. Some OSes and perceptions need to catch up. NB Solaris is also open (OpenSolaris) and you can run it on a laptop and PC with 200MB of RAM. Solaris is supported on servers from HP, IBM and 1000's of others. Open source Solaris OS on a Open source SPARC chip is already there.

  107. random number generator based on pi by swschrad · · Score: 1

    you could use it, for instance, to seed the storage of cookies in real memory...

    --
    if this is supposed to be a new economy, how come they still want my old fashioned money?
  108. Re:uh - there is at least one system with 1TB of R by Anonymous Coward · · Score: 0

    and the M series from Sun has already been able to do 2TB of memory

    http://www.sun.com/servers/highend/m9000/

  109. Very Fast by c_woolley · · Score: 1

    Just imagine how fast my text game of Zork I would run!

  110. Google by slashflood · · Score: 1

    In fact, glancing back at TFA, it seems there are some inherent reliability concerns, too
    As far as I know, Daniel is working at Google. They don't really care if one of their 500k Servers are going down. Replication and redundancy is the key. It's obvious why he is developing this patch.
  111. 640 MB was also enough by billstewart · · Score: 1
    A few years ago I put 640MB of RAM on one of my lab servers just because I could. It didn't need it at the time, but it seemed appropriate :-)

    My current notebook, about 2 years old, only has 512MB, because our corporate IT droids didn't think it needed more. Of course, IE didn't have tabs back then, and they weren't running Firefox as their browser. Now that RAM comes free with breakfast cereal (at least if you eat breakfast at Fry's) I suppose I should just go upgrade it myself, but I assume that if I do that they'll upgrade our machines before I've used up $50 worth of Firefox going faster.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  112. Your laptop needs Flash, not big RAM by billstewart · · Score: 1
    This solution isn't at all useful for your laptop - burns way too much power. What your laptop needs for operating systems is a flash drive, since that doesn't need power to maintain stored data, and it'll use a lot less power than mechanical disks as well as not having rotational or seek delays. Modern flash has gotten past the problem of limited write cycles, and wear levelling takes care of the limited extent that it still has that, and for OSs, read-mostly data, or data that you're not changing a lot (like that copy of the movie) it doesn't happen much anyway. Also, even if you wanted to pick a worst-case application, like swap, a $20 4GB ram stick that lasts a year is still a great choice.


    Vista supposedly knows how to make more intelligent use of flash as a middle-speed storage tier; good thing, given that it's apparently a memory hog. I don't know if Linux has explicit plans for it, but you could probably hack it to do some thing useful, but even just using one drive for the OS and another for swap could be a big help.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  113. Mid-80s Massive Memory Machine Project by billstewart · · Score: 1
    Ok, we're talking about how you'd use do computing differently if you could have all the memory you wanted. That's been done before (:-). The Massive Memory Machine Project, at Princeton, was a 1980s version of the same approach. You can look up details about it on the web, though it doesn't appear to be in Wikipedia. Dr. Peter Honeyman was somehow involved with the project, so the stories I've heard about it have been from him. They did a lot of paper studies about what to do, and had a non-massive toy machine to do experiments on. It was a VAX with 128MB of RAM - it needed 10 cabinets to store it all, and had a 450MB Fujitsu Eagle drive just for swap. (Back then, my VAX was pretty large with 4MB, and we would have been happy to have an Eagle drive instead of some of the slower 256MBMB RM05 removables we had.) A lot of the research was looking at things like MMAP, persistent objects, and that sort of thing.


    Now, of course, it's hard to get current memory as small as 128MB, and the $20 flash drives at my local pharmacy are bigger than the disk drives on my VAX were.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  114. You got the history wrong by Anonymous Coward · · Score: 0

    I don't have much argument with your conclusions, but you got the history wrong - (the "original") VI came before GNU Emacs.

  115. Re:uh - there is at least one system with 1TB of R by Anonymous Coward · · Score: 0

    SGI have been doing 128TB for ages - http://www.sgi.com/products/servers/altix/4000//
    Here's a 4.1TB system out there (i.e. not just a number on a white paper): http://www.sgi.com/company_info/newsroom/press_releases/2006/september/lite.html/

  116. 2TB..urm try 128TB available today by Anonymous Coward · · Score: 0

    SGI Altix 4700 goes upto 128TB. Now continue discussions of what to do with it.

  117. Linux is already behind in this area by BlendieOfIndie · · Score: 1

    1TB of RAM isn't for consumer PCs, so I'm not sure why everyone is talking about web browsers, emacs, etc. Maybe I didn't read deep enough into the replies, but did nobody event mention DB2 or Oracle? 1TB systems already exists. Spend some time surfing this website: www.tpc.org. Its a commercial benchmarking website for high-end database systems. You'll find several systems that are using 1TB+ of memory. Walmart, AT&T, NSA, etc all have databases with >= 100TB of data. Systems of this size DO require that much memory. The key take away from this article is that Linux is attempting to compete in this space - its already behind the proprietary UNIX systems.

  118. huh? linux does use the rest of the ram for cache. by JumperPunk · · Score: 1
    huh? it was my understanding that linux does exactly as you stated its should, use as much ram for cache as possible. heck, ive got 77% of my 3.5 gb (really 4gb, but only seen as 3.5 under 32bit ubuntu 7.10) used as cache now, and 16% used for programs. the argument for vista being a memory hog is not in its prefetch/caching but in that it uses an insane amounts of committed memory for nonsense stuff. take the sidebar for example. a coworker and i were working on a customer's pc which had vista installed on it. we compared the memory usage with the sidebar vs. immediately after closing the sidebar. it was a difference of about 400mb. im about 99% sure that was the committed memory. just to make sure that you realize that im not a hardcore linux fanboy here, i would like to point out that you can run xp on 400mb (in practice that would be rounded to 512mb, but still fairly close when you consider what we are talking about here)fairly well (for general email/word processing, and that would be rounded to 512mb in practice, but that still pretty close considering the discussion). thats just to point at how much microsoft bloated their own product. running an entire OS smoothly inside of what it takes to run just (what should be) a small addon.

    and for your brief rant against teh average /. member:

    Vista already does aggressive caching and makes full use of RAM that isn't currently being used by applications, but slashdot keeps going on about how its a bloated piece of crap that uses 2GB of RAM when idle. Yet they don't complain that their system runs a lot smoother thanks to prefetching which analyses program usage and preloads (in the background) data that it anticipates being loaded from disk in the future.
    you seem to imply that most /. users are running vista? or that we are happy cause we use linux which requires less memory than vista, thus allowing more of the memory to be used for active programs/cache? after reading your post a little more closely, i cant seem to make heads or tails of it...

    Do you want your ram to sit idle the rest of the time, and have your hard drive grind away because /. would rather see the OS use 100mb of ram at idle and have the rest doing nothing? this seems to contradict what you said earlier... first you say that we are happy because of how our system manages memory, then criticizes us for running an OS which does not manage it well?
    and no, we dont want our memory wasted... which is why most of us run linux (or at least xp rather than vista), because the OS does not require as much memory, again, allowing for a greater percentage of the memory to be free for general use rather than backend stuffs, and (in the case of linux, not xp), it uses whatever is free after the committed memory for cache and whatnot...

    so in a short, you seem to be criticizing the average /. user for using an os that does not use the full potential of the system memory, then criticize us for criticizing vista which (you claim) does. in actuality, most of us use an os which does use the full potential of the system memory (*nix), then criticize vista for needing so much memory to run, much less have some left over for caching etc.

    i dont think i said that as clearly as i could have, but i think you get the point. also, i may have completely misunderstood your post or how the different OSes manage memory (im a bit of a n00b), so *to all /. readers* feel free to correct me on anything ive said.
    --
    01001010