LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-28-2002, 12:29 AM   #1
Xreagan
Member
 
Registered: Aug 2002
Posts: 42

Rep: Reputation: 15
swap partition


I have Debion 3.0 installed (2.4 kernel) . Pretty cool. However, when I check Process Manager, it shows swap as 0/0. Looks like swad did not get activated though I did configure a swap during install, and I did initialize it (I did this twice)

What did I do wrong? In the interim. I have installed swapd, but that is not the real McCoy. What went wrong?

thanks
 
Old 08-28-2002, 04:09 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
well maybe it doesn'e NEED the swap...? why should it necessarily be used?
 
Old 08-28-2002, 05:03 AM   #3
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Rep: Reputation: 30
How much RAM du you have?
 
Old 08-28-2002, 05:15 AM   #4
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Rep: Reputation: 30
If you have 256 or 512 RAM, Linux manages all information byhimself and doesn't throw it to swap.
 
Old 08-28-2002, 09:20 AM   #5
Xreagan
Member
 
Registered: Aug 2002
Posts: 42

Original Poster
Rep: Reputation: 15
I have 256 megs of ram. But on the Graphical system analysis (or whatever), it shows swap 0/0 (avail/used)
 
Old 08-28-2002, 09:40 AM   #6
Sfin
Member
 
Registered: Apr 2002
Location: Michigan
Distribution: Slackware 8.0
Posts: 197

Rep: Reputation: 30
But how much of your RAM is it using?

Linux is smart when it comes to memory management, so it will use up all the RAM that it needs, and only reverts to using the swap when it runs out of RAM.
 
Old 08-28-2002, 09:46 AM   #7
Xreagan
Member
 
Registered: Aug 2002
Posts: 42

Original Poster
Rep: Reputation: 15
I am not using much ram. I will load it up and check what happens. Is their some command I can use to check available swap though?

Also, I installed swapd, should I deinstall that if, infact, my original swap is okay?
 
Old 08-28-2002, 09:57 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
free

Free will show you how much RAM is used, and how much SWAP (if any).

I would read around on the board, recently Martin Brooks (MartBrooks) provided some info on this, I believe it's in the Slackware Section of the Distro's forum. To sort of summarize, you will want to read these man pages on swap:
man swapon
man mkswap
man swapoff

HTH
 
Old 08-28-2002, 01:57 PM   #9
Xreagan
Member
 
Registered: Aug 2002
Posts: 42

Original Poster
Rep: Reputation: 15
I checked my fstab file. Here is what it shows...

FileSys mountPt type opt dump p
======== ======= ===== ===== ====== ====
/dev/hda4 none swap sw 0 0


Should I modify this. I dont think the mount point is right.
When installing Debian3.0, I did the mount swap selection. Why did I end up with this swap setting?

thanks
 
Old 08-28-2002, 02:08 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
that's fine. you still haven't said why you are demanding that the swap be used... with 256 of ram you shouldn't instantly need a swap file.
 
Old 08-28-2002, 02:11 PM   #11
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally posted by acid_kewpie
with 256 of ram you shouldn't instantly need a swap file.
... exactley cause my little FTP and NFS server only has 64 meg of RAM, in which the swap still hasn't been used ever.
 
Old 08-28-2002, 02:15 PM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
And it would appear that if you ever did need Swap (which with 640MB I never ever ever ever in Linux have had the need) it would be there, happily waiting.

At least that would be what I would think, since I have never had to put this into practice, I am not sure.
 
Old 08-28-2002, 03:20 PM   #13
Xreagan
Member
 
Registered: Aug 2002
Posts: 42

Original Poster
Rep: Reputation: 15
The reason why I wm trying to get my swap configured correctly (even though I may not NEED it) is because....

1) as an American, close isnt good enough....
2) I am doing this as an intellectual exercise.....

and (drum roll please)....
3) I want my machine to conform to me, not vice versa.

... also, Linux does expect to have swap available... It wants to page out when it wants to, not necessiarly when it needs to...
 
Old 08-28-2002, 03:36 PM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
yes but there's NOTHING to suggest that it's NOT working correctly!!!
 
Old 08-28-2002, 03:44 PM   #15
Xreagan
Member
 
Registered: Aug 2002
Posts: 42

Original Poster
Rep: Reputation: 15
Well, my older machine (with 256megs) would use SWAP (up to 50 megs), even though it had ram available.

I think the point of this thread is to configure swap correctly, not to determine whether I would really need it or not. The intellectual pursuit of perfection is half the fun..

 
  


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

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

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