Your message dated Sun, 02 Aug 2009 05:47:03 +0000
with message-id <[email protected]>
and subject line Bug#507577: fixed in xosview 1.8.3+debian-14
has caused the Debian Bug report #507577,
regarding xosview: dpatch for additional mem fields
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
507577: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=507577
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: xosview
Version: 1.8.3+debian-11
Severity: wishlist
Tags: patch
I created a patch that adds memory fields for SLAB, mapped files, and page
tables. It's mainly for the SLAB field, since if the SLAB cache gets very
large (let's say 1/3 of the system's ram or more), users might either
think that their apps are taking up that amount of memory or that there
might be a kernel leak.
This patch will only work with 2.6 kernels that list the fields "Slab",
"Mapped", and "PageTables" in /proc/meminfo.
Ryan Thoryk
System Administrator
onShore Networks, LLC
[email protected]
[email protected]
#!/bin/sh /usr/share/dpatch/dpatch-run
## 24_enhanced_mem.dpatch
## Dpatch by Ryan Thoryk <[email protected]>
## DP: Additional mem values for Linux
@DPATCH@
diff -urN xosview-1.8.3-orig/linux/memmeter.cc
xosview-1.8.3-new/linux/memmeter.cc
--- xosview-1.8.3-orig/linux/memmeter.cc 2006-02-17 22:33:06.000000000
-0600
+++ xosview-1.8.3-new/linux/memmeter.cc 2008-11-26 12:34:17.558494000 -0600
@@ -15,7 +15,7 @@
static const char MEMSTATFNAME[] = "/proc/memstat";
MemMeter::MemMeter( XOSView *parent )
-: FieldMeterGraph( parent, 4, "MEM", "USED+SHAR/BUFF/CACHE/FREE" ){
+: FieldMeterGraph( parent, 7, "MEM", "USED/BUFF/SLAB/MAP/PT/CACHE/FREE" ){
_shAdj = -1;
// Check and see if the memstat module has been loaded
@@ -43,8 +43,11 @@
if (_shAdj == 0)
setfieldcolor( 1, parent_->getResource( "memSharedColor" ) );
setfieldcolor( 2 + _shAdj, parent_->getResource( "memBufferColor" ) );
- setfieldcolor( 3 + _shAdj, parent_->getResource( "memCacheColor" ) );
- setfieldcolor( 4 + _shAdj, parent_->getResource( "memFreeColor" ) );
+ setfieldcolor( 3 + _shAdj, parent_->getResource( "memSlabColor" ) );
+ setfieldcolor( 4 + _shAdj, parent_->getResource( "memMapColor" ) );
+ setfieldcolor( 5 + _shAdj, parent_->getResource( "memPTColor" ) );
+ setfieldcolor( 6 + _shAdj, parent_->getResource( "memCacheColor" ) );
+ setfieldcolor( 7 + _shAdj, parent_->getResource( "memFreeColor" ) );
priority_ = atoi (parent_->getResource( "memPriority" ) );
dodecay_ = parent_->isResourceTrue( "memDecay" );
useGraph_ = parent_->isResourceTrue( "memGraph" );
@@ -54,11 +57,12 @@
void MemMeter::checkevent( void ){
getmeminfo();
/* for debugging (see below)
- printf("t %4.1f used %4.1f share %4.1f buffer %4.1f cache %4.1f free
%4.1f\n",
+ printf("t %4.1f used %4.1f buffer %4.1f slab %4.1f map %4.1f pt %4.1f cache
%4.1f free %4.1f\n",
total_/1024.0/1024.0,
fields_[0]/1024.0/1024.0, fields_[1]/1024.0/1024.0,
fields_[2]/1024.0/1024.0, fields_[3]/1024.0/1024.0,
- fields_[4]/1024.0/1024.0);
+ fields_[4]/1024.0/1024.0, fields_[5]/1024.0/1024.0,
+ fields_[6]/1024.0/1024.0);
*/
drawfields();
}
@@ -76,11 +80,11 @@
// without this fix "used" sometimes gets < 0 !
fields_[0] = total_ - fields_[4] - fields_[3] - fields_[2] - fields_[1];
}else{
- fields_[0] = total_ - fields_[3] - fields_[2] - fields_[1];
+ fields_[0] = total_ - fields_[6] - fields_[5] - fields_[4] - fields_[3] -
fields_[2] - fields_[1];
}
if (total_)
- FieldMeterDecay::setUsed (total_ - fields_[4 + _shAdj], total_);
+ FieldMeterDecay::setUsed (total_ - fields_[7 + _shAdj], total_);
}
MemMeter::LineInfo *MemMeter::findLines(LineInfo *tmplate, int len,
@@ -116,9 +120,12 @@
void MemMeter::initLineInfo(void){
static LineInfo infos[] = {
LineInfo("MemTotal", &total_),
- LineInfo("MemFree", &fields_[4 + _shAdj]),
+ LineInfo("MemFree", &fields_[7 + _shAdj]),
LineInfo("Buffers", &fields_[2 + _shAdj]),
- LineInfo("Cached", &fields_[3 + _shAdj])
+ LineInfo("Slab", &fields_[3 + _shAdj]),
+ LineInfo("Mapped", &fields_[4 + _shAdj]),
+ LineInfo("PageTables", &fields_[5 + _shAdj]),
+ LineInfo("Cached", &fields_[6 + _shAdj])
};
_numMIlineInfos = sizeof(infos) / sizeof(LineInfo);
diff -urN xosview-1.8.3-orig/Xdefaults xosview-1.8.3-new/Xdefaults
--- xosview-1.8.3-orig/Xdefaults 2006-02-18 19:36:08.000000000 -0600
+++ xosview-1.8.3-new/Xdefaults 2008-11-26 12:53:01.477496000 -0600
@@ -87,6 +87,9 @@
xosview*memUsedColor: seagreen
xosview*memSharedColor: SkyBlue
xosview*memBufferColor: orange
+xosview*memSlabColor: slateblue1
+xosview*memMapColor: lightgoldenrod
+xosview*memPTColor: lightgreen
xosview*memCacheColor: red
xosview*memFreeColor: aquamarine
xosview*memTextColor: blue
diff -urN xosview-1.8.3-orig/Xdefaults.in xosview-1.8.3-new/Xdefaults.in
--- xosview-1.8.3-orig/Xdefaults.in 2006-02-17 23:45:00.000000000 -0600
+++ xosview-1.8.3-new/Xdefaults.in 2008-11-26 12:37:19.204494000 -0600
@@ -87,6 +87,9 @@
xosview*memUsedColor: seagreen
xosview*memSharedColor: SkyBlue
xosview*memBufferColor: orange
+xosview*memSlabColor: blue
+xosview*memMapColor: SlateBlue1
+xosview*memPTColor: lightgreen
xosview*memCacheColor: red
xosview*memFreeColor: aquamarine
xosview*memTextColor: blue
diff -urN xosview-1.8.3-orig/Xdefaults.stipple
xosview-1.8.3-new/Xdefaults.stipple
--- xosview-1.8.3-orig/Xdefaults.stipple 1999-11-06 16:48:16.000000000
-0600
+++ xosview-1.8.3-new/Xdefaults.stipple 2008-11-26 12:25:50.067494000 -0600
@@ -14,6 +14,9 @@
xosvstipple*memUsedColor: orange
xosvstipple*memSharedColor: orange
xosvstipple*memBufferColor: orange
+xosvstipple*memSlabColor: orange
+xosvstipple*memMapColor: orange
+xosvstipple*memPTColor: orange
xosvstipple*memCacheColor: orange
xosvstipple*memFreeColor: orange
xosvstipple*memTextColor: orange
@@ -51,6 +54,9 @@
xosvstipplebw*memUsedColor: black
xosvstipplebw*memSharedColor: black
xosvstipplebw*memBufferColor: black
+xosvstipplebw*memSlabColor: black
+xosvstipplebw*memMapColor: black
+xosvstipplebw*memPTColor: black
xosvstipplebw*memCacheColor: black
xosvstipplebw*memFreeColor: black
xosvstipplebw*memTextColor: black
--- End Message ---
--- Begin Message ---
Source: xosview
Source-Version: 1.8.3+debian-14
We believe that the bug you reported is fixed in the latest version of
xosview, which is due to be installed in the Debian FTP archive:
xosview_1.8.3+debian-14.diff.gz
to pool/main/x/xosview/xosview_1.8.3+debian-14.diff.gz
xosview_1.8.3+debian-14.dsc
to pool/main/x/xosview/xosview_1.8.3+debian-14.dsc
xosview_1.8.3+debian-14_amd64.deb
to pool/main/x/xosview/xosview_1.8.3+debian-14_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Kartik Mistry <[email protected]> (supplier of updated xosview package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sun, 02 Aug 2009 09:36:14 +0530
Source: xosview
Binary: xosview
Architecture: source amd64
Version: 1.8.3+debian-14
Distribution: unstable
Urgency: low
Maintainer: Kartik Mistry <[email protected]>
Changed-By: Kartik Mistry <[email protected]>
Description:
xosview - X based system monitor
Closes: 507577
Changes:
xosview (1.8.3+debian-14) unstable; urgency=low
.
* debian/patches/24_enhanced_memory.dpatch:
+ Patch for additional memory fields (Closes: #507577)
* debian/patches/25_iostream_h_FTBFS_fixes.dpatch:
+ Patch to fix FTBFS due to use of iostream.h and fstream.h
* debian/copyright:
+ Added missing Authors and Copyright owners
Checksums-Sha1:
2d0b43b632bde6521693aaebf8307d35be6e777c 1116 xosview_1.8.3+debian-14.dsc
d24efb7f98bcf21ad36b00111ab9cc5615dcdd7f 30522 xosview_1.8.3+debian-14.diff.gz
20b6b308a44b93e61e7eeeb75ebb5de2d645da4e 106102
xosview_1.8.3+debian-14_amd64.deb
Checksums-Sha256:
c591feb24ad7c444251af9e01c816bf1d9984e453fd6097a4e56629eab3f91ea 1116
xosview_1.8.3+debian-14.dsc
2369598d7a10396209d3490e6c62b231fdcfb35ac36648243ba628c9829df5f0 30522
xosview_1.8.3+debian-14.diff.gz
5889f71f70c85e407d34cf3fea5d43e76bdc86db77e9a63da2ba0b6be5a53ed7 106102
xosview_1.8.3+debian-14_amd64.deb
Files:
69c55599545d6f4a329b109ad3e76782 1116 utils optional
xosview_1.8.3+debian-14.dsc
b363b6aa3aedb8dcc0cec2959db187ec 30522 utils optional
xosview_1.8.3+debian-14.diff.gz
9b4a99be796caa280b6ac65b0cbfeb71 106102 utils optional
xosview_1.8.3+debian-14_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkp1I+EACgkQoRg/jtECjI35yQCbBDa3SvoiMJo67X+H9+ye+lCO
dxMAniKdedq8gl7x6r/WaP7PnwKjC+Ad
=WERE
-----END PGP SIGNATURE-----
--- End Message ---