<div dir="ltr">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.<div><br></div><div style>Grasping at straws now...  :-)</div>
<div style><br></div><div style>Ralph Mitchell</div><div style><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 7, 2013 at 3:26 PM, Novosielski, Ryan <span dir="ltr"><<a href="mailto:novosirj@ca.rutgers.edu" target="_blank">novosirj@ca.rutgers.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</div>Well, the fonts exist anyhow. And they existed before the upgrade too.<br>
<br>
Luckily, I've been able to determine that the upgrade from Solaris<br>
10u10 to Solaris 10u11 was the start of this problem (had an old BE<br>
around and I booted back and everything is fine). That doesn't explain<br>
it though.<br>
<br>
I recompiled showgraph.cgi too. No real difference. Maybe a little<br>
faster, but still runs for 25 seconds just to make one graph.<br>
<div class="im"><br>
On 10/04/2013 06:04 PM, Ralph Mitchell wrote:<br>
</div><div class="im">> The show graph.cgi binary is compiled with the rrdtool libraries,<br>
> which in turn require some basic fonts to be able to write on the<br>
> graphs..<br>
><br>
> OK, to get the obvious questions out of the way, do all those font<br>
> files really exist? Are you running any kind of X11 client that<br>
> needs them? If not, can you relocate most of them somewhere else<br>
> and see if that improves things?<br>
><br>
> You should be able to see in the source what fonts are required by<br>
> show graph.c<br>
><br>
> Ralph Mitchell<br>
><br>
> On Oct 4, 2013 2:58 PM, "Novosielski, Ryan"<br>
</div><div><div class="h5">> <<a href="mailto:novosirj@ca.rutgers.edu">novosirj@ca.rutgers.edu</a> <mailto:<a href="mailto:novosirj@ca.rutgers.edu">novosirj@ca.rutgers.edu</a>>> wrote:<br>
><br>
> On 10/04/2013 12:54 PM, Japheth Cleaver wrote:<br>
><br>
><br>
>> On Fri, October 4, 2013 8:59 am, Novosielski, Ryan wrote:<br>
>>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1<br>
>>><br>
>>> Any ideas? Sorry to repost, but there was nothing but silence<br>
>>> the first time.<br>
>>><br>
>>> On 09/30/2013 04:04 PM, Novosielski, Ryan wrote:<br>
>>>> Hi all,<br>
>>>><br>
>>>> I was hoping you might be able to help me with a problem<br>
>>>> with showgraph.cgi. It works, but lately it's been taking an<br>
>>>> inordinate amount of time to complete. I did a truss on the<br>
>>>> process when it runs, and it looks like what it's doing is<br>
>>>> opening an endless list of fonts:<br>
>>>><br>
>>>> stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf",<br>
>>>><br>
>>>><br>
><br>
>>>><br>
0xFFBF6F28) = 0<br>
>>>> open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf",<br>
>>>><br>
>>>><br>
><br>
>>>><br>
O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0<br>
> fstat(7,<br>
>>>> 0xFFBF6D60)                         = 0 mmap(0x00000000,<br>
>>>> 317896,<br>
> PROT_READ,<br>
>>>> MAP_PRIVATE, 7, 0) = 0xFE170000 close(7)<br>
>>>><br>
> = 0<br>
>>>> munmap(0xFE170000, 317896)                  = 0<br>
>>>><br>
> stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf",<br>
>>>><br>
>>>><br>
><br>
><br>
0xFFBF6F28) = 0<br>
>>>><br>
> open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf",<br>
>>>><br>
>>>><br>
><br>
><br>
O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0<br>
> fstat(7,<br>
>>>> 0xFFBF6D60)                         = 0 mmap(0x00000000,<br>
>>>> 91352,<br>
> PROT_READ,<br>
>>>> MAP_PRIVATE, 7, 0) = 0xFE1A0000 close(7)<br>
>>>><br>
> = 0<br>
>>>> munmap(0xFE1A0000, 91352)                   = 0<br>
>>>> stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf",<br>
>>>><br>
>>>><br>
><br>
>>>><br>
0xFFBF6F28) = 0<br>
>>>> open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf",<br>
>>>><br>
>>>><br>
><br>
>>>><br>
O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0<br>
> fstat(7,<br>
>>>> 0xFFBF6D60)                         = 0 mmap(0x00000000,<br>
>>>> 253724,<br>
> PROT_READ,<br>
>>>> MAP_PRIVATE, 7, 0) = 0xFE180000 close(7)<br>
>>>><br>
> = 0<br>
>>>> munmap(0xFE180000, 253724)                  = 0<br>
>>>> stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf",<br>
>>>><br>
>>>><br>
><br>
>>>><br>
0xFFBF6F28) = 0<br>
>>>> open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf",<br>
>>>><br>
>>>><br>
><br>
>>>><br>
O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0<br>
> fstat(7,<br>
>>>> 0xFFBF6D60)                         = 0 mmap(0x00000000,<br>
>>>> 486132,<br>
> PROT_READ,<br>
>>>> MAP_PRIVATE, 7, 0) = 0xFE140000 close(7)<br>
>>>><br>
> = 0<br>
>>>> munmap(0xFE140000, 486132)                  = 0<br>
>>>><br>
>>>> ...and so on. Any idea why this might have started happening<br>
>>>> and what I can do about it? The server OS is Solaris 10<br>
>>>> (probably relatively recently upgraded from S10u10 to<br>
>>>> S10u11. The graph gets created immediately at the end of<br>
>>>> these font openings.<br>
>>><br>
>>> - --<br>
><br>
>> Unfortunately, I'm not especially familiar with Solaris any<br>
>> more... My suspicion would be that the underlying rrdtool access<br>
>> is doing this? Is truss equivalent to running strace with "-f" in<br>
>> follow mode? AFAIK showgraph.cgi itself wouldn't have any reason<br>
>> to muck directly with the font files...<br>
><br>
> I suspect it's at least related to rrdtool, but when I do -f (it's<br>
> the same as for strace), it is all the showgraph.cgi process ID<br>
> doing the work.<br>
><br>
><br>
</div></div>> _______________________________________________ Xymon mailing list<br>
> <a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a> <mailto:<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a>><br>
> <a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<div class="im">><br>
<br>
- --<br>
 ____*Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*<br>
 || \\UTGERS      |---------------------*O*---------------------<br>
 ||_// Biomedical | Ryan Novosielski - Sr. Systems Programmer<br>
 || \\ and Health | <a href="mailto:novosirj@rutgers.edu">novosirj@rutgers.edu</a> - <a href="tel:973%2F972.0922" value="+19739720922">973/972.0922</a> (2x0922)<br>
 ||  \\  Sciences | OIT/EI-Academic Svcs. - ADMC 450, Newark<br>
      `'<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.11 (GNU/Linux)<br>
Comment: Using GnuPG with Thunderbird - <a href="http://www.enigmail.net/" target="_blank">http://www.enigmail.net/</a><br>
<br>
</div>iEYEARECAAYFAlJTCuMACgkQmb+gadEcsb4cMgCcCfVyjPy4rfESWuICxH9SnOwa<br>
rMgAoN6KNebsTooF86E2Oy7uc3VPvpvP<br>
=P+vJ<br>
-----END PGP SIGNATURE-----<br>
<br>
</blockquote></div><br></div>