Messages in this thread | | | From | Oliver Neukum <> | Subject | Re: How do I make this thing stop laging? Reboot? Sounds like Windows! | Date | Wed, 18 Jun 2003 11:44:43 +0200 |
| |
> Swap prefetching? If you have >10% free physical ram and any used swap it > will start swapping pages back into physical ram. Probably not of real > benefit but many people like this idea. I have a soft spot for it and like > using it. > -- > > The disadvantage is ofcourse that you will be using up more RAM than is > really necessary.
No, free RAM is wasted RAM. You will start wasting RAM once you refuse to free up pages you just read from swap space for other more important needs. But that's a general VM problem.
You'll waste IO bandwidth and CPU power to read in pages that will be evicted unused, but you may get hits and save page faults. It's just a matter of selecting pages to be preswapped.
But those preswapped pages are either clean and thus immediately evictable or you were right to preswap them and saved a page fault.
Regards Oliver
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |