LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-25-2007, 03:37 AM   #1
Polarian
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Rep: Reputation: 0
USB Stick RAID (with swapfile)


This question seems to be one of those ones that's either an awesome idea or completely moronic. I've played around with linux a fair bit, but don't consider myself at all an expert, so don't be surprised if its the latter.

Anyway, this is my situation. I'm ordering myself a tablet PC (Fujitsu T4220), and am going to install linux (probably Ubuntu) on it. I want good battery life, so I'm trying to do everything I can to maximize it. From the research I've done, one of the primary battery users is the hard drive. Now, I'm going to have 2GB of RAM, so hopefully I shouldn't need the swapfile all that much. But when I do, its going to use up my battery. So I researched ideas to minimize this impact. First I came upon the idea of putting the swapfile in a ramdisk. However, from what I've read this is generally not recommended. Then I had the idea of putting it on a usb stick (similar to vista's ReadyBoost). However, the slow transfer speeds (especially write speed) of usb sticks kind of bother me.

So, the idea I had to maximize my transfer speeds was to buy three 2GB usb sticks (there are 3 usb ports on the T4220) and make a RAID 0 out of them, and put the swapfile on that. I'd probably split it, with half of the total 6GB to the swapfile and half to frequently accessed data. The only article I could find on a usb stick RAID was an old (2005) one, but that led me to believe it is in fact possible to make a usb stick raid. However, I'm still not entirely sure, and have no idea as to the effect on battery or performance. So if anyone could enlighten me as to that, and to whether this is in general an awesome/moronic idea, I'd greatly appreciate it.

Edit: Oh, an I'm also not entirely sure that this is the right section, so if it isn't please move the topic.

Last edited by Polarian; 06-25-2007 at 03:40 AM.
 
Old 06-25-2007, 06:55 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
1. With 2 GB you do not need swap.
2. USB sticks have limited number of writes, you are going to "wear them out" fast if you really swap on them.
I'd create a small (say 512 MB or even less) swap partition and turn it off by default.
 
Old 06-25-2007, 05:36 PM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Using USB for data transactions is not smart because it will stall other USB devices. IEEE-1394 or firewire is a lot better data transaction. USB is meant to be used with very low-speed devices like keyboard, mouse, tablet, and other devices.

Setting up RAID-0 (stripping) with flash cards is ok, but only if you are willing to create the device that will hold all the cards and circuitry to protect the cards from power loss and data corruption using ECC.

Go to bitmicro.com and read through their solid-state hard drives. Bitmicro has better SSD than other SSD manufactures because they supply SSD to government and to companies that make devices to handle harsh environments. Other SSD manufactures are cheap but they do not have hardware to resist abrupt power loss, ECC, cell age detection. However, they cost several thousand US dollars.

BTW, I am not selling Bitmicro. I came across their site several years ago.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot from USB stick if no booting USB in Bios 1kyle SUSE / openSUSE 1 03-26-2007 12:24 AM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 11:12 AM
usb stick jwijesundra Linux - Newbie 2 02-03-2005 11:51 PM
USB problems: Memorex USB stick 256MB and PSX to USB adapter by Radio Shack Knuckles T15 Linux - Hardware 1 05-19-2004 06:58 PM
USB-Stick/usb-storage JC_at_LQ Linux - General 2 07-14-2003 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration