Computing.Net > Forums > Linux > How to find the Swap Space ?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to find the Swap Space ?

Reply to Message Icon

Name: Anand
Date: October 7, 2002 at 13:59:24 Pacific
OS: RH 7.3
CPU/Ram: 512
Comment:

Hi,
What is the command to find how much swap space has been allocated ?

Thanks

Anand



Sponsored Link
Ads by Google

Response Number 1
Name: robomop
Date: October 7, 2002 at 14:10:21 Pacific
Reply:

I dont think there is one
there probable is but i just dont know it or it needs to be installed
I also dont know how much space i ave on my
/ Drive
I guess it will be sorta same on how to find out


0

Response Number 2
Name: Jason
Date: October 7, 2002 at 14:20:57 Pacific
Reply:

in terminal

type to commmand "top"

it will display all things running and a rundown of other system info -- including the amount of swap space used.

To get out of the program hit CTRL-C



0

Response Number 3
Name: 0nie
Date: October 7, 2002 at 15:27:03 Pacific
Reply:

type "df" or "man df" if u want to get complete information


w/ honour..x))


0

Response Number 4
Name: crazymand
Date: October 7, 2002 at 16:22:48 Pacific
Reply:

cat /proc/meminfo


0

Response Number 5
Name: arnold
Date: October 7, 2002 at 17:50:05 Pacific
Reply:

cat /proc/swaps
or
swapon -s

Also
makewhatis
man apropos
apropos swap


0

Related Posts

See More



Response Number 6
Name: peter4u
Date: October 7, 2002 at 19:10:24 Pacific
Reply:

Look at all your drives and partitions:

fdisk -l /dev/hd?

(assuming you have the typical ide-drives, like most PC's)

See all mounted drives and the space:

df -k

See the allocated swap space:

swapon -s

Ignore the first 3 or 4 responses.


0

Response Number 7
Name: Lawrence
Date: October 7, 2002 at 19:11:47 Pacific
Reply:

Wouldn't the command "free" do??? And if you
want to know which process is "eating" your
memory, then "top" is the option...

Lawrence


0

Response Number 8
Name: dprovenger
Date: October 9, 2002 at 14:58:00 Pacific
Reply:

The following command will give you the amount of RAM and SWAP in Megs.

/usr/bin/free -m

You can also cat the /proc/swaps file to see which partition was alocated to SWAP and it will show you the size of SWAP as well as the amount being used.

/bin/cat /proc/swaps

I hope this helps.

DPROVENGER.


0

Sponsored Link
Ads by Google
Reply to Message Icon

virtual machine in linux? Linux as a domain control...



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: How to find the Swap Space ?

How to Find the current CPU load www.computing.net/answers/linux/how-to-find-the-current-cpu-load-/11860.html

how to find out the windows sharenames www.computing.net/answers/linux/how-to-find-out-the-windows-sharenames/7499.html

How to find disk info in Linux ? www.computing.net/answers/linux/how-to-find-disk-info-in-linux-/18739.html