Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers SWAP SPACE
# 1  
Old 11-08-2000

I am using SOLARIS 7. I have formated my hard drive to consist of only 150MB of swap space. This isn't enough considering I am running Oracle. How do I create additional swap space?
Please list sources or commands.

PS mkswap doesn't work on my machine. ( I have swap and swapadd)

Thanks a bunch
# 2  
Old 11-08-2000
(excerpt from

To add a raw swap partition to a Solaris 2.x system, identify an unused partition on a disk. Traditionally, slice 1 is used for swap space. Add the following entry to /etc/vfstab, taking care to use the correct device name:

/dev/dsk/c0t1d0s1 - - swap - no -

Enable the new partition with the swap command:
swap -a /dev/dsk/c0t1d0s1

Check your change:

swap -l

swapfile dev swaplo blocks free

/dev/dsk/c0t3d0s1 32,25 8 164040 164040
/dev/dsk/c0t1d0s1 32,9 8 164040 164040
# 3  
Old 11-10-2000
Tools I GOT IT!!!!

I did a little research regarding this issue.

It turns out that it is very simple...

first, create a file with a size in megabytes of the swap space you wish. I did this in the root directory for simplicity.

mkfile 1024 /swapfile

second, manually add the file as swap space

swap -a /swapfile

this is it!!

Now it gets interesting. To have the swap space mounted everytime you machine boots, you need to edit /etc/vfstab.

You'll have to look at vfstab(4) for the syntax of the file, but as I have learned---It's there if you read it

Thanks for all your help

SmartJuniorUnix......UNTIL NEXT TIME
# 4  
Old 11-11-2000
There are many kinds of swap space. PxT accurately decribes disk space swap. Mr JuniorUnix accurately describes file space swap. Most people consider file space swap to be much less efficient and slower than disk space swap. I would recommend some research into the subject and make sure that you will be happy with file space swap vs. disk swap. Just to let you know, we never use file swap and always use raw disk swap. There is a considerable difference in performance between the two, as I recall.
# 5  
Old 11-12-2000
No remaining disk space/ partitions

If I have no disk space. Is my only option to utilize file swap space?

# 6  
Old 11-13-2000
You can add another disk, partition some swap space, and use the rest for file systems.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Extending swap space

I've to install Oracle binaries (I'm oracle DBA) and for that I've extend swap space in my home computer. My situation is like this. # parted -s /dev/sda print free Model: ATA VBOX HARDDISK (scsi) Disk /dev/sda: 38.7GB Sector size (logical/physical): 512B/512B Partition Table: msdos ... (1 Reply)
Discussion started by: Mukul Sharma
1 Replies

2. Red Hat

Swap space not getting used

CENT OS 5.8 server running with a huge java application which uses up all my ram (4GB) and requires excess of atleast 2GB.But the swap is not getting used up((8GB) of swap space left unused) leading a wierd error and stopping application to stop working. Any one here dealt with the same kind of... (2 Replies)
Discussion started by: shiek.kaleem
2 Replies

3. Solaris

Swap space

Dear All, I have a swap space of 16G available in Sol 10. I have allocated it as a seperate file system. But when the RAM Is full used , the system gets rebooted and the swap is not being used,. Any reasons for this. Rgds Rj (5 Replies)
Discussion started by: jegaraman
5 Replies

4. Linux

How to reclaim the space which i used to increse the swap space on Xen,

Hi, i have done a blunder here, i increased the swap space on Xen5.6 server machine using below steps :- 1056 dd if=/dev/zero of=/root/myswapfile bs=1M count=1024 1057 ls -l /root/myswapfile 1058 chmod 600 /root/myswapfile 1059 mkswap /root/myswapfile 1060 swapon /root/myswapfile ... (1 Reply)
Discussion started by: apm
1 Replies

5. Solaris

Swap Space

Could someone please explain how you know how much swap space you have on your system. See below: # swap -s total: 8225048k bytes allocated + 4863488k reserved = 13088536k used, 4008032k available # swap -l swapfile dev swaplo blocks free /dev/dsk/c3t0d0s1 32,25 16... (2 Replies)
Discussion started by: jamba1
2 Replies

6. Linux

swap space

Hi, I want to know how can i free the swap space if it is completely full, 0 mb remaining, (1 Reply)
Discussion started by: manoj.solaris
1 Replies

7. UNIX for Dummies Questions & Answers

Swap space used???

Plz I need to know how much swap mem free and used i have. I'm using Compaq Tru64 UNIX V5.1A (rev 1885) Thanx (1 Reply)
Discussion started by: Lestat
1 Replies

8. AIX

swap space / paging space

how do you get the paging space reduced without rebooting the machine ? the os is aix (2 Replies)
Discussion started by: aaronh
2 Replies

9. UNIX for Dummies Questions & Answers

Swap space is LOW

I checked the server and issued various command to investigated. but from teh output of swap -s and swap -l, i received the following swap -l swapfile dev swaplo blocks free /dev/vx/dsk/swapvol 197,7 16 4194800 4127696 /dev/vx/dsk/swap2 197,8 16 12582896... (3 Replies)
Discussion started by: TRUEST
3 Replies

10. UNIX for Dummies Questions & Answers

pageing space vs swap space

Hello, I would like to know if there is any difference between the pageing space and the swap space. Thank you in advance. (1 Reply)
Discussion started by: VeroL
1 Replies
Login or Register to Ask a Question