LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 06-20-2009, 02:47 AM   #1
sunilkumar kondeti
LQ Newbie
 
Registered: Jun 2009
Posts: 1
Thanked: 0
about swap space


[Log in to get rid of this advertisement]
what is swap space,how it is useful to us
sunilkumar kondeti is offline  
Tag This Post ,
Reply With Quote
Old 06-20-2009, 02:49 AM   #2
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 306
Thanked: 14
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
arckane is offline  
Tag This Post , ,
Reply With Quote
Old 06-20-2009, 09:25 AM   #3
onebuck
Guru
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 5,445
Blog Entries: 1
Thanked: 204
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!
onebuck is offline     Reply With Quote
Old 06-20-2009, 09:52 AM   #4
Shadow_7
Member
 
Registered: Feb 2003
Posts: 458
Thanked: 19
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
Shadow_7 is offline     Reply With Quote
Old 06-20-2009, 11:59 AM   #5
onebuck
Guru
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 5,445
Blog Entries: 1
Thanked: 204
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.
onebuck is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
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 to reduce swap space and reclaim the space grantm Linux - Newbie 3 11-19-2007 12:32 PM
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 04:07 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration