LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-11-2005, 10:31 AM   #16
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 35

If your machine isn't crashing, then you have no problem. This is just a difference between how Windows and Linux handle swap (page file in Windows) and system memory.

In Windows the preference is to use the page file on the hard drive, rather than fill up system memory.

In Linux the preference is to use the system memory/RAM first, before touching the hard drive. After all, RAM is *much* faster than your hard drive, so why do you want to be swapping in and out of memory from the hard drive if it can be avoided?
 
Old 02-11-2005, 12:45 PM   #17
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
cereal83:

cathectic is right. One question, how do you know that "memory is at 99%"? An example:

Code:
shilo@shilo2:~$ free -m
             total       used       free     shared    buffers     cached
Mem:           504        498          5          0         98        169
-/+ buffers/cache:        230        273
Swap:          486          0        485
If you see something like this, you may be thinking that there is only 5M free memory (memory is at 99%). So you think you are about to run out. Not so. The memory used by buffers/cache is easily reclaimed by applications as need. It will still be awhile before I need any swap.
 
Old 02-11-2005, 07:49 PM   #18
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 479

Rep: Reputation: 30
Shilo, well I went to menu then System then Info Ceneter and went to memory and it's a GUI of my total memory, Physical memeory and swap space the total memeory was at 99% and sthe swap was at 0% (not being used)

I dunno maybe it is working but I just dunno how it works
 
Old 02-12-2005, 12:50 AM   #19
major.tom
Member
 
Registered: Jun 2003
Location: Canada
Distribution: Slackware (current); Gentoo (newbie)
Posts: 142

Rep: Reputation: 15
I wouldn't be alarmed that your system is not using any swap. As long as `free` and `cat /proc/swaps` shows your system recognizes the swap partition there's no good reason Slack wouldn't grab it if it needed to.

A short while ago, I was using ext3 as my filesystems. At that time, my system used to use some swap. But (using a 2nd hard drive) I converted everything to reiserfs and also increased the size of the swap partition (512 MB RAM, 512 MB swap). Now my #'s look very much like Shilo's above. I didn't think that switching filesystems would make much difference to memory use, but I can't find another explanation for it.

I haven't seen it touch swap in ages. But the system is running well, so what do I care? As long as you have no stability issues (lockups/reboots) it should be just fine.

Garry
 
  


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
swap space alphisb0t Linux - Software 1 07-05-2004 03:16 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
swap space not being used bishal Linux - Software 16 05-07-2004 12:28 AM
Swap Space bawbag Slackware 6 07-16-2003 10:59 PM

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

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