LinuxQuestions.org
Review your favorite Linux distribution.
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, 10: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-04-2014, 12:19 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,859
Blog Entries: 36

Rep: Reputation: 458Reputation: 458Reputation: 458Reputation: 458Reputation: 458
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-04-2014, 12:33 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,525

Rep: Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744
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


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
[SOLVED] Size of /tmp in RAM arubin Linux - General 5 09-13-2012 01: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 04:49 AM
Moving /tmp to ramdisk cyberfishee Linux - Software 2 07-23-2008 08:33 PM
I need some help moving /tmp directory to another partition David_09 Linux - General 7 05-27-2007 11:42 PM
swap & /tmp dominant Linux - Newbie 4 03-18-2004 11:28 AM

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

All times are GMT -5. The time now is 10:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration