LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-19-2010, 12:25 PM   #1
smoothys-jack
LQ Newbie
 
Registered: Feb 2009
Posts: 7

Rep: Reputation: 0
More RAM on a USB flash drive?


Hi all,

Hopefully this doesn't cause any eyes to roll. lol

I have an older laptop that has 512MB of DRAM. I got curious as to whether I could use a 2GB smart card that rides in a USB carrier as RAM. I did some googling and I don't see exactly what I'm looking for. Does anyone here know of a method of using a USB flash drive (which is what the above combo constitutes) as RAM?

Thanks in advance.
 
Old 05-19-2010, 12:33 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I doubt you can use it as RAM, but you could probably use it as swap.
 
Old 05-19-2010, 12:41 PM   #3
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
No worries, there are no dumb questions.

The answer to your question is something called "Swap" that is built into all Linux distros. It works just like Virtual Memory in Windows to create a type of "overflow" allowing you to run applications that are too big for your actual RAM.

You can create a swap partition on the drive using a partition editor such as Gparted, then turn it on with the swapon command.

Be aware however that using a USB flash drive for this purpose will be extremely slow (and will wear out the flash memory eventually); it will not speed up your computer in any way shape or form, its only benefit would be allowing you to run memory-intensive applications or work with very large files that would not otherwise be possible with only 512mb.
 
Old 05-19-2010, 05:40 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
I guess it really could be done. Memory and hard drive and usb are really only addresses to the OS. The main issue is if you can overcome the single purpose design of the box (all x86 boxes).

It might help to make use it as swapboost or a ram drive.
 
Old 05-20-2010, 12:24 AM   #5
smoothys-jack
LQ Newbie
 
Registered: Feb 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the input everyone.

Speed is what I'm after here, so it looks like an upgrade. This old Vaio only accomodates 1GB according to the Sony website. Of course, maybe that's a Win(bl)ows issue. Don't know.

Thanks again!!!
 
Old 05-20-2010, 02:50 AM   #6
rich_c
Member
 
Registered: Apr 2008
Location: UK
Distribution: PeppermintOS
Posts: 387
Blog Entries: 74

Rep: Reputation: 81
From what I can tell from threads on this subject in the past, swap on a USB will wear it out!

I'd consider a lighter desktop environment. I've got a laptop with probably the bare minimum (or less..) spec for standard SimplyMEPIS 8.5. None the less, it runs KDE4 quicker than our far more powerful PCs at work rin Win XP... ;-> However, I installed LXDE in addition to KDE4 and when I log in with that it flies by comparison and is very usable. Especially with suitably lightweight apps too.
 
1 members found this post helpful.
Old 05-21-2010, 10:39 AM   #7
smoothys-jack
LQ Newbie
 
Registered: Feb 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Now I'm screamin!

Thanks Rich, it never occured to me to go with LXDE. I run Mint Helena, and have loved their implementation of the gnome desktop. But I installed LXDE and lubuntu through synaptic and logged back in, and now my machine is as fast as a brand new one.

Great piece of advice, rich. thanks.
 
Old 05-22-2010, 02:38 AM   #8
rich_c
Member
 
Registered: Apr 2008
Location: UK
Distribution: PeppermintOS
Posts: 387
Blog Entries: 74

Rep: Reputation: 81
I do like running the choice of two environments because I can get the speed with LXDE but still run my KDE apps when I want/need to either by starting them in LXDE or logging in as KDE.

Glad my suggestion helped!
 
Old 05-22-2010, 10:00 AM   #9
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
The access time of each (average, DDR2 SDRAM):

RAM = 25 ns
SD card = 1 ms = 1000000 ns
HDD = 9 ms = 9000000 ns (for very fast HDD) usually more like 15000000 ns

Transfer rate:

RAM = 6400 MB/s (peak)
SD card = 20 MB/s read, 18 MB/s write (best case)
HDD = 120 MB/s (fast HDD)

No, it won't work, except as extra swap space.

http://www.tomshardware.com/reviews/...rd,2143-9.html
http://en.wikipedia.org/wiki/Dynamic..._access_memory
http://www.xbitlabs.com/articles/sto...roundup_7.html
 
1 members found this post helpful.
  


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
USB Flash Drive, write protect, and flash file system questions storkus Linux - Hardware 4 12-01-2008 04:32 AM
/var in RAM on a flash drive system mudflap Slackware 2 10-01-2008 06:44 PM
fedora 7: autofs is not mounting USB flash drive or DVD ROM drive Hewson Linux - General 3 05-12-2008 08:58 AM
flash drive for/as RAM? plesaleza Linux - General 3 08-22-2007 06:40 PM
cannot delete drive from root desktop - cannot mount usb flash drive - openSuSE 10.2 bluecog6 Linux - General 6 01-29-2007 03:18 PM

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

All times are GMT -5. The time now is 12:57 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