swap partition?


 
Thread Tools Search this Thread
Operating Systems Linux swap partition?
# 8  
Old 05-28-2004
I think of Swap with some questions:
a)Will you run a lot of apps?
b)Will you run some apps for a BIG time?(server like time)
c)Will you run a lot of apps for a BIG time?

If any of this questions have a yes for answer, then you do need swap. But watchout, while it goes something like "virtual memory", having a lot of swap will only slow your system, and eat your space. The formula of swap needing space(swap=2*ram), works fine, but there's a limit, there is no point in having more then 1GB of swap space, since it will take forever to find the needed information in 1GB space. If you have an old system(like one with an HD of 5200 RPM), I would sugest not going past the 512MB os swap, and if you have an even older system(let's say a P133), I would sugest not using swap at all, or if you are gona use it, do not pass the mark of 128MB for swap.

And just to getting thigs right(correct me if I'm wrong):
The diference of Virtual memory, and swap partition, is that a swap partition is a predetermined space on the hd formated to do ONLY swap, while a Virtual memory will pick a part of the HD that you can use, formated with for exemple FAT32, FAT16, NTFS or whatever, and thus running much much more slower.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Shrink LVM partition & create new Linux Primary partition

Hello All, I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows, /boot - Linux Partition & another is LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc). Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 Replies

2. HP-UX

Could I mount a swap/dump partition on /tmp?

Hey Guys. Let show our disk-mapping structure on HP-UX B11.11 with df : # df /home (/dev/vg00/lvol5 ): 18979652 blocks 1224395 i /opt (/dev/vg00/lvol4 ): 120276192 blocks 1894100 i /var (/dev/vg00/lvol6 ): 19380328 blocks ... (3 Replies)
Discussion started by: aggadtech08
3 Replies

3. HP-UX

Swap device file and swap sapce

Hi I have an integrity machine rx7620 and rx8640 running hp-ux 11.31. I'm planning to fine tune the system: - I would like to know when does the memory swap space spill over to the device swap space? - And how much % of memory swap utilization should be specified (swap space device... (6 Replies)
Discussion started by: lamoul
6 Replies

4. UNIX for Dummies Questions & Answers

Size of swap partition during installation

Greetings. I've been into computers since the '80s, but this is my first attempt at Linux. I'm installing Debian Lenny on a PIII 733 with 10GB hard drive and 512MB Ram. I intend to use the machine primarily as a development server, with things like mySQL, Apache, php, etc. I don't really want... (22 Replies)
Discussion started by: fguy
22 Replies

5. Filesystems, Disks and Memory

Partition 1 swap not mounting ?

Hi, running mount, I get the following, no part1 swap as part1 swap has been created and is listed below. System works fine anyway. As I cannot unmount part1, what is a standard procedure to make part1 on. Jack ============= .. $ free total used free shared buffers cached Mem:... (2 Replies)
Discussion started by: jack2
2 Replies

6. Solaris

swap partition showing mounted in df -h

Dear All Anyone can help me what is the problem of swap partition? swap partition is showing mounted in df -h command output. Regards prakash (1 Reply)
Discussion started by: pshelke
1 Replies

7. Linux

How to give UUID to a swap partition?

Dear Folks Is there anyway to give a UUID to a swap partition? mkswap on CentOS 5 (util-linux-2.13-0.45.el5_1.1) appears to override this option ;-( # swapoff -a # mkswap -L swap1 /dev/sda3 Setting up swapspace version 1, size = 4293591 kB LABEL=swap1, no uuid And there's no... (3 Replies)
Discussion started by: Santi
3 Replies

8. UNIX for Dummies Questions & Answers

Linux/Windows Fat32 Swap partition.

I run a dual boot WinXP/Red Hat 8 system on my laptop. Since my hard drive is inherently small(laptop) I am trying to creat a swap partition for keeping mutually used files such as music/video etc... I have created a 2.5GB Fat32 partition with Partition Magic Pro and have windows recognizing the... (2 Replies)
Discussion started by: djtrippin
2 Replies

9. UNIX for Dummies Questions & Answers

Linux Swap Partition

How big do I set the swap partition when i'm setting up my hard drive to install RedHat. (Using Partition Magic) thanks! primal (2 Replies)
Discussion started by: primal
2 Replies

10. UNIX for Dummies Questions & Answers

Swap Partition Space

first of all, sorry about my english...I´m a spanish newbie to this marvelous OS and i have just a couple of doubts...u know? :-) 1) how big should my swap partition be if i installed debian 2.2r3 or FreeBSD 4.x on a AMD k7 1400Mhz with 512Mb of Random Access Memory? i heard that those OS... (1 Reply)
Discussion started by: I[X]ION
1 Replies
Login or Register to Ask a Question
SWAPLABEL(8)						     Linux Programmer's Manual						      SWAPLABEL(8)

NAME
swaplabel - Print or change the label / UUID of a swap area SYNOPSIS
swaplabel [-L label] [-U UUID] device DESCRIPTION
swaplabel will display or change the label / UUID of a swap partition located on device (or regular file). If the optional arguments -L and -U are not present, swaplabel will simply display the swap area label and UUID of device. If an optional argument is present, then swaplabel will change the appropriate value of device. These values can also be set during swap creation using mkswap(8). The swaplabel utility allows to change the label or UUID on actively used swap device. OPTIONS
-h, --help Print help and exit. -L, --label label Specify a new label for device. Swap partition labels can be at most 16 characters long. If label is longer than 16 characters, swapinfo will truncate it and print a warning message. -U, --uuid uuid Specify a new UUID for device. UUID must be in the standard 8-4-4-4-12 character format, such as is output by uuidgen(1). AUTHOR
swaplabel was written by Jason Borden <jborden@bluehost.com> and Karel Zak <kzak@redhat.com>. AVAILABILITY
swaplabel is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. SEE ALSO
mkswap(8), swapon(8), uuidgen(1) Linux 2 April 2010 SWAPLABEL(8)