LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-12-2005, 05:26 PM   #1
mikeyflynn
LQ Newbie
 
Registered: Jul 2005
Posts: 1

Rep: Reputation: 0
question about RAM


i have read that linux uses ram differently, and that i need to create a swap partition.
what i'm wondering is, what gets saved in ram and what gets saved in the swap?
i know from windows that the swap partition saves files, does ram do this to? and how long will it stay in ram? if i load something into ram, will it be there if i reboot my pc? sorry if this is a simple question, i'm just trying to understand the difference and how big i should make the swap partition. i have 256mb of ram.

thanks

mikey
 
Old 07-12-2005, 05:34 PM   #2
ctkroeker
Senior Member
 
Registered: May 2005
Location: Paraguay
Posts: 1,565
Blog Entries: 1

Rep: Reputation: 50
Welcome to LQ!
Swap is just to keep programs running if you phisical ram is all used up. If you have 256MB ram and are going to use a windo manager like KDE, than make a 500MB SWAP partition. Should be good enough.
 
Old 07-12-2005, 05:39 PM   #3
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
ram does not keep any data when you reboot your pc.
swap however is a partition on your hdd. when you open files, write to them, data is saved to the swap drive - when your computer should crash, you can open the file you have been edition, and you should get promtet saying that there is a swap file for the file you ware wanting to edit... the computer asks you what to do: ignore, use swap file, etc...
also - if you have too little ram linux will use your swap partition/drive instead... which obviously is slower than ram.
 
Old 07-12-2005, 08:40 PM   #4
Michael Johnson
Member
 
Registered: Jul 2005
Location: Wagga Wagga, Australia
Posts: 262

Rep: Reputation: 30
The swap parttition is simply an extension of you RAM. It is a temporary strorage space where data from your RAM is saved so that that the RAM can be reused by another application that requires it. When the data is needed it is copied from the swap partitiom back to your RAM.
 
  


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
ram question kpachopoulos General 1 11-17-2005 05:36 PM
question about ram... zerojosh Linux - Hardware 1 06-17-2004 07:46 PM
RAM and Swap Question? gsmonk Linux - General 7 09-07-2003 01:59 PM
Question about RAM OrganicX General 10 03-13-2003 02:53 PM
RAM question... Thymox General 2 01-14-2002 12:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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