W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1999

Where does sysinfo get called?

From: Stuart Myles <smyles@wsj.dowjones.com>
Date: Thu, 27 May 1999 17:57:25 -0400
Message-ID: <374DBFC5.89BD8C21@interactive.wsj.com>
To: "www-lib@w3.org" <www-lib@w3.org>
CC: Stuart Myles <smyles@wsj.dowjones.com>
I am trying to track down an obscure performance bug that I'm seeing
on Solaris 2.6.  It is occuring during the initialization of libwww.  I
don't think its caused by libwww, I think its something in the OS thats
triggered by libwww.

Anyway - I'm trying to figure out where the system call "sysinfo" is
getting called by libwww.  If I run the following program:

#include "WWWLib.h"
#include "WWWHTTP.h"
#include "WWWInit.h"
#include "HTHeader.h"

int
main()
{
  HTProfile_newNoCacheClient("mdtpclient", "1.0");
  return 0;
}

on Solaris 2.6 I see (via truss) two calls to sysinfo:

sigaction(SIGWAITING, 0xEF566258, 0x00000000)   = 0^M
lwp_self()                                      = 1^M
time()                                          = 927841728^M
open("/usr/share/lib/zoneinfo/US/Eastern", O_RDONLY) = 3^M
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0".., 8192)     = 1250^M
close(3)                                        = 0^M
brk(0x00027518)                                 = 0^M
brk(0x00029518)                                 = 0^M
sysinfo(SI_HOSTNAME, "mdsdev", 256)             = 7^M
<<<<<<<<<<< sysinfo
open("/etc/resolv.conf", O_RDONLY)              = 3^M
fstat64(3, 0xEFFFF540)

and then later

signotifywait()                                 = 32^M
lwp_sigredirect(0, SIGWAITING)                  = 0^M
sigaction(SIGWAITING, 0xEF566278, 0x00000000)   = 0^M
sysinfo(SI_HOSTNAME, "mdsdev", 256)             = 7^M
<<<<<<<<<<<<< sysinfo
open("/etc/resolv.conf", O_RDONLY)              = 4^M
fstat64(4, 0xEFFFF4C8)                          = 0^M

sysinfo calls are generally triggered by calls to gethostbyname or
sysconf.  However, I haven't
been able to find these in the library.  Can anyone help me out here?

TIA!

smyles :)
--
Stuart Myles -- smyles@wsj.com -- 609-520-7147 -- http://wsj.com
Received on Thursday, 27 May 1999 17:55:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:29 GMT