Xymon Mailing List Archive search

showgraph.cgi on Xymon 4.3.12

8 messages in this thread

list Ryan Novosielski · Mon, 30 Sep 2013 16:03:59 -0400 ·
Hi all,

I was hoping you might be able to help me with a problem with showgraph.cgi. It works, but lately it's been taking an inordinate amount of time to complete. I did a truss on the process when it runs, and it looks like what it's doing is opening an endless list of fonts:


stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf", 0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf", O_RDONLY) = 7
fcntl(7, F_SETFD, 0x00000001)			= 0
fstat(7, 0xFFBF6D60)				= 0
mmap(0x00000000, 317896, PROT_READ, MAP_PRIVATE, 7, 0) = 0xFE170000
close(7)					= 0
munmap(0xFE170000, 317896)			= 0
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf", 0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf", O_RDONLY) = 7
fcntl(7, F_SETFD, 0x00000001)			= 0
fstat(7, 0xFFBF6D60)				= 0
mmap(0x00000000, 91352, PROT_READ, MAP_PRIVATE, 7, 0) = 0xFE1A0000
close(7)					= 0
munmap(0xFE1A0000, 91352)			= 0
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf", 0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf", O_RDONLY) = 7
fcntl(7, F_SETFD, 0x00000001)			= 0
fstat(7, 0xFFBF6D60)				= 0
mmap(0x00000000, 253724, PROT_READ, MAP_PRIVATE, 7, 0) = 0xFE180000
close(7)					= 0
munmap(0xFE180000, 253724)			= 0
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf", 0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf", O_RDONLY) = 7
fcntl(7, F_SETFD, 0x00000001)			= 0
fstat(7, 0xFFBF6D60)				= 0
mmap(0x00000000, 486132, PROT_READ, MAP_PRIVATE, 7, 0) = 0xFE140000
close(7)					= 0
munmap(0xFE140000, 486132)			= 0

...and so on. Any idea why this might have started happening and what I can do about it? The server OS is Solaris 10 (probably relatively recently upgraded from S10u10 to S10u11. The graph gets created immediately at the end of these font openings.

--
____ *Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*
 || \\UTGERS      |---------------------*O*---------------------
 ||_// Biomedical | Ryan Novosielski - Sr. Systems Programmer
 || \\ and Health | user-46c89e614701@xymon.invalid - 973/972.0922 (2x0922)
 ||  \\  Sciences | OIT/EI-Academic Svcs. - ADMC 450, Newark
      `'
list Ryan Novosielski · Fri, 4 Oct 2013 11:59:22 -0400 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Any ideas? Sorry to repost, but there was nothing but silence the
first time.
quoted from Ryan Novosielski

On 09/30/2013 04:04 PM, Novosielski, Ryan wrote:
Hi all,

I was hoping you might be able to help me with a problem with
showgraph.cgi. It works, but lately it's been taking an inordinate
amount of time to complete. I did a truss on the process when it
runs, and it looks like what it's doing is opening an endless list
of fonts:

stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf",
0xFFBF6F28) = 0 
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf",
O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)			= 0 fstat(7,
0xFFBF6D60)				= 0 mmap(0x00000000, 317896, PROT_READ, MAP_PRIVATE,
7, 0) = 0xFE170000 close(7)					= 0 munmap(0xFE170000, 317896)			=
0 
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf",
0xFFBF6F28) = 0 
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf",
O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)			= 0 fstat(7,
0xFFBF6D60)				= 0 mmap(0x00000000, 91352, PROT_READ, MAP_PRIVATE,
7, 0) = 0xFE1A0000 close(7)					= 0 munmap(0xFE1A0000, 91352)			=
0 stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf",
0xFFBF6F28) = 0 
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf",
O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)			= 0 fstat(7,
0xFFBF6D60)				= 0 mmap(0x00000000, 253724, PROT_READ, MAP_PRIVATE,
7, 0) = 0xFE180000 close(7)					= 0 munmap(0xFE180000, 253724)			=
0 stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf",
0xFFBF6F28) = 0 
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf",
O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)			= 0 fstat(7,
0xFFBF6D60)				= 0 mmap(0x00000000, 486132, PROT_READ, MAP_PRIVATE,
7, 0) = 0xFE140000 close(7)					= 0 munmap(0xFE140000, 486132)			=
0

...and so on. Any idea why this might have started happening and
what I can do about it? The server OS is Solaris 10 (probably
relatively recently upgraded from S10u10 to S10u11. The graph gets
created immediately at the end of these font openings.
- -- 
 ____*Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*
 || \\UTGERS      |---------------------*O*---------------------
 ||_// Biomedical | Ryan Novosielski - Sr. Systems Programmer
 || \\ and Health | user-46c89e614701@xymon.invalid - 973/972.0922 (2x0922)
 ||  \\  Sciences | OIT/EI-Academic Svcs. - ADMC 450, Newark
      `'

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJO5dkACgkQmb+gadEcsb4oYwCffRXJN/fAOGTfP7scvKW7KBMW
/xUAoNAE6PilW4JYVVoIv5yKh8OrUE+W
=M4Fl
-----END PGP SIGNATURE-----
list Japheth Cleaver · Fri, 4 Oct 2013 09:54:17 -0700 ·
quoted from Ryan Novosielski

On Fri, October 4, 2013 8:59 am, Novosielski, Ryan wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Any ideas? Sorry to repost, but there was nothing but silence the
first time.

On 09/30/2013 04:04 PM, Novosielski, Ryan wrote:
Hi all,

I was hoping you might be able to help me with a problem with
showgraph.cgi. It works, but lately it's been taking an inordinate
amount of time to complete. I did a truss on the process when it
runs, and it looks like what it's doing is opening an endless list
of fonts:

stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf",
0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf",
O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)			= 0 fstat(7,
0xFFBF6D60)				= 0 mmap(0x00000000, 317896, PROT_READ, MAP_PRIVATE,
7, 0) = 0xFE170000 close(7)					= 0 munmap(0xFE170000, 317896)			=
0
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf",
0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf",
O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)			= 0 fstat(7,
0xFFBF6D60)				= 0 mmap(0x00000000, 91352, PROT_READ, MAP_PRIVATE,
7, 0) = 0xFE1A0000 close(7)					= 0 munmap(0xFE1A0000, 91352)			=
0 stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf",
0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf",
O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)			= 0 fstat(7,
0xFFBF6D60)				= 0 mmap(0x00000000, 253724, PROT_READ, MAP_PRIVATE,
7, 0) = 0xFE180000 close(7)					= 0 munmap(0xFE180000, 253724)			=
0 stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf",
0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf",
O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)			= 0 fstat(7,
0xFFBF6D60)				= 0 mmap(0x00000000, 486132, PROT_READ, MAP_PRIVATE,
7, 0) = 0xFE140000 close(7)					= 0 munmap(0xFE140000, 486132)			=
0

...and so on. Any idea why this might have started happening and
what I can do about it? The server OS is Solaris 10 (probably
relatively recently upgraded from S10u10 to S10u11. The graph gets
created immediately at the end of these font openings.
- --

Unfortunately, I'm not especially familiar with Solaris any more... My
suspicion would be that the underlying rrdtool access is doing this? Is
truss equivalent to running strace with "-f" in follow mode? AFAIK
showgraph.cgi itself wouldn't have any reason to muck directly with the
font files...


HTH,

-jc
list Ryan Novosielski · Fri, 4 Oct 2013 14:58:09 -0400 ·
quoted from Japheth Cleaver
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/04/2013 12:54 PM, Japheth Cleaver wrote:

On Fri, October 4, 2013 8:59 am, Novosielski, Ryan wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Any ideas? Sorry to repost, but there was nothing but silence
the first time.

On 09/30/2013 04:04 PM, Novosielski, Ryan wrote:
Hi all,

I was hoping you might be able to help me with a problem with 
showgraph.cgi. It works, but lately it's been taking an
inordinate amount of time to complete. I did a truss on the
process when it runs, and it looks like what it's doing is
opening an endless list of fonts:

stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf",

0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf",

O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)			= 0 fstat(7,
0xFFBF6D60)				= 0 mmap(0x00000000, 317896, PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE170000 close(7)					= 0
munmap(0xFE170000, 317896)			= 0 
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf",

0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf",

O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)			= 0 fstat(7,
0xFFBF6D60)				= 0 mmap(0x00000000, 91352, PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE1A0000 close(7)					= 0
munmap(0xFE1A0000, 91352)			= 0
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf",

0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf",

O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)			= 0 fstat(7,
0xFFBF6D60)				= 0 mmap(0x00000000, 253724, PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE180000 close(7)					= 0
munmap(0xFE180000, 253724)			= 0
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf",

0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf",

O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)			= 0 fstat(7,
0xFFBF6D60)				= 0 mmap(0x00000000, 486132, PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE140000 close(7)					= 0
munmap(0xFE140000, 486132)			= 0

...and so on. Any idea why this might have started happening
and what I can do about it? The server OS is Solaris 10
(probably relatively recently upgraded from S10u10 to S10u11.
The graph gets created immediately at the end of these font
openings.
- --
Unfortunately, I'm not especially familiar with Solaris any more...
My suspicion would be that the underlying rrdtool access is doing
this? Is truss equivalent to running strace with "-f" in follow
mode? AFAIK showgraph.cgi itself wouldn't have any reason to muck
directly with the font files...
I suspect it's at least related to rrdtool, but when I do -f (it's the
same as for strace), it is all the showgraph.cgi process ID doing the
work.
quoted from Ryan Novosielski

- -- 
 ____*Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*
 || \\UTGERS      |---------------------*O*---------------------
 ||_// Biomedical | Ryan Novosielski - Sr. Systems Programmer
 || \\ and Health | user-46c89e614701@xymon.invalid - 973/972.0922 (2x0922)
 ||  \\  Sciences | OIT/EI-Academic Svcs. - ADMC 450, Newark
      `'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJPD74ACgkQmb+gadEcsb4HWwCfZ+sWiDI5rsjpkN7vPEL/glfM
sZkAoKZ0Ba5lEvAbGZklUhtsG4at42wM
=XHIp
-----END PGP SIGNATURE-----
list Ralph Mitchell · Fri, 4 Oct 2013 18:03:57 -0400 ·
The show graph.cgi binary is compiled with the rrdtool libraries, which in
turn require some basic fonts to be able to write on the graphs..

OK, to get the obvious questions out of the way, do all those font files
really exist? Are you running any kind of X11 client that needs them? If
not, can you relocate most of them somewhere else and see if that improves
things?

You should be able to see in the source what fonts are required by show
graph.c

Ralph Mitchell
quoted from Ryan Novosielski
On Oct 4, 2013 2:58 PM, "Novosielski, Ryan" <user-6e4f7a3bb37f@xymon.invalid> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/04/2013 12:54 PM, Japheth Cleaver wrote:

On Fri, October 4, 2013 8:59 am, Novosielski, Ryan wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Any ideas? Sorry to repost, but there was nothing but silence
the first time.

On 09/30/2013 04:04 PM, Novosielski, Ryan wrote:
Hi all,

I was hoping you might be able to help me with a problem with
showgraph.cgi. It works, but lately it's been taking an
inordinate amount of time to complete. I did a truss on the
process when it runs, and it looks like what it's doing is
opening an endless list of fonts:

stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf",

0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf",

O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0
fstat(7,
0xFFBF6D60)                         = 0 mmap(0x00000000, 317896,
PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE170000 close(7)
     = 0
munmap(0xFE170000, 317896)                  = 0
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf",

0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf",

O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0
fstat(7,
0xFFBF6D60)                         = 0 mmap(0x00000000, 91352,
PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE1A0000 close(7)
     = 0
munmap(0xFE1A0000, 91352)                   = 0
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf",

0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf",

O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0
fstat(7,
0xFFBF6D60)                         = 0 mmap(0x00000000, 253724,
PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE180000 close(7)
     = 0
munmap(0xFE180000, 253724)                  = 0
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf",

0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf",

O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0
fstat(7,
0xFFBF6D60)                         = 0 mmap(0x00000000, 486132,
PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE140000 close(7)
     = 0
munmap(0xFE140000, 486132)                  = 0

...and so on. Any idea why this might have started happening
and what I can do about it? The server OS is Solaris 10
(probably relatively recently upgraded from S10u10 to S10u11.
The graph gets created immediately at the end of these font
openings.
- --
Unfortunately, I'm not especially familiar with Solaris any more...
My suspicion would be that the underlying rrdtool access is doing
this? Is truss equivalent to running strace with "-f" in follow
mode? AFAIK showgraph.cgi itself wouldn't have any reason to muck
directly with the font files...
I suspect it's at least related to rrdtool, but when I do -f (it's the
same as for strace), it is all the showgraph.cgi process ID doing the
work.

- --
 ____*Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*
 || \\UTGERS      |---------------------*O*---------------------
 ||_// Biomedical | Ryan Novosielski - Sr. Systems Programmer
 || \\ and Health | user-46c89e614701@xymon.invalid - 973/972.0922 (2x0922)
 ||  \\  Sciences | OIT/EI-Academic Svcs. - ADMC 450, Newark
      `'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJPD74ACgkQmb+gadEcsb4HWwCfZ+sWiDI5rsjpkN7vPEL/glfM
sZkAoKZ0Ba5lEvAbGZklUhtsG4at42wM
=XHIp
-----END PGP SIGNATURE-----

list Ryan Novosielski · Sat, 5 Oct 2013 11:24:41 -0400 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

What's interesting about this is that it started not all that long ago
- -- before that, the graphs were instantaneous. I can't really figure
out when it started though. I'm guessing it occurred as a result of a
Solaris upgrade, but it's peculiar to me that this should be a problem
even with a lot of fonts. What system *doesn't* have a lot of fonts?
But thank you for the suggestion to see if they exist/how to see what
fonts are required.

My first thought is that maybe recompiling this would help.
quoted from Ralph Mitchell

On 10/04/2013 06:04 PM, Ralph Mitchell wrote:
The show graph.cgi binary is compiled with the rrdtool libraries,
which in turn require some basic fonts to be able to write on the
graphs..

OK, to get the obvious questions out of the way, do all those font
files really exist? Are you running any kind of X11 client that
needs them? If not, can you relocate most of them somewhere else
and see if that improves things?

You should be able to see in the source what fonts are required by
show graph.c

Ralph Mitchell

On Oct 4, 2013 2:58 PM, "Novosielski, Ryan"
<user-6e4f7a3bb37f@xymon.invalid <mailto:user-6e4f7a3bb37f@xymon.invalid>> wrote:

On 10/04/2013 12:54 PM, Japheth Cleaver wrote:

On Fri, October 4, 2013 8:59 am, Novosielski, Ryan wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Any ideas? Sorry to repost, but there was nothing but silence 
the first time.

On 09/30/2013 04:04 PM, Novosielski, Ryan wrote:
Hi all,

I was hoping you might be able to help me with a problem
with showgraph.cgi. It works, but lately it's been taking an 
inordinate amount of time to complete. I did a truss on the 
process when it runs, and it looks like what it's doing is 
opening an endless list of fonts:

stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf",

0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf",

O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0
fstat(7,
0xFFBF6D60)                         = 0 mmap(0x00000000,
317896,
PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE170000 close(7)
= 0
munmap(0xFE170000, 317896)                  = 0
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf",
0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf",
O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0
fstat(7,
0xFFBF6D60)                         = 0 mmap(0x00000000,
91352,
PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE1A0000 close(7)
= 0
munmap(0xFE1A0000, 91352)                   = 0 
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf",

0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf",

O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0
fstat(7,
0xFFBF6D60)                         = 0 mmap(0x00000000,
253724,
PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE180000 close(7)
= 0
munmap(0xFE180000, 253724)                  = 0 
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf",

0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf",

O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0
fstat(7,
0xFFBF6D60)                         = 0 mmap(0x00000000,
486132,
PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE140000 close(7)
= 0
munmap(0xFE140000, 486132)                  = 0

...and so on. Any idea why this might have started happening 
and what I can do about it? The server OS is Solaris 10 
(probably relatively recently upgraded from S10u10 to
S10u11. The graph gets created immediately at the end of
these font openings.
- --
Unfortunately, I'm not especially familiar with Solaris any
more... My suspicion would be that the underlying rrdtool access
is doing this? Is truss equivalent to running strace with "-f" in
follow mode? AFAIK showgraph.cgi itself wouldn't have any reason
to muck directly with the font files...
I suspect it's at least related to rrdtool, but when I do -f (it's
the same as for strace), it is all the showgraph.cgi process ID
doing the work.

- -- 
 ____*Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*
 || \\UTGERS      |---------------------*O*---------------------
 ||_// Biomedical | Ryan Novosielski - Sr. Systems Programmer
 || \\ and Health | user-46c89e614701@xymon.invalid - 973/972.0922 (2x0922)
 ||  \\  Sciences | OIT/EI-Academic Svcs. - ADMC 450, Newark
      `'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJQLy8ACgkQmb+gadEcsb6x1wCeIsKhucRDgU4LeTqqK3OI2g9x
CdwAnjHKxbhCoiaHEiDwxiH8N9ctOXC4
=0Y4E
-----END PGP SIGNATURE-----
list Ryan Novosielski · Mon, 7 Oct 2013 15:26:32 -0400 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Well, the fonts exist anyhow. And they existed before the upgrade too.

Luckily, I've been able to determine that the upgrade from Solaris
10u10 to Solaris 10u11 was the start of this problem (had an old BE
around and I booted back and everything is fine). That doesn't explain
it though.

I recompiled showgraph.cgi too. No real difference. Maybe a little
faster, but still runs for 25 seconds just to make one graph.
quoted from Ralph Mitchell

On 10/04/2013 06:04 PM, Ralph Mitchell wrote:
The show graph.cgi binary is compiled with the rrdtool libraries,
which in turn require some basic fonts to be able to write on the
graphs..

OK, to get the obvious questions out of the way, do all those font
files really exist? Are you running any kind of X11 client that
needs them? If not, can you relocate most of them somewhere else
and see if that improves things?

You should be able to see in the source what fonts are required by
show graph.c

Ralph Mitchell

On Oct 4, 2013 2:58 PM, "Novosielski, Ryan"
<user-6e4f7a3bb37f@xymon.invalid <mailto:user-6e4f7a3bb37f@xymon.invalid>> wrote:

On 10/04/2013 12:54 PM, Japheth Cleaver wrote:

On Fri, October 4, 2013 8:59 am, Novosielski, Ryan wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Any ideas? Sorry to repost, but there was nothing but silence 
the first time.

On 09/30/2013 04:04 PM, Novosielski, Ryan wrote:
Hi all,

I was hoping you might be able to help me with a problem
with showgraph.cgi. It works, but lately it's been taking an 
inordinate amount of time to complete. I did a truss on the 
process when it runs, and it looks like what it's doing is 
opening an endless list of fonts:

stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf",

0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf",

O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0
fstat(7,
0xFFBF6D60)                         = 0 mmap(0x00000000,
317896,
PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE170000 close(7)
= 0
munmap(0xFE170000, 317896)                  = 0
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf",
0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf",
O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0
fstat(7,
0xFFBF6D60)                         = 0 mmap(0x00000000,
91352,
PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE1A0000 close(7)
= 0
munmap(0xFE1A0000, 91352)                   = 0 
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf",

0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf",

O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0
fstat(7,
0xFFBF6D60)                         = 0 mmap(0x00000000,
253724,
PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE180000 close(7)
= 0
munmap(0xFE180000, 253724)                  = 0 
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf",

0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf",

O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0
fstat(7,
0xFFBF6D60)                         = 0 mmap(0x00000000,
486132,
PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE140000 close(7)
= 0
munmap(0xFE140000, 486132)                  = 0

...and so on. Any idea why this might have started happening 
and what I can do about it? The server OS is Solaris 10 
(probably relatively recently upgraded from S10u10 to
S10u11. The graph gets created immediately at the end of
these font openings.
- --
Unfortunately, I'm not especially familiar with Solaris any
more... My suspicion would be that the underlying rrdtool access
is doing this? Is truss equivalent to running strace with "-f" in
follow mode? AFAIK showgraph.cgi itself wouldn't have any reason
to muck directly with the font files...
I suspect it's at least related to rrdtool, but when I do -f (it's
the same as for strace), it is all the showgraph.cgi process ID
doing the work.

- -- 
 ____*Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*
 || \\UTGERS      |---------------------*O*---------------------
 ||_// Biomedical | Ryan Novosielski - Sr. Systems Programmer
 || \\ and Health | user-46c89e614701@xymon.invalid - 973/972.0922 (2x0922)
 ||  \\  Sciences | OIT/EI-Academic Svcs. - ADMC 450, Newark
      `'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJTCuMACgkQmb+gadEcsb4cMgCcCfVyjPy4rfESWuICxH9SnOwa
rMgAoN6KNebsTooF86E2Oy7uc3VPvpvP
=P+vJ
-----END PGP SIGNATURE-----
list Ralph Mitchell · Mon, 7 Oct 2013 17:37:18 -0400 ·
If you trace it again, can you see if the fonts are being tried in the same
order?  It might be looking for a specific font family that is now
occurring later in the list.

Grasping at straws now...  :-)

Ralph Mitchell


On Mon, Oct 7, 2013 at 3:26 PM, Novosielski, Ryan
quoted from Ryan Novosielski
<user-6e4f7a3bb37f@xymon.invalid>wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Well, the fonts exist anyhow. And they existed before the upgrade too.

Luckily, I've been able to determine that the upgrade from Solaris
10u10 to Solaris 10u11 was the start of this problem (had an old BE
around and I booted back and everything is fine). That doesn't explain
it though.

I recompiled showgraph.cgi too. No real difference. Maybe a little
faster, but still runs for 25 seconds just to make one graph.

On 10/04/2013 06:04 PM, Ralph Mitchell wrote:
The show graph.cgi binary is compiled with the rrdtool libraries,
which in turn require some basic fonts to be able to write on the
graphs..

OK, to get the obvious questions out of the way, do all those font
files really exist? Are you running any kind of X11 client that
needs them? If not, can you relocate most of them somewhere else
and see if that improves things?

You should be able to see in the source what fonts are required by
show graph.c

Ralph Mitchell

On Oct 4, 2013 2:58 PM, "Novosielski, Ryan"
<user-6e4f7a3bb37f@xymon.invalid <mailto:user-6e4f7a3bb37f@xymon.invalid>> wrote:

On 10/04/2013 12:54 PM, Japheth Cleaver wrote:

On Fri, October 4, 2013 8:59 am, Novosielski, Ryan wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Any ideas? Sorry to repost, but there was nothing but silence
the first time.

On 09/30/2013 04:04 PM, Novosielski, Ryan wrote:
Hi all,

I was hoping you might be able to help me with a problem
with showgraph.cgi. It works, but lately it's been taking an
inordinate amount of time to complete. I did a truss on the
process when it runs, and it looks like what it's doing is
opening an endless list of fonts:

stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf",

0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf",

O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0
fstat(7,
0xFFBF6D60)                         = 0 mmap(0x00000000,
317896,
PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE170000 close(7)
= 0
munmap(0xFE170000, 317896)                  = 0
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf",
0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf",
O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0
fstat(7,
0xFFBF6D60)                         = 0 mmap(0x00000000,
91352,
PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE1A0000 close(7)
= 0
munmap(0xFE1A0000, 91352)                   = 0
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf",

0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf",

O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0
fstat(7,
0xFFBF6D60)                         = 0 mmap(0x00000000,
253724,
PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE180000 close(7)
= 0
munmap(0xFE180000, 253724)                  = 0
stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf",

0xFFBF6F28) = 0
open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf",

O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0
fstat(7,
0xFFBF6D60)                         = 0 mmap(0x00000000,
486132,
PROT_READ,
MAP_PRIVATE, 7, 0) = 0xFE140000 close(7)
= 0
munmap(0xFE140000, 486132)                  = 0

...and so on. Any idea why this might have started happening
and what I can do about it? The server OS is Solaris 10
(probably relatively recently upgraded from S10u10 to
S10u11. The graph gets created immediately at the end of
these font openings.
- --
Unfortunately, I'm not especially familiar with Solaris any
more... My suspicion would be that the underlying rrdtool access
is doing this? Is truss equivalent to running strace with "-f" in
follow mode? AFAIK showgraph.cgi itself wouldn't have any reason
to muck directly with the font files...
I suspect it's at least related to rrdtool, but when I do -f (it's
the same as for strace), it is all the showgraph.cgi process ID
doing the work.

- --
 ____*Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*
 || \\UTGERS      |---------------------*O*---------------------
 ||_// Biomedical | Ryan Novosielski - Sr. Systems Programmer
 || \\ and Health | user-46c89e614701@xymon.invalid - 973/972.0922 (2x0922)
 ||  \\  Sciences | OIT/EI-Academic Svcs. - ADMC 450, Newark
      `'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJTCuMACgkQmb+gadEcsb4cMgCcCfVyjPy4rfESWuICxH9SnOwa
rMgAoN6KNebsTooF86E2Oy7uc3VPvpvP
=P+vJ
-----END PGP SIGNATURE-----