Re: RAM & Swap(was:Hibernation)
Russell wrote:
So you create a 1M partition for swap then. Using RAM as swap will
not gain
you anything. At best it won't be used and will just be a waste of
memory
that could otherwise be used for disk cache. At worst you will have
programs
being paged to it which means copying data to/from the memory area
which
wastes CPU time.
With 64bit memory it will take 512 reads and 512 writes to copy a 4K
page of
memory. If the memory is 10ns then it'll be 10*1024 == 10240ns to
copy the
page. That's 4096 clock cycles on a modern CPU.
I think you're missing a calculation here: how long time will it take to
copy, say 4k, from memory to disk?
Sounds like a really good idea to try to utilize whatever co-proc you may
have on your graphics-card. Please let us know how the progress is.
Btw, you must have a quite exotic use of your laptop to want raid?!
Most people seem to use their laptop for working on-the-move and have a
desktop for heavy storage/processing at home. But maybe the line between
laptops and desktops are fading away...
Best Regards
Vitux
---
Let's get back from la-la-land here, 'cause this ain't gonna happen
Reply to: