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 02-18-2002, 02:07 PM   #1
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Rep: Reputation: 30
Swap Partition Question


On my computer I have about 192mb of ram... i set my swap partition at about 256mb... is that enough or should i set it to double that size... someone was telling me it should always be set to double...so far my swap partition has not taken up past 100mb of virtual memory so far... i dont know if that makes a big difference or not...

thanks
 
Old 02-18-2002, 02:23 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
i never set mine over 125 megs.. the double the ram size dilema was used when most computers came with just 64 megs of space or less.. so 256 should be enough for ya..
 
Old 02-18-2002, 03:12 PM   #3
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
From the RedHat documentation:

"If your computer has 16 MB of RAM or less, you must create a swap partition. Even if you have more memory, a swap partition is still recommended. The minimum size of your swap partition should be equal to twice your computer's RAM, or 32 MB, whichever amount is larger, but no more than 2048 MB (or 2 GB)."

Linux also allows multiple swap partitions (up to 8, IIRC). I don't have a clue what the tradeoffs are for 1 big versus more small.

If you haven't allocated a big enough swap partition(s), you can add swap file space with swapon/swapoff. Disadvantage here is that swaps are written thru the file system layer instead of direct to the device and is slower. It can get you out of a spot if you run out of swap and need to keep the system going. Only real way to know how much swap space you need (other than running out) is to monitor mem/swap usage on YOUR machine.
 
Old 02-19-2002, 09:57 AM   #4
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
Yeah i have noticed in the past when i would run vmware that the swap would go to around 125 mb but almost never more...

thanks for the help
 
Old 02-19-2002, 10:36 AM   #5
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
One more thing on swap partitions...

I use multiple swaps across two or three drives. In these days of big disks, a gig of swap (512mb memory) on a 20 or 30 gig drive is not much. I also try to put the swap partition in the middle of the disk to minimize seek times. I don't know that the difference can even be measured, but theoretically, it sounds better. I also give the swaps that are NOT on the system drive a higher priority so they will be used first to lessen contention on the system drive.
 
Old 02-19-2002, 11:31 AM   #6
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
I've got 512Mb of swap (and 256Mb of physical) and I've not had any problems, even dual-X-ing Mandy with thymox running KDE on tty7 (through KDM) and root running BB on tty8 (through GDM), and an xvnc server being accessed over the lan.
 
Old 02-19-2002, 12:11 PM   #7
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
wow...i had no idea you could run two different gui's...how do you go about that?
 
Old 02-19-2002, 12:19 PM   #8
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
There's a thread around somewhere. You can do it with startx --: 2 (or something). The easiest way I've found:

Boot into init 5 (Mandy defaults to running KDM here)
Login
CTRL+ALT+Fx to another tty
Run GDM

For some reason you can't have two KDMs running, and XDM sometimes doesn't work properly like this. At least GDM tells you 'I can't find an available X session on tty7, opening a new one on tty8', or something like that.

And Microsux tries to tell us that them developing this 'let's two people have apps open at the same time on the same machine' for XP is new! Blergh!
 
Old 02-19-2002, 09:54 PM   #9
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
when i tried it... it would not let me do it, said something about a display open already on 0... i am using xfce and then tried startx blackbox and thats what i got...
 
Old 02-20-2002, 11:03 AM   #10
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
That's because you're running XFCE on Display 0. The startxblackbox, startgnome, startkde, etc, programs are most commonly used by the login manager. Try running GDM and selecting your window manager/desktop environment.

The way I do it at the moment is:

Text login.
startx.
Change to different tty.
text login as root.
gdm.
 
Old 02-20-2002, 11:07 AM   #11
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
when itry it with gdm i get bad comand name... is gdm on one of the mandrake cd's yu think?
 
Old 02-20-2002, 11:20 AM   #12
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
Yeah. It's part of Gnome:

KDM = KDE Desktop Manager
GDM = Gnome Desktop Manager
XDM = X Desktop Manager

Both KDM and GDM allow you to select your Window Manager/Desktop Environment from a drop-down list. XDM relies on some file in you ~ directory.
 
Old 02-20-2002, 11:35 AM   #13
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
do i need to just install gnome- the whole thing?
 
Old 02-20-2002, 11:38 AM   #14
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
I'm affraid I don't know the exact packages needed. At install time I normally install all the Window Managers and stuff. I don't have to squeeze my Linux into a small space, and I know that I definetely will play around with the different WMs. Try installing a few packages, then a few more, then some more. You won't need anything that's not on the CDs.
 
  


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
Multi booting swap partition question dogberry Linux - General 3 09-02-2005 08:14 PM
LFS 6.1 - a question on SWAP partition satimis Linux From Scratch 12 07-18-2005 09:08 AM
Swap Partition Question snatale1 Debian 1 09-21-2003 11:10 PM
Swap partition question. Mr_Floppy4 Linux - General 4 10-14-2002 11:15 PM
Dumb question about the SWAP partition freezinbutt Linux - Newbie 8 04-09-2002 01:36 PM


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