Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > c044302ede6653e2b81232ed15d6c6a1 > files > 7

mgm-1.1-7mdv2010.0.noarch.rpm

<title>  xiph.org: MGM </title>

<STYLE>
<!--
        BODY  {font-family: Verdana, Arial, Helvetica; 
               font-size: 12pt;
               background-color: #ffffff}
-->
</STYLE>

<body bgcolor="#ffffff" link="#208b8b" vlink="#000080">

<p align=center><img src="mgm.gif"><br>
<hr>

<p align=center>
[ <a href="index.html">home</a> | <a href="faq.html">FAQ</a> | <a href="down.html">download</a> | <a href="trouble.html">troubleshooting</a> | <a href="docs.html">manual</a> | <a href="http://www.xiph.org/cvs.html">cvs</a> | <a href="mail.html">mailing lists</a> ]<p>

<hr>

<h2>You need:</h2>

Perl 5 (5.004_04 or later recommended) with the Tk module installed
(Tk 8 recommended).  Debian's Perl with the Perl-Tk package
(found under 'interpreters') will do nicely.<p>

MGM is not Linux only!  That said, I've not yet written many modules
for other platforms; most of the statistics modules use Linux's /proc
filesystem (equivalent statistics are available through different
means on other platforms).  I or someone else will likely flesh things
out on other OSes as time goes on.<p>

<img src="screenshot1.gif" align=right border=0>
<h2>the MGM FAQ interview</h2>

<h3>"Why MGM?"</h3>

Xload, procmeter3 and xosview are fine, fine pieces of software
(perhaps a bit hard to read).  But... dammit... at a time when geeks are
cool, green jumpsuits stalk the streets and Volkswagen is hip again,
they're just too dull. Dull, dull, dull.<p>

Evil geniuses generally have a finely honed esthetic sense which they
choose ignore whenever possible.  However, evil geniuses do need
something good looking, ultra sweet, way too big and above all tacky
as hell to bolt onto the personal programming experience.  This
code is *it*.<p>

Think of it as the SUV mentality applied to strollers.  Bigger than
the kid?  Hell, it's bigger than Mom pushing it.  You can't even
*find* the kid. <p>

<h3>"What is this software good for?"</h3>

On the serious side for a moment, MGM is thoroughly inspired by
procmeter3; it is a load utility that monitors system statistics like
CPU usage, disk usage, network, battery, memory, etc.  A few other
things are thrown into the stock mix (like a clock, a spinning fish, a
phase-of-the-moon display, etc).  MGM is module based; it's easy to
write new modules and your own readouts.<p>

Getting back to our theme for a moment, the *real* fun is when the
resident 'all software is bloated' complainer -- you know, the programmer
who constantly whines about how if *he* wrote a web browser, it would
fit in 16k... Every group has one -- notices MGM.<p>

Don't tell him right away it's written in Perl; it looks cute,
possibly well written, probably small.  Lead him on by mentioning how
elegant the code is, how it has little-to-no impact on the system load
it monitors.  Go ahead and prove it; at this point he'll eagerly
devour the volunteered 'ps' listing. He might get as far as the CPU
usage number but chances are he'll notice the memory footprint first.
If you're feeling very clever, set it up so that EMACS (a favorite
target of a bloat-moaner) shows up in a nearby line for comparison
purposes.  Plug your ears during the scream.<p>

Go ahead, sell tickets to the spectacle.  For the grand finale, offer
him a copy!<p>

<p align=center><img src="battery.gif" border=0><p>

<h3>"Why name it 'the Moaning Goat Meter'?"</h3>

Long story, but there is a reason.  The short version is that a dying
cooling fan (in this case in a SCSI disk enclosure) managed to do
convincing impressions of an amarous goat during pauses in
group conversation.<p>

This software is named after that fan.<p>

<h3>"I'm not an evil genius yet.  Will MGM make me cool?  Will it
improve my hacking skills?"</h3>

You're kidding, right?

<h3>"What about my social life?"</h3>

The software equivalent of a depleted uranium lawn gnome?  Highly unlikely.

<h3>"What about the babes/hunks?  Will MGM get me the babes/hunks?"</h3>

I don't care to speculate.

<h3>"Why does MGM use so much memory?"</h3>

In one word, "Perl".  In a second word, "Tk".  The fact that the
entire panel is rendered as pixmaps actually adds very little to the
memory usage.  It will probably make some sense to go to a straight
Perl/Xlib implementation at some point, but that would be for
elegance, not practical benefit.  For the time being, Tk saved some
extra work, and I have <a
href="http://www.xiph.org/ogg/vorbis.html">Real Work</a> to worry
about<p>

On the upside, you know exactly why it's so damned big; it's not so
much larger a memory footprint than, say, procmeter3.  Nor is MGM
slow; despite the size, it's remarkably light-duty (unbelievably so if
you consider it really is 100% written in Perl).

<p align=center>
<img src=ps.gif><p>

<h3>"It's still absurdly large. It's bigger than Emacs! My pitiful little
machine is swapping like a wounded moth!  Will you deal with memory
usage in later versions?"</h3>

Here's a nickel.  Go buy more memory.

<h3>"Buy more memory?  That's your strategy to handle using way too much?"</h3>

It's half the strategy that's made Bill Gates $100B richer.

<h3>"That's... that's... so evil!"</h3>

Yes! <strong>Evil</strong> genius!  <STRONG>EVIL!</STRONG> What word
in 'evil' is failing to sink in?  This software is an abomination in
every sense of the word! Run it! Hug it! Feel the power of the Dark
Side!<p>

<h3>"You're not going to start talking with a Slavic accent are you?"</h3>

Nyet.  But if you hear moaning goats followed by a musical apocalypse,
that would be me with bagpipes.

<p>

<hr>
<a href="http://www.xiph.org/">
<img src="white-xifish.gif" align=left border=0>
</a>
<p>
<font size=-2 color=#505050>

MGM will not get your whites whiter or your colors brighter.  It will,
however, sit there and look spiffy while sucking down a major
honking wad of RAM.<p>

MGM, Xiphophorus and their logos are trademarks (tm) of
<a href="http://www.xiph.org/">Xiphophorus</a>.  These pages are
copyright (C) 1994-1999 Xiphophorus. All rights reserved.<p>

</body>