The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Partition 1 swap not mounting ? jack2 Filesystems, Disks and Memory 2 03-24-2009 10:42 AM
swap partition showing mounted in df -h pshelke SUN Solaris 1 02-14-2008 02:47 AM
swap partition? byblyk Linux 7 05-28-2004 02:44 PM
Linux Swap Partition primal UNIX for Dummies Questions & Answers 2 01-07-2002 12:37 PM
Swap Partition Space I[X]ION UNIX for Dummies Questions & Answers 1 08-24-2001 11:00 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-20-2009
fguy's Avatar
fguy fguy is offline
Registered User
  
 

Join Date: Aug 2009
Location: Toronto
Posts: 47
Size of swap partition during installation

Greetings. I've been into computers since the '80s, but this is my first attempt at Linux.

I'm installing Debian Lenny on a PIII 733 with 10GB hard drive and 512MB Ram. I intend to use the machine primarily as a development server, with things like mySQL, Apache, php, etc.

I don't really want to mess around with partitions first time through, so I went for the option of one big partition. It gave me 9.8 GB primary and 477.0 MB swap. I am a little concerned that the swap partition might be too small, I have seen it written elsewhere that a good rule of thumb is twice as much swap space as physical RAM.

So in your opinion do I have anything to worry about here, should I override the default swap size?
  #2 (permalink)  
Old 08-22-2009
thegeek thegeek is offline
Registered User
  
 

Join Date: Apr 2009
Location: /usr/bin/vim
Posts: 463
My suggestion is to, let it go for couple of days.
1. If you found that your system seems slower .. check with the free -om or top and ensure whether the swap becomes an issue.

2. If there are no issue at all, check with the free -om and top, and monitor for the free space in cache. If most of the times swap is used almost full, then you can consider extending the swap size.

And as of now there is no need to do anything urgent, i believe. And as like you, am also expecting a good answer for this question.
  #3 (permalink)  
Old 08-22-2009
Leppie's Avatar
Leppie Leppie is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 71
I've installed Debian Lenny on a 800mhz Duron with 160mb RAM and 500mb swap. With Enlightenment as the window manager using Firefox with several tabs open and running some other applications at the same time, RAM usage hardly ever touches 100mb and swap usage can be neglected (less than 10%). After boot with Enlightenment up and running, memory usage is under 40mb. Of course, if you start every daemon at boot and running several memory hungry applications (like firefox, open office, etc.) you may experience poor performance.
I don't know what kind of mySQL development you are planning to do, but my guess is that you should be ok for most development purposes. If your system is getting sluggish I suggest you get more RAM.

Hope this helps

Last edited by Leppie; 08-22-2009 at 08:00 PM..
  #4 (permalink)  
Old 08-22-2009
fguy's Avatar
fguy fguy is offline
Registered User
  
 

Join Date: Aug 2009
Location: Toronto
Posts: 47
Quote:
Originally Posted by Leppie View Post
I've installed Debian Lenny on a 800mhz Duron with 160mb RAM and 500mb swap. With Enlightenment as the window manager using Firefox with several tabs open and running some other applications at the same time, RAM usage hardly ever touches 100mb and swap usage can be neglected (less than 10%). After boot with Enlightenment up and running, memory usage is under 40mb. Of course, if you start every daemon at boot and running several memory hungry applications (like firefox, open office, etc.) you may experience poor performance.
I don't know what kind of mySQL development you are planning to do, but my guess is that you should be ok for most development purposes. If your system is getting sluggish I suggest you get more RAM.

Hope this helps
thanks to both of you. It sounds like I'll be ok, and this is just a dry run anyway. My development needs will be pretty lightweight. This machine is pretty much for learning, and that includes starting at ground0 with linux. I wouldn't be surprised if I end up repeating the install a time or two to deal with the fine points.

Now if I can only get my wireless working. I have no problem with learning the ins and outs of bash shell commands and editing my .bashrc and all that, but at the moment I'm out to lunch when it come to figuring out whether or not my hardware is working properly. All I know is, I had a wired connection going at the setup stage, cause I could connect to a mirror to download (using apt I guess) a desktop environment. After all these years, I'm a newb again.
  #5 (permalink)  
Old 08-22-2009
Leppie's Avatar
Leppie Leppie is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 71
you could search this forum for the wireless card model number and ubuntu or debian. if you cannot find an appropriate solution, you can post your issue in the Linux/Ubuntu sub forum.

good luck

PS: unless the requirements for your development projects change drastically or you damage the system beyond repair with one of your projects, you should not have to reinstall the system (it's not windoze)

Last edited by Leppie; 08-22-2009 at 10:12 PM..
  #6 (permalink)  
Old 09-16-2009
michealrp michealrp is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 7
not sure about Debian, but Red Hat used to follow this regarding swap at least around version 5 days.
  1. Systems with 4GB of ram or less require a minimum of 2GB of swap space
  2. Systems with 4GB to 16GB of ram require a minimum of 4GB of swap space
  3. Systems with 16GB to 64GB of ram require a minimum of 8GB of swap space
  4. Systems with 64GB to 256GB of ram require a minimum of 16GB of swap space
  #7 (permalink)  
Old 09-16-2009
Corona688 Corona688 is online now
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,972
The "twice as much swap as ram" rule of thumb comes from the good 'ol days when you never, ever had enough RAM and always burdened your system to the breaking point. The performance cost of waiting for swap is much higher than it used to be since CPU and RAM have sped up much faster than disk seeking; you'd need a RAID for multiple gigs of swap to be useful now. I never give more than a gig of swap for single-disk systems, usually just 512M.

That sounds like a good system to install Linux on. Old enough to be cheap, powerful enough to be useful. We used one for 3 years for everything you want plus file storage, DVD burning, and a hefty live database on top of that, often at the same time. A PIII can do a lot if you don't put Windows on it...

Last edited by Corona688; 09-16-2009 at 03:18 PM..
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:04 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0