LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 11-04-2003, 09:48 PM   #1
fiending
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Rep: Reputation: 0
Swap Partition Space


I am installing Gentoo onto my computer and I was wondering if I need to have swap space. I have 512 megs of ram, definitely more than enough for what I am using this computer for, do I even need to have a swap partition? If so can it be 32 mb? I have heard that no form of linux uses over 128 megs of ram per partition of swap space, so I was wondering what the bare minimum needs to be for linux to successfully install and run. Is Swap detrimental to linux kernel compiling and booting successfully?
 
Old 11-04-2003, 10:05 PM   #2
xexix
Member
 
Registered: Oct 2003
Location: Long Island, N.Y., U.S.A
Distribution: Gentoo, Slackware
Posts: 79

Rep: Reputation: 15
You don't need a swap partition. A swap partition is handy if you don't have that much ram. I believe i had problems compiling kde with only 256MB of ram. Otherwise it's a complete waste of a partition.
IF you later decide for some reason that you need it, you can create a swap file on your file system that functions the same way - hence no need to pollute your drive or your partition table.

to create a swap file:
dd if=/dev/zero of=/mnt/swap bs=1k count=65536 (example 64MB swap file)
mkswap /mnt/swap
swapon /mnt/swap

you will need to place an entry in fstab for the swap to mounted at boot time. Or you can place it in a script if you like.

This is a better solution for when you really need it. I solved my kde compile by just creating a 64MB swap file and then removing it once i was done.
 
Old 11-04-2003, 10:07 PM   #3
LogicG8
Member
 
Registered: Jun 2003
Location: Long Island, NY
Distribution: Gentoo Unstable (what a misnomer)
Posts: 380

Rep: Reputation: 30
You don't really need one.
I have a GB and I've only once come close/exceeded it
and if you all of a sudden need swap space
(b/c your friend brought over an unbelievably large picture
of the earth from space)

...nm my friend xexix got it
 
  


Reply



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 07:05 AM
I installed linux and forgot to create a swap space partition Starch Linux - Newbie 5 06-22-2005 08:29 AM
deleting/resizing swap partition / increasing hd space saranga2000 Linux - Hardware 1 12-09-2004 10:03 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
How to increase SWAP partition space ? sureshsaragadam Linux - Newbie 23 10-01-2003 09:24 AM

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

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