Z
Z
zizop2010-11-16 12:30:54
linux
zizop, 2010-11-16 12:30:54

Should I move the swap partition to a flash drive?

There is a nettop that we want to use as a mini-server. RAM there is 4Gb (you can’t add more) and there is a 16GB SD flash drive inserted. I really want to move a swap partition to it so that the total amount of available memory grows to 20GB. There are several questions:

1. What will happen if you remove the flash drive?)
2. I heard about the limit on the number of overwriting cycles for flash drives. Wouldn't she be killed very quickly with this use?
3. Somebody REALLY took out swap on a flash. What are the performance/reliability results?
4. Is it possible to use two swap partitions, one for flash (main), the other for HDD. And will the second one be used if you remove the flash drive?

Percent is Intel® Atom™ Processor 330 (1M Cache, 1.60 GHz, 533 MHz FSB)

Answer the question

In order to leave comments, you need to log in

10 answer(s)
N
NanoDragon, 2010-11-16
@zizop

The conclusion is obvious from the article on en.wikipedia.org/wiki/ReadyBoost , which talks about the benefits of flash memory.
Many people do just that, I throw off the libraries on a USB flash drive under Linux.
And if we use a flash drive as a swap, we free up the screw and increase the speed of access to the random swap section, which is very important.

S
Sergey, 2010-11-16
@bondbig

oh mother, don't talk nonsense oh y. My hair is frizzy from:

I have a 16GB SD card inserted. I really want to move a swap partition to it so that the total amount of available memory grows to 20GB.
Who told you this? I don't want to think that this is your own thought.

D
Dm Po, 2010-11-16
@brick812

if there is enough opera, then the swap is not needed in principle, especially for a netbook IMHO!

N
NanoDragon, 2010-11-16
@NanoDragon

Read about ReadyBoost , the conclusion is obvious.

D
Dm Po, 2010-11-16
@brick812

Unsubscribe plz when you start the sideboard, it's just interesting how it all ended.
Yes, and if you can link to the piece of iron, the sideboard was also going to run retracker on CentOS

A
adminimus, 2010-11-16
@adminimus

> Is it possible to use two swap partitions
, at least how much. You can set priorities for them when mounting. See mana for mount and swapon.

C
charon, 2010-11-16
@charon

My answer to you immediately: NO. Even if only because you do not understand the purpose of the swap. This is not an extension of the OP, this is a warehouse where all the junk is temporarily demolished, and then taken back if necessary.
If at the office every day at the end of the day all the computers are collected, counted, sealed and hidden in the warehouse, and in the reverse order in the morning, then this is approximately what you are trying to do. This is possible, of course, but half a day will be spent only on this red tape, and this time will be taken away from the actual work.

V
vreitech, 2010-11-17
@fzfx

IMHO, the average flash drive has too low write / read speed in order to comfortably use it as a swap.

S
stampoon, 2010-12-16
@stampoon

And do not even think, firstly, it is ME-EEEE-LONG, very much. Secondly, how do you kill the flash drive.

G
Georgy Khromchenko, 2011-01-08
@Mox

It will be slow, leave swap on the screw.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question