LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-17-2004, 09:42 AM   #1
d00msweek
Member
 
Registered: Jan 2004
Location: Cebu City, Philippines
Distribution: Slackware 10,Gentoo 2005.1,LFS
Posts: 92

Rep: Reputation: 15
Swap and Kernel 2.6.7


Hello ,

I've just finished compilingthe new kernel 2.6.7 (stable release) but I noticed that X is very slow (especially when i run Mozilla). I "free -m" and the results are :
Total USed Free
Mem : 107 105 1
swap : 125 0 125

Why wasnt swap used? But When I boot to kernel 2.4 everything is OK. Please Help ! Thanks


-Ramon Marco

Last edited by d00msweek; 06-17-2004 at 09:45 AM.
 
Old 06-17-2004, 03:34 PM   #2
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
The less your swap space is used, the better off you are, and zero swap usage is ideal. The situation you describe, where swap is totally unused, is a good thing.

Think about it - operations within RAM are orders of magnitude faster than I/O operations to/from the hard drive, and the only time swap would get used is if you push RAM past 100% capacity and it is forced to write out memory pages to the disk. This is very inefficient, and you want to avoid it as much as possible. -- J.W.
 
Old 06-17-2004, 03:43 PM   #3
mgargiullo
LQ Newbie
 
Registered: Sep 2003
Posts: 6

Rep: Reputation: 0
the kernel will attemp to load as much as it can into memory for performance sake.

Our web servers run Fedora Core 1 with a Gig of ram. Everything runs from memory, and it's lightening fast.

Swap generally isn't touched.
 
Old 06-17-2004, 05:29 PM   #4
d00msweek
Member
 
Registered: Jan 2004
Location: Cebu City, Philippines
Distribution: Slackware 10,Gentoo 2005.1,LFS
Posts: 92

Original Poster
Rep: Reputation: 15
ow.. ok

I forgot to add something. When I run "System Monitor" (GNOME) the "used swap" is 0 of 1k and "used memory" is 0 of 1k ???? Why 1k ? I have a 128 MB SDRAM (16mb is used by my video card) and I have 130mb swap.
 
  


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
How do I swap kernel modules ?? ozymandias Linux - Newbie 6 10-28-2005 09:46 PM
No HD swap with a home-compiled kernel. Linux.tar.gz Linux - Hardware 4 06-07-2005 04:57 PM
No swap activated on kernel 2.6 gt73 Slackware 4 08-30-2004 06:51 AM
no swap on self-compiled 2.6.3 kernel sterrenkijker Debian 0 03-21-2004 03:40 PM
new kernel(2.6.0) --> no more swap elluva Linux - Software 11 01-12-2004 05:56 AM

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

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