Re: Inexplicable slowdowns
- From: Frank Rizzo <none@xxxxxxxx>
- Date: Thu, 08 Mar 2007 11:44:04 -0800
Willy Denoyette [MVP] wrote:
"Frank Rizzo" <none@xxxxxxxx> wrote in message news:u2dJyeaYHHA.448@xxxxxxxxxxxxxxxxxxxxxxxLuke Zhang [MSFT] wrote:Hello,
What is the task of the particular thread? What code it will execute? If you have source code on hand, you may add some debug code in it, for example, log exact time in a file after each of steps has been finished, so that you can know which code cause the delay.
The task is to basically schedule an entity into a time slot. So the tasks has to consider hundreds of business rules and find a time slot. The operation is totally memory based (and can take a bit of time). At the end of the operation, the results are written to the database. However, I profiled the SQL operation and it is taking no time at all.
I also noticed that the server was operating at the end of available physical memory (typically 200 mb free out of total of 6GB available) and as a result of perfmon monitoring, I saw that these slowdowns occur when the available physical memory dips to 100mb or so. I am thinking that the operation is forced into the paging file/virtual memory. However, I still can't explain the magnitude of the slowdown, e.g. operation that normally takes a second will take 80 seconds.
I don't get it, your service is a 32 bit process, so, can only consume 2GB (or 3GB) of memory, so the question is - who's consuming the other 3-4GB?
What other applications are you running on this machine? Are there external SQL clients, and how many are they? Did you configure SQL to use all available memory? Did you configure SQL to use all processors?
Honestly, I think SQL server is the culprit.
Oh, I know that SQL Server is the culprit. It's set to consume a max of 3GB. My application consumes 2.5GB (it's compiled with LARGEADDRESSAWARE). And there is a bunch of other smaller apps that are pushing the limit of the memory. I've asked the DBA to kick the SQL Server to 2.5GB, but the guy and his superiors won't budge, so I am left with a bunch of customers who are screaming bloody murder.
Anyway, the part that confounds me is that why an operation that typically takes 1 second could take 80 seconds when only virtual memory is available.
Regards.
.
Willy.
- Follow-Ups:
- Re: Inexplicable slowdowns
- From: Willy Denoyette [MVP]
- Re: Inexplicable slowdowns
- References:
- Inexplicable slowdowns
- From: Frank Rizzo
- Re: Inexplicable slowdowns
- From: Kevin Frey
- Re: Inexplicable slowdowns
- From: Frank Rizzo
- Re: Inexplicable slowdowns
- From: Luke Zhang [MSFT]
- Re: Inexplicable slowdowns
- From: Frank Rizzo
- Re: Inexplicable slowdowns
- From: Willy Denoyette [MVP]
- Inexplicable slowdowns
- Prev by Date: Re: how to deal with a method that returns object array?
- Next by Date: Re: one line struct initialization
- Previous by thread: Re: Inexplicable slowdowns
- Next by thread: Re: Inexplicable slowdowns
- Index(es):
Relevant Pages
|