LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices



Reply
 
Search this Thread
Old 03-24-2005, 02:17 PM   #1
AC97Conquerer
Member
 
Registered: Nov 2004
Location: US
Distribution: Debian Sid
Posts: 50

Rep: Reputation: 15
What if you had 2GB RAM and 4GB HD?


Because then that would mean your swap would be your whole hard drive! That would suck! lol
 
Old 03-24-2005, 02:34 PM   #2
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
swap doesn't have to be double your RAM...

on the setup you describe, there's nothing wrong with using a 2GB swap partition, or even less, or none... it's all relative to what kinda work you are doing...

if you really wanna use the entire 4 gigs for swap then just use a live cd distro which runs entirely in ramdisk... your computer will fly...


Last edited by win32sux; 03-24-2005 at 02:37 PM.
 
Old 03-24-2005, 02:35 PM   #3
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
That could be so on Windows...in Linux you don't configure the swap with 2 Gb of memory (...).
 
Old 03-24-2005, 03:46 PM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Moved: More suitable in General since its technically not a Linux technical question, seems more like a discussion starter or theory.
 
Old 03-24-2005, 07:54 PM   #5
AC97Conquerer
Member
 
Registered: Nov 2004
Location: US
Distribution: Debian Sid
Posts: 50

Original Poster
Rep: Reputation: 15
Quote:
if you really wanna use the entire 4 gigs for swap then just use a live cd distro which runs entirely in ramdisk... your computer will fly...
Would it be faster than a primary partition w/swap?
 
Old 03-24-2005, 08:58 PM   #6
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
yeah, when you have that kinda RAM, running a distro from a ramdisk will be a lot faster than doing it from the hard disk... the difference is HUGE... things that would have normally taken 10 seconds to open from the hard disk would take like one second from the ram disk (for example), depending on the compression used for the ramdisk and the cpu speed...
 
Old 03-24-2005, 09:09 PM   #7
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
I have no swap and my system is blazing fast.
 
Old 03-24-2005, 10:19 PM   #8
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
I hardly ever use swap on my 512meg system, and I run a LOT of stuff, 12 desktops worthe and I don't swap til I run Doom3... With 2 gig I doubt I would have swap at all... Maybe 200meg just in case (ie then I would see swap being used on the sysmon and know there was a mem problem...
 
Old 03-24-2005, 10:22 PM   #9
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Rep: Reputation: 121Reputation: 121
Believe me, swap is a waste of space on modern systems. I have seen the memory reports several times and swap has *never* been used at all.

Utter waste of space on a machine with > 512 MB RAM.
 
Old 03-24-2005, 10:36 PM   #10
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Swap a waste? It depends. You have to know what memory you are likely to need. I often use up to a gig when doing certain jobs in the past (game map compiling) and with only 256-512 ram you need the swap to be able to do it... In fact for a while I would make a tem 500meg file that I would add as swap halfway through the compile process as I was running out of memory.

With the current 512meg I don't use swap most of the time, but I run a lot of apps and so occasionally use a little more... And if I crank up doom3 while running kmail, FF, OOo and all the rest it tends to swap a bit

So you make swap big enough to cover whatever your needs are. Once you use linux and your PC a while you soon learn what you need...

If I had a gig of ram I would rarely use swap, but would keep 500meg just in case as HDD's are really big and that space is nothing these days.

I currently run 512meg ram and about a gig of swap... That's mostly as I have 3 HD's in at the moment and they all used to have various lilnux installs on and so there are swap partitions everywhere...
 
Old 03-24-2005, 10:43 PM   #11
AlexV
Member
 
Registered: May 2004
Location: New Lenox, IL
Distribution: Fedora Core 4; Ubuntu 5.10 (Breezy Preview); CentOS 4
Posts: 81

Rep: Reputation: 15
Swap is all very well and good, but if you've got 2GB of RAM why would you need it? I can't imagine anything I would possibly be doing that would require that much RAM... of course, in a few years that'll probably be standard on new systems.

And now, some words of wisdom about memory
Quote:
640K ought to be enough for anybody. -- Bill Gates

Last edited by AlexV; 03-25-2005 at 10:23 AM.
 
Old 03-25-2005, 06:51 AM   #12
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
I have used over 1 gig but at this stage I have never used 2 gig... I suppose it would depend on what you do with the PC. If I had a gig of ram I would need very little swap, if any...
 
Old 03-25-2005, 07:00 AM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,497

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
The old swap="2 times RAM" rule was from a time long past.
32 (maybe 64) Meb RAM days.

HOWEVER: I've got a Gig, and regularly have more than a Gig of swap active as well.
So, don't think swap is a waste on modern systems.
 
Old 03-25-2005, 07:42 AM   #14
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Swap still has its purposes for many other reasons.

We have production database servers with 32GB of memory and 32GB of swap space.. anyone guess into telling me why it's setup like that?

And at any given time during peak loads, swap is used and sometimes up to 30% to 40%.

Some of our lower class clustered machines have anywhere between 2 and 4GB of RAM with always a swap space of 2GB... Those hit 70% swap usage at times during high load times..

It just all depends on what your running or doing. Yeah, you got a workstation at home with 512mb or more of memory and your doing small tasks like email, internet browsing.. you shouldn't ever use swap, but its still good to have some allocated.

My workstations where I play no games have anywhere from 512mb to 1.5GB of memory.. all have at least a 200mb swap partition or less..
 
Old 03-25-2005, 08:08 AM   #15
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Rep: Reputation: 121Reputation: 121
I have a token swap space of 100 to 200 MB on my hard disk just to feel safe.

But of course, since I'm basically a desktop user and I have 512 MB of RAM, swap is hardly used, if at all.
 
  


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
REDHAT 9 SMP and more than 4GB RAM dukeoflinux Linux - Hardware 4 08-22-2007 11:33 PM
RH ES install - 2Gb ok, 4Gb not ok RedHatCat Red Hat 4 06-13-2005 11:14 AM
4GB RAM not showing eddie0uk Linux - Hardware 5 03-12-2005 08:08 AM
FC3 reboots if more than 4gb ram jmral23 Fedora 9 03-02-2005 04:55 PM
4GB hard disk is 2GB LinuxRam Linux - Newbie 7 08-25-2004 02:02 AM


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