Re: benefits of swap on pen drive?

From: Unruh (unruh-spam_at_physics.ubc.ca)
Date: 08/10/05


Date: 10 Aug 2005 19:15:49 GMT

James McIninch <james.mcininch.nospam@comcast.net> writes:

>wjefferies@gmail.com wrote:

>> Hi linux gurus, got a question for y'all (yep, from the south). Is it
>> possible to use a usb 2.0 pen drive for swap space?
>> and if so, would this be a massive improvement over a swap file on a scsi
>or sata?

This would be a massive unimprovement. You may as well not have any swap at
all.

>No. The performance would be significantly slower (writing to a USB device
>is much slower than reading from it) and the pen drive would probably fail
>pretty soon (they are supposedly good for about 10,000 write cycles before
>they burn out).

>> Or
>> would it be better to use a highmem solution for more ram? Remember
>> I'm new to all this, so please be gentle :) Here's what I'm wanting to
>> do...Just FYI.
>> I need a small render farm because my current pc takes about 8-10 hours
>> to render a single frame of an animation that I'm working on. At 24-30
>> frames per second of final product, this is painful!

>Generally speaking, raytracing/rendering is CPU-limited, not memory limited.

If you run out of memory and start swapping, you may as well quit. This
tells you you need more ram to do what you are doing. swapping is NOT a
solution to any known problem. The only advantage is taht once you run out
of ram, your system does not crash. However, it becomes almost useless.

>>
>> So, I'm thinking 8 nodes, Linux, MPI, network boot diskless nodes with
>> 2 GB ram on each node, with 1 GB swap on pen drive for each node.

Very bad idea. Put in more ram if you run out of memory. Do not put in swap
space as a replacement.
I would also put a disk on each, They are not that expensive.

>> Is this a complete insane idea?
>>
>> Thoughts/experiences/suggestions?
>> thanks!!

>--
>Remove '.nospam' from e-mail address to reply by e-mail



Relevant Pages

  • Re: excessive swap-in time
    ... Trying to do it all with RAM is just inefficient. ... I find that does not work well when the swapping is caused by excessive I/O ... Or you could have 5 TB of swap space. ...
    (comp.os.linux.development.system)
  • Re: Swap partition size (future proofing)
    ... > the HDD or using mkswap to create a swap file in an existing partition. ... > Suggested swap partition sizes from the archives range from the same size as ... > the RAM to twice the size of the RAM. ... you start actually using the swap space. ...
    (Fedora)
  • Re: excessive swap-in time
    ... my target is to have enough RAM to do without any swap space at all. ... One problem I have seen, and described elsewhere, is I/O cache/buffer space ...
    (comp.os.linux.development.system)
  • Re: 32-bit addressing question
    ... Swap space is almost useless for almost all problems. ... RAM in parallel). ... running 25,600 instructions per second. ...
    (comp.os.linux.setup)
  • Re: 32-bit addressing question
    ... Swap space is almost useless for almost all problems. ... RAM in parallel). ... running 25,600 instructions per second. ...
    (comp.os.linux.misc)