SWAP not being used in Linux.


 
Thread Tools Search this Thread
Operating Systems Linux SWAP not being used in Linux.
# 1  
Old 03-18-2009
SWAP not being used in Linux.

Hi,

I am facing a weird problem in one ofmy linux boxes.

top & ps -ef commands hang on the server.

swap is not at all being used on the server.

Below are the details of swap:

# swapon -s
Filename Type Size Used Priority
/dev/cciss/c0d0p2 partition 8392552 0 -5
/dev/mapper/vg01-extraswap partition 4194296 0 -6
/swapfile file 131064 0 -7


free -m
total used free shared buffers cached
Mem: 7978 7305 673 0 312 6300
-/+ buffers/cache: 691 7287
Swap: 12419 0 12419



Plaese suggest any solutions.

Regards.
# 2  
Old 03-18-2009
Quote:
Originally Posted by sag71155
[...]
top & ps -ef commands hang on the server.
Define "hang". Do they refuse to start or update properly?
Quote:
Originally Posted by sag71155
swap is not at all being used on the server.
[...]
Code:
             total       used       free     shared    buffers     cached
Mem:          7978       7305        673          0        312       6300
-/+ buffers/cache:        691       7287
Swap:        12419          0      12419

[...]
For listings, please use [code ][/code ] tags (sans the space)

From the output of free I see that you have about 12G of swap space activated, of which nothing is used.

Out of your circa 8 GB of main memory, 7.1 GB are used. About 6.2 GB of those 7.1 GB are non-swapping cached data, eg. files that are kept in memory for faster access and that will be free'd as soon as needed. That means that your applications and daemons need about 1.6 GB, or 21% of your main memory. Hardly a size where swapping would take place.
# 3  
Old 04-07-2009
hello dear
if u got some disk space in your macine create a partition and format that partition with swap file system
after formatting with swap file system. enable the swap filesystem by executieng a command
#swapon < device name >
ex # swapon /dev/hda9
to check it whtr it is enable or not
#swapon -s
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Swap memory usage is high in Linux

Hi , There is one following alert . Message : cdm:Average (2 samples) swap memory usage is now 91%, which is above the warning threshold (90%) Here is my findings. Output of TOP command in Linux server. top - 14:21:44 up 6 days, 4:48, 1 user, load average: 2.55, 2.06,... (3 Replies)
Discussion started by: Maddy123
3 Replies

2. Solaris

Explain the output of swap -s and swap -l

Hi Solaris Folks :), I need to calculate the swap usage on solaris server, please let me understand the output of below swap -s and swap -l commands. $swap -s total: 1774912k bytes allocated + 240616k reserved = 2015528k used, 14542512k available $swap -l swapfile dev swaplo... (6 Replies)
Discussion started by: seenuvasan1985
6 Replies

3. UNIX for Dummies Questions & Answers

SWAP command not working on Linux machine

Hi I am working on linux machine and swap command is not working Linux Machine On Solaris machine it is working fine: uname -a SunOS rgsm01 5.9 Generic_118558-03 sun4u sparc SUNW,Sun-Fire-V440 swap -s total: 6596320k bytes allocated + 1035968k reserved = 7632288k used, 38893408k available ... (5 Replies)
Discussion started by: Basant Mishra
5 Replies

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

5. Red Hat

swap not defined as swap

free -m : 1023 total swap space created default partition /dev/sdb1 50M using fdisk. i did write the changes. #mkswap /dev/sdb1 #swapon /dev/sdb1 free -m : 1078 total swap space this shows that the swap is on Question : i did not change the type LINUX SWAP (82) in fdisk. so why is... (5 Replies)
Discussion started by: dplinux
5 Replies

6. Solaris

Swap config - Mirror swap or not?

Hello and thanks in advance. I have a Sun box with raid 1 on the O/S disks using solaris svm. I want to unmirror my swap partition, and add the slice on the second disk as an additional swap device. This would give me twice as much swap space. I have been warned not to do this by some... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

7. Solaris

swap -l

When i try to type swap -l ,nothing come out but blinking. May i know what is the problem and solutions ? thanks (6 Replies)
Discussion started by: Farbegas
6 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
Login or Register to Ask a Question