LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Post installation. (https://www.linuxquestions.org/questions/linux-newbie-8/post-installation-102748/)

troycus 10-11-2003 07:36 AM

Post installation.
 
I 've been working with RH( for the past 3 weeks. I can see why
Linux is getting popular.

I'm still tweaking my installation of RH 9. I want to increase my swap space. How do I go about doing that?any help would be appreciated.

david_ross 10-11-2003 07:50 AM

Since swap space in linux is a partition you will need to increase the partition size. If you have unpartitioned space then it shoudln't be too hard. If all your hdd is partitioned then you will neet tp use a tool like parted to resize partitions.

Before you do anything you may wish to make sure that you do actually need more space - try running:
free -mto

troycus 10-11-2003 08:21 AM

When I ran that command, this is what I got:


total used free shared buffer chache

Mem: 115 112 2 0 5 42
Swap: 251 46 204
Total: 366 159 207


I'm trying to figure out why my system is running so slow. I figured if I increase the swap partition, this will increase the speed. From Looking at this, can you tell what is making linux run slow?

michaelk 10-11-2003 08:23 AM

There are other options to increasing the existing swap partition size. You can have multiple swap partitions. It might simply resizing operations or by just creating another partition if you have unallocated space.

If you just want to try adding additional swap space you could create a swap file. It will be slower then a partition but will not require you to change anything yet.

Nechos 10-11-2003 08:30 AM

when you did that command your system was running slow?t
how slow is it? i mean you have 'only' 128 MB of RAM, how fast you want it to be?
RH 9 is new (and big) os, maybe you should go for some some of the smaller ones...or install less programs (maybe even without KDE and/or gnome, but using iceWM or similar)
it seems that you have enough swap (i have ~500, and using rarely more than 0...)

david_ross 10-11-2003 08:41 AM

Quote:

Originally posted by troycus
When I ran that command, this is what I got:


total used free shared buffer chache

Mem: 115 112 2 0 5 42
Swap: 251 46 204
Total: 366 159 207


I'm trying to figure out why my system is running so slow. I figured if I increase the swap partition, this will increase the speed. From Looking at this, can you tell what is making linux run slow?

Try running:
top

Then press M and P to sort by Memory or processor usage respectively this may give you an idea of what is slwoing down your system. If that doesn't point anything out try:
sar 2 10

If it is slow due to hdd access time you may want to try looking at hdparam.

troycus 10-11-2003 08:52 AM

This is how slow RH( is running. I just launched mozilla web browser and it took 95sec for the window to appear. I'm trying to find out if it's the swap space that needs to be adjusted.


All times are GMT -5. The time now is 10:58 PM.