LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-14-2004, 03:20 AM   #1
yotamk
Member
 
Registered: Nov 2004
Location: ~
Distribution: Debian
Posts: 145

Rep: Reputation: 15
Swap...


I've recently installed Debian sarge.

Applications take a long time (about 8 seconds) to launch.
My machine is new and when using WinXP (it's a dual-boot), apps launch very fast.
How can I optimize my Linux system to work faster?
My swap partition is about 500 MB while my ram is 1 GB. How can I change the size of the swap partition without reinstalling Linux - though logic tells me that first launch of an application shouldn't be affected by size of swap since it is loaded from harddrive.

Thanks.
 
Old 11-14-2004, 04:13 AM   #2
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
It used to be "common wisdom" that you'd normally have 2 x the amount of ram for the swap. But that particular bit of wisdom comes from a time when 64 megs was a lot of ram.

Besides, your system won't touch the swap until all the ram is being used, which usually means mega memory hungry app's, like digi video editing and the like.

Hence I'd suspect that it's not that, that's the problem.

You may want to have a look in the Debian sub forum at the Linux distro's or just search LQ, maybe for something like Debian+system+optimisation or something like that

regards

John

p.s. If you're dual booting and have access to Partition Magic, you should be able to make your swap bigger very easily - I understand that it can be done directly in linux, but I wouldn't know how - and yes, I did follow the "wisdom" of 2 x ram = /swap last time I did change anything (768megs ram =1.5 gigs of /swap. Almost definitely far too much, but as I have the room, it's not a problem) - oh and if you did regularly use apps that eat ram, you'd be better off getting more as it's considerable faster than /swap (disc read/write speeds etc).

Last edited by bigjohn; 11-14-2004 at 04:17 AM.
 
Old 11-14-2004, 01:14 PM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 83
Just to chime in, as bigjohn has indicated, if you've got 1G of RAM, it is extremely unlikely that your swap space would ever be used at all, and therefore increasing its size will only reduce the amount of free space on your hard drive. (Swap is only used when RAM is pushed past its capacity, and the system is forced to write memory pages out to disk.)

Please provide more details about your machine. If performance seems slow, it may be due to a relatively slow CPU, 5400 rpm drives (vs 7200 rpm), etc, etc. Also, what apps specifically are you launching that seem to take a long time? If any of them are OpenOffice apps, Yes, they are notorious for initially taking pretty long to load. -- J.W.
 
Old 11-15-2004, 01:57 AM   #4
yotamk
Member
 
Registered: Nov 2004
Location: ~
Distribution: Debian
Posts: 145

Original Poster
Rep: Reputation: 15
CPU 2.8 GHz,
HD 7200 rpm.
When using WinXP it's really a beast

Since I'm just a Linux Biginner, I'm currently using common software, e.g. Gimp, Kmail, Krusader, Firefox.
When launching an application, it takes a long time before anything happens (i.e. the application window appears).
 
Old 11-15-2004, 06:01 AM   #5
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
dd if=/dev/zero of=/boot/.swap bs=1024 count=512000
mkswap /boot/.swap
swapon /boot/.swap

Now add this line to /etc/fstab
/boot/.swap swap swap defaults 0 0
 
  


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
Linux swap / solaris not appearing as swap in Ubuntu? Erik_the_Red Linux - Newbie 1 07-30-2005 01:57 PM
Swap os2 Linux - General 1 03-18-2005 09:21 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 02:23 AM
Difference between Swap Virtrual memory and Swap Parition Nappa Slackware 4 11-27-2003 08:58 PM
Swap punker22 Linux - Newbie 3 10-14-2003 01:27 AM


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