[asterisk-bugs] [Asterisk 0016837]: [patch] core show sysinfo shows invalid (negative value) for ram on systems whith a lot of ram

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Feb 17 02:50:57 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16837 
====================================================================== 
Reported By:                jlpedrosa
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16837
Category:                   Core/General
Reproducibility:            have not tried
Severity:                   text
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.2.2 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-02-16 07:32 CST
Last Modified:              2010-02-17 02:50 CST
====================================================================== 
Summary:                    [patch] core show  sysinfo shows invalid (negative
value) for ram on systems whith a lot of ram
Description: 
Hi, i've just installed asterisk and saw this:

system has 12 gigs of ram.

System Statistics
-----------------
  System Uptime:             20 hours
  Total RAM:                 -185548 KiB
  Free RAM:                  2886420 KiB
  Buffer RAM:                68400 KiB
  Total Swap Space:          755012 KiB
  Free Swap Space:           755012 KiB

  Number of Processes:       202 

*CLI> Killed


root at bender:~/installation/asterisk-1.6.2.2# vmstat 
procs -----------memory---------- ---swap-- -----io---- -system--
----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id
wa
 0  1      0 11283924  68412 952548    0    0     1     2   46   60  1  0
99  0
====================================================================== 

---------------------------------------------------------------------- 
 (0118142) jlpedrosa (reporter) - 2010-02-17 02:50
 https://issues.asterisk.org/view.php?id=16837#c118142 
---------------------------------------------------------------------- 
I patched it and get same result (i dind't make the replace of wdoekes):

  500  cd installation/asterisk-1.6.2.2
  501  wget
'https://issues.asterisk.org/file_download.php?file_id=25335&type=bug' -O -
| patch -p0
  502  make
  503  make install
  504  asterisk -cdvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
*CLI> core show sysinfo 

System Statistics
-----------------
  System Uptime:             39 hours
  Total RAM:                 -185548 KiB
  Free RAM:                  2870500 KiB
  Buffer RAM:                73148 KiB
  Total Swap Space:          755012 KiB
  Free Swap Space:           755012 KiB

  Number of Processes:       197 

*CLI> Killed 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-02-17 02:50 jlpedrosa      Note Added: 0118142                          
======================================================================




More information about the asterisk-bugs mailing list