Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > General
User Name
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!


  Search this Thread
Old 03-25-2005, 08:11 PM   #16
Registered: Nov 2004
Location: US
Distribution: Debian Sid
Posts: 50

Original Poster
Rep: Reputation: 15

How can you tell how much swap space you're using at the current time?

|root:~|: fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1        9118    73240303+  83  Linux
/dev/hda2            9119        9242      996030   82  Linux swap / Solaris
|root:~|: du -s /dev/hda2
0       /dev/hda2
Old 03-25-2005, 08:34 PM   #17
Senior Member
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Old 03-25-2005, 08:40 PM   #18
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
also, top will give you a "real-time" picture of your swap usage, among other things...
Old 03-27-2005, 03:53 PM   #19
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi all.

Have a look at what the kernel developers think:

Personally, I have 512MB of RAM, and 512MB of swap. That swap space has saved the day on more than one occasion when an app has had a serious memory leak.

Old 03-27-2005, 05:41 PM   #20
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 13,262

Rep: Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289
As I said earlier, swap is needed. The swappiness control is pretty gross - in that it affects the whole system.
For your average desktop user that want to bias their system one way or the other, it's possibly useful. I suspect most game players couldn't give a damn if O_office takes a while to swap back in, when they finish a game and have to get back to their homework.

There are kernel patch sets available that modify the current, and/or add new scheduler algorithms if you're feeling keen.
Not generally considered "stable", but features implemented will potentially make into the release stream at some point.
Old 03-27-2005, 05:46 PM   #21
Registered: Nov 2004
Location: US
Distribution: Debian Sid
Posts: 50

Original Poster
Rep: Reputation: 15
Originally posted by syg00
...when they finish a game and have to get back to their homework.
That is soooo me lol
Old 03-28-2005, 07:21 PM   #22
Mr. New
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80

Rep: Reputation: 15
my swap(512) is 8 times as large as my ram(64)
I use the swap all the time (I've been without it before, it goes slow and nothing opens)

sometimes I run both KDE and GNOME
side note- I think XFce4 panel gots a memory leaking problem, although it might have been a plugin for it that did. it was using 5 times more memory then it usually does earlier today.

but with 2 GBs of ram it would be so awesome 4 GB hardrive is plenty for me I'm only using 2.3 or so now


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
REDHAT 9 SMP and more than 4GB RAM dukeoflinux Linux - Hardware 4 08-22-2007 10:33 PM
RH ES install - 2Gb ok, 4Gb not ok RedHatCat Red Hat 4 06-13-2005 10:14 AM
4GB RAM not showing eddie0uk Linux - Hardware 5 03-12-2005 07:08 AM
FC3 reboots if more than 4gb ram jmral23 Fedora 9 03-02-2005 03:55 PM
4GB hard disk is 2GB LinuxRam Linux - Newbie 7 08-25-2004 01:02 AM

All times are GMT -5. The time now is 09:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration