Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

How Much Virtual Memory is Enough? 544

whitroth asks: "Ten years ago, Received Wisdom said that virtual memory should be, on the average, two to two-and-a-half times real memory. In these days, where 2G RAM is not unusual, and many times is not that uncommon, is this unreasonable? What's the sense of the community as to what is a reasonable size for swap these days?"
This discussion has been archived. No new comments can be posted.

How Much Virtual Memory is Enough?

Comments Filter:
  • lots (Score:5, Funny)

    by emphatic ( 671123 ) on Tuesday August 29, 2006 @08:59PM (#16004033)
    lots
  • Enough... (Score:3, Funny)

    by talkingpaperclip ( 952112 ) on Tuesday August 29, 2006 @09:02PM (#16004046) Homepage
    640k should be enough for anybody.
  • by Millenniumman ( 924859 ) on Tuesday August 29, 2006 @09:19PM (#16004116)
    I use 4x750 GB hard drives (RAID), purely for virtual memory. It increases the speed on the RAM preprocessing directive, but demodulates the core processing utility monitor. I find it to be a good setup, especially for running Naibed Linux.
  • by r00t ( 33219 ) on Tuesday August 29, 2006 @11:09PM (#16004655) Journal
    You have a GUI to run: 600 MB for firefox, 1800 MB for OpenOffice.org, 100 MB for X, 100 MB for desktop odds and ends, 300 MB for Evolution or Thunderbird, and 10 MB for old-style stuff running in the background.

    Total: 2910 MB

    Yep, you need a gigabyte of swap. OpenOffice.org was made 64-bit clean for a reason. If you plan ahead, not wanting to reallocate disk space in the next few years, you'll allow for this:

    2 GB for firefox, 5 GB for OpenOffice.org, 1/2 GB for X, 1/2 GB for desktop odds and ends, 1 GB for Evolution or Thunderbird, and 10 MB for old-style stuff running in the background

    That's 9.01 GB. You're exactly 7.01 GB short, so you'll be needing that swap space before you know it.
  • by Anonymous Coward on Wednesday August 30, 2006 @12:03AM (#16004875)
    Can't you linucks people get on the same page about this?

    You're 10 years on now, for God's sake; get it done.
  • by NormalVisual ( 565491 ) on Wednesday August 30, 2006 @12:42AM (#16005033)
    What the hell are you doing in firefox to require 600MB of RAM?

    Double clicking on its desktop icon? :-) Seriously, it's not nearly as bad as it was, but Firefox does like to put a big helping of RAM on its plate. Right now I have four tabs open with mostly text content on each, and FF is eating about 100 MB.
  • by slavelayer ( 956212 ) on Wednesday August 30, 2006 @01:34AM (#16005199)
    Before talking about swapping, pagging, and virtual memory please learn and understand this equation: Virtual Memory = Physical Memory + Swap(or Page) file. I let the OS (windows) manage my page file. The current generation of windows OS's (2k, xp, & 03) mange the swap file much more efficently than windows 9x did. All this mumbo-jumbo about tweaking the swapfile came about because these old versions of windows needed to be tweaked, they had memory problems and tweaking the swapfile would improve performance and stability. But the current generation of windows has no need for tweaking the swapfile, save for some special server situations. Its a waste of time to personally manage the swapfile for a desktop/development computer.
  • Well... (Score:3, Funny)

    by eliot1785 ( 987810 ) on Wednesday August 30, 2006 @02:19AM (#16005344)
    ...I see your swap is as big as mine...
  • by haeger ( 85819 ) on Wednesday August 30, 2006 @03:04AM (#16005457)
    "Memory is like an orgasm. It's a lot better if you don't have to fake it."
                      -- Seymour Cray, on virtual memory.

  • by Angostura ( 703910 ) on Wednesday August 30, 2006 @04:08AM (#16005655)
    Are you aware of the ironic disconnect between the content of your posting (If you need to ask, you don't need to know) and the content of your .sig?
  • by 0123456 ( 636235 ) on Wednesday August 30, 2006 @06:52AM (#16006144)
    "It looks like Windows does a better job in this (not so hypothetical) case."

    LOL. Windows will swap out my web browser when I'm copying a 2GB file from one drive to another.

    The whole idea of kicking out real applications to increase disk cache size is absolutely retarded. Unless the cache is below some absolute minimum size, it should never, ever swap out an application just to try to cache data that I'm probably never going to use again. The operating system has no damn clue about how important a file may be so it should never be trying to make these kind of decisions for me.

    Similarly, last night I left my PC running, and Microsoft Antispyware did a disk scan, which meant that Windows swapped out all the applications in order to increase the disk cache size to cache files that the Antispyware program was going to read once. It literally took five minutes of thrashing to get back to a usable system, while providing absolutely no damn benefit whatsoever.
  • by Rakshasa Taisab ( 244699 ) on Wednesday August 30, 2006 @07:17AM (#16006206) Homepage
    And if you were using "grep" to try finding the irony in the post, you probably didn't get any matches.
  • by Anonymous Coward on Wednesday August 30, 2006 @08:14AM (#16006372)
    As an Apple fanboi, I'm surprised you'd even know what a swap file is. I was thinking that, like all the other fanbois out there, you were too busy jerking off to your Steve Jobs screensaver.
  • by Spackler ( 223562 ) on Wednesday August 30, 2006 @08:26AM (#16006425) Journal
    #echo [0-100] > /proc/sys/vm/swappiness

    I hope this is not your example of how Linux is ready for the mainstream.
  • by bcmbyte ( 996126 ) on Wednesday August 30, 2006 @10:58AM (#16007478) Homepage
    Before I started this I didn't care about the answer, but now I realize that this question is as important as "Ultimate Answer to Life, the Universe, and Everything" and as I read I have realized that we humans are not powerful enough to answer this question. We should build a super computer with more VM and VA and more processors, yes, then we can ask it the question.

    Just kidding all, but it was good reading
  • by Gnavpot ( 708731 ) on Wednesday August 30, 2006 @03:16PM (#16009762)
    "Memory is like an orgasm. It's a lot better if you don't have to fake it."
                                        -- Seymour Cray, on virtual memory.

    It is usually recommended to use analogies which the target audience can relate to.

I've noticed several design suggestions in your code.

Working...