swap file space


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers swap file space
# 1  
Old 06-03-2003
swap file space

I occasionally get a "out of swap file space" error. How can I fix this??????

Thanks
# 2  
Old 06-03-2003
get a bigger swap partition or if you're feeling lazy make a big empty file and use that as a 2nd swap.
# 3  
Old 06-03-2003
I am a beginner, can you be more specific Smilie
# 4  
Old 06-03-2003
Oh yeh, forgot to tell you how to do it:

dd if=/dev/zero of=/swapfile bs=1024 count=SIZEINKB

replace SIZEINKB to something like 262144 for 256Mb

mkswap -c /swapfile SIZEINKB && sync

chmod 0600 /swapfile

finally:

add /swapfile swap swap defaults 0 0 to your /etc/fstab
# 5  
Old 06-03-2003
ps. Buying more RAM is a more ideal solution as swapping to disk is hiddeously slow compared to RAM access.

But if you don't have the money right now, the extra swap space wil be a nice stop-gap solution.
# 6  
Old 06-04-2003
Re: swap file space

Quote:
Originally posted by dtooth71
I occasionally get a "out of swap file space" error. How can I fix this??????

Thanks
What's the size of your swap partition at present? What about your RAM, how much do you have?
# 7  
Old 06-04-2003
swap file size is 58272 KB ??????on the system memory
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. UNIX for Dummies Questions & Answers

Swap two rows in a space delimited text file?

Hi, How do you swap two rows in a space delimited text file? Thanks! (4 Replies)
Discussion started by: evelibertine
4 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. Solaris

swap space in veritas file system

hi every one , i know how to add swap space in ufs file system. but i m facing problem in veritas file system . i wants to know how will i create swap or add new swap space in existing swap space . Note: disk under veritas volume manager control . please help me to solve this issue . (5 Replies)
Discussion started by: samy123
5 Replies

7. Solaris

/tmp: File system full, swap space limit exceeded

Can you help. My server sunning solaris 9 on x86 platform pretty much hung for a few hours... I could not use telnet or ssh to the box - it kept refusing connection. A few hours later - I was able to log in again. The server has not rebooted but here are the first errors in the messages log... (5 Replies)
Discussion started by: frustrated1
5 Replies

8. 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

9. 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

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