LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-03-2002, 09:09 AM   #1
SchoolITguy
Member
 
Registered: Oct 2002
Posts: 57

Rep: Reputation: 15
Smile Swap question


I just have a question about the swap partion. I understand pretty much what it does I think. What I don't understand is about the size. Is bigger better? or is there a size depending on the hard drive that works best?
Any insight on this would be very helpful.
Thanks
 
Old 12-03-2002, 09:20 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Workstation = 100 to 200 MB in size will do you fine if you have over 128 MB of RAM.

Server = 200 MB or more, especially if you intend to have lots of users on the machine.

This is asked and discussed all the time, a search will bring up many results.
 
Old 12-03-2002, 09:27 AM   #3
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
A sub-question: Is it possible to mount a swap partition and take a peek at whats in it? Just out of curiosity.
Thanks
-NSKL
 
Old 12-03-2002, 07:29 PM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
The question of swap size is a difficult one to answer. On a personal workstation, you shouldn't need too much unless you are doing some really intensive image manipulations or math calculations. On servers, you could end up with with some pretty large swap partitions, especially if it's a database server. You basically have to know how your application behaves.

And yes, it is possible under the right circumstances to search through swap space and see what's there.
 
Old 12-04-2002, 09:02 AM   #5
SchoolITguy
Member
 
Registered: Oct 2002
Posts: 57

Original Poster
Rep: Reputation: 15
I have heard of as much as 1gig of swap space, is too much bad? Do I under stand swap that if you more users you have connected the more swap you need? How does swap differ from ram then?
 
Old 12-04-2002, 09:19 AM   #6
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 18.04, Bodhi 5.0
Posts: 691

Rep: Reputation: 45
Quote:
Originally posted by SchoolITguy
I have heard of as much as 1gig of swap space, is too much bad? Do I under stand swap that if you more users you have connected the more swap you need? How does swap differ from ram then?
As was stated earlier, it depends. For a workstation setup (basically one/two users logged on at a time), a total of 250-300MB of RAM and swap is usually quite enough. For a server with lots of simultaneous usage may need 1 GB swap partition. A swap partition is a form of virtual memory. Because it resides on a drive, it is slower than physical RAM. Linux tries to make as much use of available RAM as possible, including using it for cache processes. It will spill over to a swap partition as needed, but understands the speed limitations of swap. Linux does manage memory resources very well.
 
Old 12-04-2002, 09:25 AM   #7
SchoolITguy
Member
 
Registered: Oct 2002
Posts: 57

Original Poster
Rep: Reputation: 15
That what I thought. Thank you for answering my question. It is small things like that sometimes you can never figure out unless you ask some one.

Thanks again
Kevin
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
question about swap what0101 Linux - Newbie 3 09-19-2005 02:52 PM
Mount question and hot swap question Dr Gutiemouth Linux - Newbie 8 10-20-2004 12:30 PM
Swap question johntramp Linux - Newbie 4 04-16-2004 11:30 PM
Swap Question powerismine Slackware 3 05-09-2003 12:40 AM
Swap Question wonderpun Linux - General 3 09-08-2002 04:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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