LinuxQuestions.org
Visit Jeremy's Blog.
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-31-2003, 02:32 AM   #1
samik_ban
LQ Newbie
 
Registered: Jul 2003
Posts: 12

Rep: Reputation: 0
Smile need for swap partition?


what is the need of swap partition in linux.as far as i know every os uses the hard disk for swapping pages then why do i require a separate swap partition for linux.
 
Old 07-31-2003, 03:42 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
A partition is on the hard disk, it's just a compartiment or logical drive, which would get a drive letter of it's own under windows ... so for all practical purposes it is a hard drive.
 
Old 07-31-2003, 03:58 AM   #3
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
As I understand it the swap partition gives a performance advantage over having a swap file on a normal partition as you don't have the extra file system layer that need processing between read/writes. The swap partition is the filesystem if you see what I mean.

Welcome to LinuxQuestions!

cheers

Jamie...
 
Old 07-31-2003, 11:49 AM   #4
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Rep: Reputation: 31
Sorry for the interruption but I have a simple question regarding swap partition, too. If I am to install 2 distros on the same machine, is one swap partition enough for me or do I have to make 2 of them?
 
Old 07-31-2003, 11:54 AM   #5
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
They can share the swap partition without any problem.

cheers

Jamie...
 
Old 07-31-2003, 11:57 AM   #6
Bolivar
LQ Newbie
 
Registered: Mar 2003
Posts: 24

Rep: Reputation: 15
the swap file is used as "ram" once your ram is full
on most newer systems this isnt an issue with linux
its more of an issue with windows due too the poor memory management
the swap file came in handy back in the day when ram was really expensive
debian for example will allow you to procede with the install without a swap
the distro i use i set my swap so small its really of no use
but at a gig of ram ill never fill it up
 
Old 07-31-2003, 12:07 PM   #7
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Rep: Reputation: 31
Thanks
 
Old 07-31-2003, 12:26 PM   #8
darin3200
LQ Guru
 
Registered: Dec 2002
Distribution: Gentoo!
Posts: 1,153

Rep: Reputation: 45
I only have 512 mb and I never used more then 300.
 
  


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
Swap partition Mojojo Linux - Hardware 10 01-20-2005 05:12 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM
Should I be using a SWAP partition? Gene126 Linux - General 3 08-14-2002 09:03 PM
swap.partition anoop_chandran Linux - General 3 12-28-2001 09:48 AM
Swap partition Thomas_Delrue Linux - Newbie 3 07-12-2001 08:35 PM

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

All times are GMT -5. The time now is 10:36 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