LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-08-2012, 11:48 PM   #1
FiftyOneFifty
LQ Newbie
 
Registered: Oct 2011
Posts: 14

Rep: Reputation: Disabled
Is it practical to mount swap /var and /tmp on a fast SD card to save the SSD?


I bought a compact 1Ghz Core Two Duo laptop on which I plan to install Arch, max RAM size in the specs is 2Gb. To enhanced speed, battery life, and durability, I replaced the 80Gb spinning drive it came with with a new 120Gb OCZ Vertex 2 (not the latest version I realize). The concensus seems to be that 2Gb RAM is not enought to run w/o swap, though I am more than willing to forgo suspend/resume. The system also has a build in SD card reader. If I put swap /var and /tmp on a quality brand class 10 eight gig SD card, would it be fast enough or would I be counteracting all the gains from the SSD in the first place. I realize I might be setting myself up for a hassle the day the SD fails, as I'm guessing even an identically prepared SD wouldn't just be pop in pop out as the device ID's would be different. Also, I would expect to lose the function of the SD slot (would ejecting the volumes containing swap /var and /tmp bring everything to a halt or could one quickly swap to another card to access files?).
 
Old 02-09-2012, 03:43 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
Quote:
The concensus seems to be that 2Gb RAM is not enought to run w/o swap, though I am more than willing to forgo suspend/resume.
It is not true, I have been running linux distros below 1.5Gb RAM. Rule of thumb: It depends. If you are working with plenty of images and/or video authoring yes 2Gb is good but uncomfortable if running other apps. But with 512Mb RAM I was able to become very productive with Absolute Linux doing .odt files and networking. As is said: It depends on how you employ your laptop.


Quote:
Also, I would expect to lose the function of the SD slot (would ejecting the volumes containing swap /var and /tmp bring everything to a halt or could one quickly swap to another card to access files?).
To some system processes /var and /tmp are critical directories that you should avoid undermining its access by the system. You'd better install them into the main partitions in your hard drive. Anyway you have 120Gb HD, that is more than enough for the system. Indeed I have once moved a /tmp into my data partition (out of tightening free space) by making a link into it, but it was a hard drive partition.

If you must play with / directories, you can play with /home. This one eats plenty of space, but the system can go on even if disconnected.

Hope it helps. Goodluck.

mm
 
Old 02-09-2012, 05:43 AM   #3
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
On 1.5GB ram, I've never gone into swapping. (although I don't do any video editing either!)
When I was using an SSD with 512MB ram, My system used to freeze whenever it began swapping as the write speed of that SSD was very slow. I wouldn't recommend putting a swap partition on an SSD or even an SD for this very reason.
 
Old 02-09-2012, 11:44 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
The OCZ Vertex 2, despite being a little bit older, is faster than any spinning HDD. I personally think that the "wear out thing" on SSDs is a part of the past, on modern SSDs it is said that you have a lifetime of about 35TB writing (example from Intel), which means if it should last 5 years you have to write about 20GB every day. So I personally don't care about the lifetime, I would just put it on the SSD.
 
Old 02-09-2012, 01:03 PM   #5
FiftyOneFifty
LQ Newbie
 
Registered: Oct 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thanks everyone, now I have a better idea of what my options are. I have a more powerful system for video editing, this is indended to be my portable work system. What I may do is create a swap on the SSD but not enable it in the install until I see if it is needed. This will replace my 5" UMPC, I decided I either needed a bigger screen or a better optomitrist
 
Old 02-10-2012, 09:20 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,965

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
Easy enough to run it without a swap partition. If you need it later you can add in swap file.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mount /home, /var and /tmp to the same partition Kwahab Linux - Software 7 10-14-2009 01:14 AM
how to securing /tmp , /var/tmp and /dev/shm hackintosh Linux - Security 7 10-17-2007 11:26 PM
Hard drive for swap/tmp/var? superluser Linux - Hardware 11 08-12-2006 05:21 PM
kde, /tmp, /var/tmp and all that garba Linux - Software 4 06-17-2005 12:31 PM
Newbie question - /tmp /var/tmp Mr happy Linux - Security 3 01-27-2003 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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