LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-03-2014, 09:03 PM   #1
Serph
LQ Newbie
 
Registered: Jun 2012
Posts: 6

Rep: Reputation: Disabled
Moving swap and /tmp to ram


Hi people

I wanted to know, is it possible to move the swap and the tmp to the ram memory on Debian Wheezy 64bits LXDE?

Thanks in advance!
 
Old 05-03-2014, 11:19 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Moving swap to RAM tells me you may not understand the purpose of swap. Swap is harddisk space that behaves like RAM. e.g. if your system runs out of RAM instead of crashing it will start moving applications to swap because it is basically RAM overflow. If you don't want swap then simply disable it. Moving it into RAM defeats the purpose of its existence and has an added negative effect that the OS will move RAM overflow... into RAM... which you get my point I think.

Regarding moving your /tmp directory into RAM that can be accomplished by mounting a tmpfs ram disk on /tmp.
 
Old 05-03-2014, 11:33 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
You might be surprised.
Search zswap and zram for example. There are techniques being developed driven by people not wanting to swap to SSD. It's still somewhat in a state of flux - I don't know what kernel (and options) Wheezy offers.
 
  


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
[SOLVED] Size of /tmp in RAM arubin Linux - General 5 09-13-2012 12:26 AM
Why size of swap space is 2x of RAM??? Why not 1.5x of RAM or 2.5x of RAM??? Saurav Ghosh Linux - Newbie 7 11-01-2011 03:49 AM
Moving /tmp to ramdisk cyberfishee Linux - Software 2 07-23-2008 07:33 PM
I need some help moving /tmp directory to another partition David_09 Linux - General 7 05-27-2007 10:42 PM
swap & /tmp dominant Linux - Newbie 4 03-18-2004 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:56 PM.

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