GNOME Bugzilla – Bug 385090
swap indicators doen't work on solaris (snv)
Last modified: 2013-12-05 10:59:24 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
libgtop version please.
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)
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.
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?
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.
for now, assume i do have it. i'm not at the computer atm...
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)
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 }
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 }
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.
Based on comment 9 by the reporter of this bug I am marking this as obsolete.