T.R | Title | User | Personal Name | Date | Lines |
---|
2148.1 | | M5::JBALOGH | | Fri Feb 21 1997 12:23 | 15 |
| Sounds like process creation/attach time to me. Especially if he is
getting around the problem with preattached class servers.
If he is using a 4gl like VB or Access it could be actually doing more
than one attach...
Try increasing the MIN on generic to keep some processes around,
increase IDLE for the same reason, or simply stick with the class
server.
Or, set idle to 1 and have him put a wait in his code long enough for
the first process to time out. His second set of inserts should be slow now
too...
John
|
2148.2 | | M5::JHAYTER | | Fri Feb 21 1997 12:44 | 11 |
|
>The first time the program runs, it takes 142 seconds to insert the 3000
>rows.
>The second time the program runs, it takes 33 seconds to insert the 3000 rows.
~~100 seconds dif, sounds like a long time for process creation, even adding in
global buffers for the attach.
>Anyone know of what might explain this performance degradation?
rmu/show stat ??
|
2148.3 | More guesses? | BROKE::BASTINE | | Fri Feb 21 1997 13:22 | 14 |
| What about caching?
Let's say that the GENERIC process creates the executor process, you attach,
do some work in Rdb using this executor pid. Then you disconnect, but the
executor process is still out there. Is Rdb smart enough to keep cache active
so that the second attach goes faster because this process already touched all
these pages the first time??? Just wild theory's.
Jerry is right... it isn't the process creation... I already threw that back
at the customer. Customer times the insert time only to leave out the
attach/process creation overhead.
Thanks,
Renee
|
2148.4 | | M5::JHAYTER | | Fri Feb 21 1997 13:54 | 11 |
|
>Let's say that the GENERIC process creates the executor process, you attach,
>do some work in Rdb using this executor pid. Then you disconnect, but the
>executor process is still out there. Is Rdb smart enough to keep cache active
>so that the second attach goes faster because this process already touched all
>these pages the first time??? Just wild theory's.
with generic, when the user disconnects from sql/srv the db attach goes
away, so on reconnect, a new attach to the db is done.
rmu/show stat time if you ask me.
|
2148.5 | See what show/stat shows | BROKE::BASTINE | | Fri Feb 21 1997 14:16 | 8 |
| >rmu/show stat time if you ask me.
Ok, Ok... I am trying to re-create the situation here. Almost there, but
won't be able to continue until next week... will ask customer on Monday
what he sees.
Thanks!
Renee
|
2148.6 | | M5::JBALOGH | | Fri Feb 21 1997 15:40 | 4 |
| What is this written in? How about a driver log to see what they are
actually doing...
John
|
2148.7 | | BROKE::BASTINE | | Fri Feb 21 1997 17:28 | 6 |
| It is a VB program... never thought of getting a log! I hate it when
that happens!! :(
Thanks John!
Renee
|
2148.8 | | M5::JHAYTER | | Fri Feb 21 1997 19:16 | 23 |
|
>It is a VB program... never thought of getting a log! I hate it when
I did and eeehhhhh...
ooh, i get to argue with john - about time since he has taught me 99.9% of
what I know about odbc and sql/srv. THANKS JOHN
Renee, from what you first posted, almost 2 minutes of time difference
between the first insert and the second still makes me say rmu/show stat.
One thing that comes to mind is constraints with no index. The first
insert goes well, but the second is reading, reading to valiadate the
constraint. But, if there is already lots of records previously loaded
and this problem is occuring during each "daily" odbc program run, then,
more postulation....
How is you CT determining the insert times are really "insert times"?
More curosity than anything else.
Getting a log is still a good idea. Painfully learned that by NOT
listening to John.
Jerry
|
2148.9 | hard to tell without a log | M5::JBALOGH | | Sat Feb 22 1997 14:24 | 11 |
| I am a little suspicious on how the customer is measuring only
insert times. VB has a nasty habit of making 2 or more attaches,
sometimes when you least expect it to. I agree, the time difference
sounds excessive when you only consider one attach, maybe not so
excessive with 2 or more... :)
If this truly is only insert time, Jerry is right, we need to look
at show stats to see what it is doing. The log files would tell us
if we are making more than one attach...
John
|