After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 385090 - swap indicators doen't work on solaris (snv)
swap indicators doen't work on solaris (snv)
Status: RESOLVED OBSOLETE
Product: libgtop
Classification: Core
Component: solaris
unspecified
Other opensolaris
: Normal normal
: ---
Assigned To: libgtop maintainers
libgtop maintainers
Depends on: 346021
Blocks:
 
 
Reported: 2006-12-12 15:49 UTC by timeless
Modified: 2013-12-05 10:59 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description timeless 2006-12-12 15:49:42 UTC
this has been a long standing bug (as long as I've been reporting bugs about gnome system monitor on OpenSolaris).

steps:
1. install snv (tested: snv_53, but also 49, 43, 41)
2. log into gnome
3. add the gnome system monitor panel
4. get preferences for it
5. enable network and swap space
6. close
7. as root, add some swap
8. as a user, browse the web (loading Bugzilla to file bugs works).

expected results: *anything* in those two meters.
actual results: nothing
Comment 1 Benoît Dejean 2006-12-13 11:35:00 UTC
libgtop version please.
Comment 2 timeless 2006-12-13 11:48:21 UTC
swift% plocate libgtop
/usr/lib/libgtop-2.0.so=libgtop-2.0.so.7.0.0
/usr/lib/libgtop-2.0.so.7=libgtop-2.0.so.7.0.0
/usr/lib/libgtop-2.0.so.7.0.0
swift% pkginfo -l SUNWlibgtop
   PKGINST:  SUNWlibgtop
      NAME:  Library to get system specific data
  CATEGORY:  GNOME2,application,JDS4
      ARCH:  i386
   VERSION:  2.16.1,REV=110.0.4.2006.11.13.17.32
   BASEDIR:  /usr
    VENDOR:  Sun Microsystems, Inc.
      DESC:  Library to get system specific data
    PSTAMP:  verbal20061113093324
  INSTDATE:  Dec 12 2006 02:00
   HOTLINE:  Please contact your local service provider
    STATUS:  completely installed
     FILES:        4 installed pathnames
                   1 shared pathnames
                   1 directories
                   1 executables
                 127 blocks used (approx)

Comment 3 Benoît Dejean 2006-12-13 18:24:50 UTC
Please grab the CVS, compile with --with-libgtop-examples and please try to run a few examples. Alternatively, if you have gnome-desktop-python, i could give you instruction for tests.
Comment 4 timeless 2006-12-13 20:33:33 UTC
I'm assuming bug 346021 covers my network problems.

I'm not planning on building random parts of JDS, what do I need to do for this python stuff?
Comment 5 Benoît Dejean 2006-12-13 20:45:22 UTC
I don't know. If you don't have it, it's probably easier for you to get libgtop CVS or source and manually build it. I was suggesting gnome-desktop-python (the official gnome desktop binding) which contains a libgtop wrapper because it is a simple tool to use libgtop without writing a C program.

Alternatively, you could try jhbuild.
Comment 6 timeless 2006-12-13 22:07:00 UTC
for now, assume i do have it. i'm not at the computer atm...
Comment 7 timeless 2006-12-14 10:36:22 UTC
swift% pkginfo -l SUNWgnome-python-desktop
   PKGINST:  SUNWgnome-python-desktop
      NAME:  Python support desktop libraries for GNOME
  CATEGORY:  GNOME2,application,JDS4
      ARCH:  i386
   VERSION:  2.16.1,REV=110.0.4.2006.11.13.17.33
   BASEDIR:  /usr
    VENDOR:  Sun Microsystems, Inc.
      DESC:  Python support desktop libraries for GNOME
    PSTAMP:  verbal20061113093425
  INSTDATE:  Dec 12 2006 02:09
   HOTLINE:  Please contact your local service provider
    STATUS:  completely installed
     FILES:       29 installed pathnames
                   5 shared pathnames
                   8 directories
                  13 executables
                 924 blocks used (approx)

Comment 8 Benoît Dejean 2006-12-19 20:22:48 UTC
Try something like this :

benoit@ibook >>> python
Python 2.4.4 (#2, Oct 20 2006, 00:57:46)
[GCC 4.1.2 20061007 (prerelease) (Debian 4.1.1-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
t>>> import gtop
>>> gtop.mem()
Struct { .buffer = 13328384, .cached = 126664704, .free = 15761408, .locked = 0, .shared = 0, .total = 528195584, .used = 512434176, .user = 372441088 }
>>> gtop.swap()
Struct { .free = 1093787648, .pagein = 979033, .pageout = 725007, .total = 1542598656, .used = 448811008 }
Comment 9 timeless 2006-12-27 15:41:31 UTC
sorry for the delay. anyway it seems I've actually seen swap light up. So I guess the real problem I have is just bug 346021.

swift% python
Python 2.4.4 (#1, Nov 13 2006, 11:13:11) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtop
>>> gtop.mem()
Struct { .buffer = 0, .cached = 0, .free = 368009216, .locked = 3289484, .shared = 0, .total = 4225933312, .used = 3857924096, .user = 3857924096 }
>>> gtop.swap()
Struct { .free = 39729250304, .pagein = 0, .pageout = 0, .total = 40265306112, .used = 536055808 }
Comment 10 Benoît Dejean 2007-01-04 15:39:19 UTC
Yep, these stats look OK. Have you changed anything to make them work ?

About the net stats, what if you run this :

>>> gtop.netlist()
>>> gtop.netload("<interface>")

Thanks.
Comment 11 Robert Roth 2013-12-05 10:59:24 UTC
Based on comment 9 by the reporter of this bug I am marking this as obsolete.