LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-03-2008, 07:42 PM   #1
jesseruu
LQ Newbie
 
Registered: Oct 2007
Distribution: Open SUSE 10.2, DSL
Posts: 19

Rep: Reputation: 0
Lightbulb is it possible to turn hardrive space into ram?


hey,

Is it possible to turn memory from an sd card into ram?
 
Old 06-03-2008, 08:08 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
That is essentially what swap space is used for, but you aren't technically replacing RAM. Swap space is used when the system runs out of actual RAM; but it is much much slower than real RAM, it is used as a last ditch effort to keep the system from locking up or losing data. It is not acceptable for full time use.

Especially flash media, which would be even slower than on a standard HDD.
 
Old 06-03-2008, 08:49 PM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
IF you had a SD card reader that did not go through usb it would not be as bad.
 
Old 06-03-2008, 08:57 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
Quote:
Originally Posted by lazlow View Post
IF you had a SD card reader that did not go through usb it would not be as bad.
True, but you do not want to use flash memory as swap due to the limited number of write/erase cycles and also its write speed being slower then a physical hard drive.
 
Old 06-04-2008, 02:31 PM   #5
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Quote:
IF you had a SD card reader that did not go through usb it would not be as bad.
Most internal SD readers are still on the USB bus, so the speed difference wouldn't be any different.

At any rate, the USB part of the equation is not what limits the speed of using SD, it is the fact that SD simply doesn't have very fast read or write compared to other storage technologies, certainly not enough to saturate a USB 2.0 reader.
 
Old 06-04-2008, 03:01 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
I guess my assumption was that he was maxed out on the motherboard for ram, indicating older technology. That probably would mean USB 1.0 which maxes out at 1.5 MB/s. Many of the newer SD cards are 15 MB/s or faster. There are also a number of companies that sell SD to IDE adapters. The limitation seems to be in the SD cards themselves as opposed to Flash.

http://www.newegg.com/Product/Produc...82E16820313023

The rewrite issue has been mostly taken care of now by the controller on the chip. It spreads the writes across the drive rather than continually rewriting in the same spot.
 
Old 06-04-2008, 03:16 PM   #7
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Quote:
The rewrite issue has been mostly taken care of now by the controller on the chip. It spreads the writes across the drive rather than continually rewriting in the same spot.
This is true if the card is being used for normal storage, but I wouldn't think it true if it was going to be used for swap, especially if there is limited real memory in the system.

Of course, I could also be wrong.

Forrest
 
Old 06-04-2008, 06:27 PM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
Quote:
Originally Posted by jesseruu View Post
hey,

Is it possible to turn memory from an sd card into ram?
My first question is what you would be using the SD for? As indicated a swap is for moving data/information in/out of system RAM.

There's nothing wrong with using a SD/Flash or other memory device for intermediate storage space. Heck, you can setup a ramdisk to speed exchanges between applications. That is done all the time, especially with servers.
 
  


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
How to increase RAM space internally sathish80 Linux - Newbie 2 09-24-2006 10:25 PM
Monitor doesn't turn on after suspend-to-ram tylerjroach Linux - Laptop and Netbook 1 07-28-2006 03:56 PM
Lost in space: unable to turn DMA on for DVD mlindhout Linux - Hardware 6 05-05-2006 02:20 AM
SWAP space=2*RAM p_test Linux - Enterprise 3 04-27-2006 02:22 PM
rm gets rid of file, but hardrive space doesn't get smaller (bash) r4nd0mz Linux - Software 2 05-02-2004 12:34 AM

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

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