[rt-users] Performance Issues

Dan Pritts danno at internet2.edu
Thu Sep 9 17:40:18 EDT 2004


On Thu, Sep 09, 2004 at 04:03:02PM -0500, Les Mikesell wrote:
> You could try an 'strace -p process_id_number' on the busy process
> to see if it is doing something obviously wrong.

duh.  Sometimes i'm a bit dense.

So I've watched the mason_handler processes and I'm seeing lots
and lots of two things that probably don't need to happen 
as much as they do.

1)  a boatload of time() calls.  In once case, ~4500 within 6 seconds
(the time it took the process to bring up one ticket diary).

2)  a boatload of stat64 calls looking for various files.  
Over and over again, local directory doesn't exist.
In some cases, multiple stats in sequence for the same file.

Appended are examples.

I don't know enough about perl to know how to profile the code to
see where all these time() syscalls are coming from.  Suggestions
welcome.

Also, Matt Mankins suggested I update DBIX-SearchBuilder to the latest
version, which i have done (and restarted the mason_handlers) with no
apparent effect.

danno
--
dan pritts                                       danno at internet2.edu
systems administrator                            734/352-4953 office
internet2                                        734/834-7224 mobile

stat64("/usr/local/pkg/rt-3.2.1/local/html/Elements/Callback", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/Elements/Callback", {st_mode=S_IFREG|0755, st_size=1906, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/Callbacks", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/Callbacks", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/local/html/Elements/Tabs", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/Elements/Tabs", {st_mode=S_IFREG|0755, st_size=2619, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/Elements/CreateTicket", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/Elements/CreateTicket", {st_mode=S_IFREG|0755, st_size=1070, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/Elements/SelectNewTicketQueue", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/Elements/SelectNewTicketQueue", {st_mode=S_IFREG|0755, st_size=1756, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/l", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/l", {st_mode=S_IFREG|0755, st_size=1039, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/Elements/SimpleSearch", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/Elements/SimpleSearch", {st_mode=S_IFREG|0755, st_size=1067, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/l", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/l", {st_mode=S_IFREG|0755, st_size=1039, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/Elements/Callback", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/Elements/Callback", {st_mode=S_IFREG|0755, st_size=1906, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/Callbacks", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/Callbacks", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/local/html/Elements/PageLayout", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/Elements/PageLayout", {st_mode=S_IFREG|0755, st_size=2934, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/Elements/Menu", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/Elements/Menu", {st_mode=S_IFREG|0755, st_size=2610, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/Elements/Menu", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/Elements/Menu", {st_mode=S_IFREG|0755, st_size=2610, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/Elements/Menu", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/Elements/Menu", {st_mode=S_IFREG|0755, st_size=2610, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/Elements/Menu", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/Elements/Menu", {st_mode=S_IFREG|0755, st_size=2610, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/Elements/ListActions", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/Elements/ListActions", {st_mode=S_IFREG|0755, st_size=1329, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/Elements/TitleBoxStart", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/Elements/TitleBoxStart", {st_mode=S_IFREG|0755, st_size=2073, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/Ticket/Elements/ShowSummary", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/Ticket/Elements/ShowSummary", {st_mode=S_IFREG|0755, st_size=2785, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/Elements/TitleBoxStart", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/Elements/TitleBoxStart", {st_mode=S_IFREG|0755, st_size=2073, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/Ticket/Elements/ShowBasics", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/Ticket/Elements/ShowBasics", {st_mode=S_IFREG|0755, st_size=1887, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/l", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/l", {st_mode=S_IFREG|0755, st_size=1039, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/l", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/l", {st_mode=S_IFREG|0755, st_size=1039, ...}) = 0
stat64("/usr/local/pkg/rt-3.2.1/local/html/l", 0x86200c8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/pkg/rt-3.2.1/share/html/l", {st_mode=S_IFREG|0755, st_size=1039, ...}) = 0




More information about the rt-users mailing list