LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-27-2015, 11:22 AM   #1
rudytblr
LQ Newbie
 
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
Used and Free Swap are Displayed Incorrectly in free and top


On several servers running CentOS 6.7 the free command and top command show incorrect used and free swap numbers. Is this a bug?

All applications on these servers are running fine.

Specifics:
CentOS release 6.7 (Final)
Kernel 2.6.32-573.3.1.el6.x86_64
12GB RAM

# free -m
total used free shared buffers cached
Mem: 11902 8218 3683 2 107 1111
-/+ buffers/cache: 7000 4902
Swap: 2047 1759218600 43853


# top -M

top - 15:17:15 up 3:08, 1 user, load average: 10.59, 9.11, 7.98
Tasks: 342 total, 1 running, 341 sleeping, 0 stopped, 0 zombie
Cpu(s): 59.2%us, 0.2%sy, 0.0%ni, 38.0%id, 2.6%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 11.623G total, 8231.625M used, 3670.742M free, 107.543M buffers
Swap: 2047.992M total, 17592186044375.174G used, 42.826G free, 1114.492M cached
 
Old 08-27-2015, 02:48 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Compare with
Code:
free -g
 
Old 08-27-2015, 05:17 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
hah, certainly looks like a bug to me. Either that or you've discovered a hole in space time, in which you can dump 1.7 PB of data (or 17 ZB if you look at top) into a 2 GB partition and still have 43 GB free!

Last edited by suicidaleggroll; 08-27-2015 at 05:18 PM.
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Swap confusion from Top and Free Outputs Rohit_4739 Linux - Newbie 2 07-19-2013 06:06 PM
Comparing Cached Free Memory with Top, Meminfo, and Free dman777 Linux - Software 2 04-27-2013 11:03 AM
Debian incorrectly displays free space Pantherman Linux - Hardware 2 05-27-2012 09:18 PM
Why doesnt top or free show swap memory usage ? exceed1 Linux - General 15 08-03-2009 09:38 PM
Swap space used: Why does free and top show different amounts compared to ps doublefrangelico Linux - Newbie 1 06-23-2009 02:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:30 PM.

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