LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 06-20-2009, 02:47 AM   #1
sunilkumar kondeti
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
about swap space


what is swap space,how it is useful to us
 
Old 06-20-2009, 02:49 AM   #2
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 306

Rep: Reputation: 38
Physical RAM may get full, so a space on the hard drive is used as "swap" for caching and reading back.

http://en.wikipedia.org/wiki/Paging#Linux
 
Old 06-20-2009, 09:25 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,473
Blog Entries: 4

Rep: Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525
Hi,
Quote:
Originally Posted by sunilkumar kondeti View Post
what is swap space,how it is useful to us
Swap space is more than enough for understanding. Read and understand!
 
Old 06-20-2009, 09:52 AM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,554

Rep: Reputation: 241Reputation: 241Reputation: 241
Basically swap gives you options. Instead of the OS saying, no you cannot launch anymore apps, you don't have the RAM for it. Or just giving up and shutting down (like windows does, wink) when it runs out of resources. Swap gives you a sort of fake ram. And space for other things where none may otherwise be available. encrypted filesystems? compressed read-only media? You don't always need it, and if you do need it regularly, you might consider other system upgrades to manage that. But if you need it and don't have it, that's a bad thing. Windows has swap too, but when you're trying to be RAM, using a file on a filesystem that's slow as molasses creates a bottle neck that amplifies the need for swap. Sometimes beyond being useful in the first place.

man swapon
man swapoff
man mkswap
 
Old 06-20-2009, 11:59 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,473
Blog Entries: 4

Rep: Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525
Hi,

You have the option of a 'swap file' or a 'swap space'. Two different things.

BTW, M$ does support both. It's just their handler is not as sufficient or efficient as the GNU.
 
  


Reply

Tags
file, space, swap, system, virtual


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
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 08:05 AM
swap file or swap space? simonb1975uk Linux - General 11 08-15-2008 03:39 PM
swap space (or) swap file yusufs Linux - Newbie 8 07-17-2008 03:02 AM
how much swap space is needed; how to increase swap space? johnpaulodonnell Linux - Newbie 5 03-23-2007 04:20 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 02:23 AM


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