Re: [tkined] Speeding up mib-loading

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Wed, 7 Apr 1999 10:37:08 +0200

>>>>> Quan Ta writes:

Quan> About the 'frozen' mib file feature of Tnm that helps speeding
Quan> up the loading process. That is just what I've been searching
Quan> for. Can you point me to more infomation on that feature.
Quan> Currently I try to keep site/init.tcl to load just the bare
Quan> minimum mibs I am working on, but it still take sometime.

The loading time seen by the user really depends on several things.

Frozen MIB files are automatically generated whenever a MIB module is
loaded. Scotty 2.1.X saves frozen files in $tnm(library)/$tnm(arch).
However, frozen MIB files only help to reduce the parsing overhead.
Frozen MIB files help to speed things up on systems where CPU power is
limited. Now that we are seeing faster and faster CPUs, the gain of
using frozen files is becoming less interesting.

The downside of using frozen MIB files is that the Tnm library needs
to locate them and it also checks the time stamp (if you touch the MIB
file, then the frozen MIB file will be regenerated). This means that
the Tnm library need several system calls in order to decide whether
to use a frozen MIB file. The big problem here is that stat() call,
which is extremely expensive on NFS mounted partitions.

Reducing the set of MIB modules to be loaded to the necessary minimum
is usually a good idea.
Juergen

-- 
Juergen Schoenwaelder  schoenw@ibr.cs.tu-bs.de http://www.cs.tu-bs.de/~schoenw
Technical University Braunschweig, Dept. Operating Systems & Computer Networks
Bueltenweg 74/75, 38106 Braunschweig, Germany.        (Tel. +49 531 / 391 3289)
--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.