Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Swap partition - how big?, Is there a formula / guideline?< Next Oldest | Next Newest >
LancerNZ Offline





Group: Members
Posts: 5
Joined: Mar. 2005
Posted: June 27 2005,08:32 QUOTE

Okay - now that I've installed to my HD, I'm thinking i should have made a swap partition as performance can be slow on tis old notebook (I think 8mb RAM but not sure).

Question 1: How do I get system info of my box regarding RAM, CPU spec etc?
Question 2: How do I figure out the ideal swapfile / partition size for the same machine?
Question 3: Can I use something like fdisk to add a swapfile nondestructively or will this require a reinstall from scratch?
Back to top
Profile PM 
skaos Offline





Group: Members
Posts: 430
Joined: April 2004
Posted: June 27 2005,15:22 QUOTE

If you really only have 8 MB, I would suggest that you try Basic Linux (http://distro.ibiblio.org/pub/linux/distributions/baslinux/) as DSL requires more than 8 MB (I'm not sure, but DSL may be possible to boot into command line).

Q1:
Download tomsrtbt (http://www.toms.net/rb/), create a diskette, boot and run these commands:
free
more /proc/meminfo
more /proc/cpuinfo
dmesg | more
fdisk -l

Q2:
An old rule of thumb says that swap should be twice physical ram.

Q3:
If there is some free space on the disk not used for a partition, it is possible. Otherwise, no.
Back to top
Profile PM 
LancerNZ Offline





Group: Members
Posts: 5
Joined: Mar. 2005
Posted: June 28 2005,19:06 QUOTE

Thanks.

Looks like I actually have 36Mb RAM in this thing and around a 100Mhz CPU. Seems to be zipping along reasonably well after adding some 74Mb or so swap.
Back to top
Profile PM 
tjm4fun Offline





Group: Members
Posts: 22
Joined: Jan. 2005
Posted: June 28 2005,20:29 QUOTE

The general rule of thumb with swap is 2x your ram.
I've found alot depends on the size and number of apps you have open.
for a machine with 36 meg I would advise at least 128 m, 256 m if you have the space, cause you're gonna run out of real ram pretty quick.
If you;re doing ok, tho, I would leave it till a problem shows up and then make the change.
Also be sure you are using the swap, if it wasn;t formatted as swap when you booted, it won;t be using it.
To format for swap open a root window, or add sudo in front of this:
mkswap /dev/hdax

where you would substitute your actual hda device number.
The when done issue:
swapon

or sudo swapon if you don;t have root auth.
It will start using the swap right away, and will automatically use it on each subsequent reboot.
Good luck!


--------------
one laptop. many worlds.
W2k,Slackware10,DSL,Yoper, and others as my mood changes
Visit my home at: www.bitbenderforums.com
Help is only a post away!
Back to top
Profile PM AOL 
3 replies since June 27 2005,08:32 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Swap partition - how big?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code