Computing.Net > Forums > Linux > linux swap file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

linux swap file

Reply to Message Icon

Name: admiral
Date: October 20, 2004 at 09:53:27 Pacific
OS: win xp & linux
CPU/Ram: 256 megabytes
Comment:

hi! i 've installed recently mandrake linux 10. i'm pleased with my new os (i use windows xp too) but i think it is a little slow. a friend of mine said i need to create a swap file. how do i do that? which is the best size? i have 256 megs of RAM and a p-3 1 ghz.



Sponsored Link
Ads by Google

Response Number 1
Name: C_Legend
Date: October 20, 2004 at 14:47:03 Pacific
Reply:

Adding a swap file probably isn't going to make your machine faster (although I'm guessing you created a swap partition during your Linux installation and are using it now - run "free" from a command prompt and look under "Swap:").

To speed things up, remove a bunch of those services (daemons) you are loading at startup. Load the Mandrake Control Center ("mcc" at command prompt) and choose Services, then uncheck all unnecessary daemons to load at boot time. This will speed up the boot process and give you more free memory to work with, thus making the swap file less necessary (swapping effectively slows the machine down, not speed it up).

If you don't have a swap partition, create one by loading "fdisk /dev/hda", create your partition (I'd go with 256 Meg in your case, but then again, I don't know what you plan to run, either), change it to type "swap", "w"rite it out, then reboot. Next, enter "mkswap /dev/hda4" (changing "4" to whatever partition number the swap partition is on). Finally, add this line to your /etc/fstab file:

/dev/hda4 swap swap defaults 0 0

(or to turn the swap file on dynamically, enter "swapon /dev/hda4")

You might also look into an updated driver for your video card, if you're thinking your video is slow.

I run Mandrake 8.2 on an Athlon 950 with 640 Meg of RAM (16 Meg TNT2 AGP and 40 Gig Disk) and it's fast, so I'm not sure why (with the exceptions that I've mentioned) your system seems slow.

Good luck.


0

Response Number 2
Name: ernie
Date: October 21, 2004 at 08:05:43 Pacific
Reply:

Odds are you have a swap partition and do
not need to add one. The Mandrake installer
will complain if you choose to install with
no swap partition.

Use caution removing services in MCC's
system > services. some are needed for
secure operation.

If you use KDE, you should check to see
what is running in the dock (down by the
clock). If there are applets you do not
need or use, these can be removed.

You may want to run Mandrake Update to
check for updates. Sometimes updated
packages are released to correct bugs as
well as security issues. Even if you
recently installed Mandrake, there may well
be updates available. If you are using
Mandrakelinux 10.0, there are many updated
packages available, so the updates may take
some time.

HTH,

Ernie [ewilcox@buckeye-express.com]
ICQ 41060744
Registered Linux User 247790


0

Response Number 3
Name: admiral
Date: October 21, 2004 at 12:51:31 Pacific
Reply:

i ve installed mandrake without a swap partition, and i remember that the installer complain about it (but at, that time, i didn t know to create a swap and then i installed without it). But now i ve created a swap partition with 256 megs and the system is ok.

i didn t need to remove services and i think its better this way because im a newbie at mandrake (for now).

tnx guys.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Linux Training Cant start XP after suse ...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: linux swap file

Linux Swap File Probs. www.computing.net/answers/linux/linux-swap-file-probs/411.html

Linux Swap. www.computing.net/answers/linux/linux-swap/9737.html

Making a swap file www.computing.net/answers/linux/making-a-swap-file/1018.html