Re: Disk thrashing with paging file
- From: "Chris" <chrisx@xxxxxxxxxx>
- Date: Fri, 14 Jul 2006 13:15:44 +0100
Thanks Jim. Your Timer suggestion is a very good idea which I'll try before
resorting to the APIs. In the Timer would I need to do anything particular
to stop (or at least reduce) Windows paging out memory. E.g. The app has
tables of data in memory each with 1000's of rows (and I believe this is a
major cause) so would randomly accessing some of the rows (i.e. Copy to
local variables) reduce the amout of data that gets paged out?
As my app uses lots of other VB6 COM DLLs (late & early bound) then should I
access these components too in the Timer to reduce paging out the program
code? If so is it just a matter of testing the object reference or calling
a method of the component?
Presumably there're no problems using the SetProcessWorkingSetSize and
Virtual... API calls in VB6?
"Jim Mack" <jmack@xxxxxxxxxxxxxxx> wrote in message
news:O$kMoezpGHA.516@xxxxxxxxxxxxxxxxxxxxxxx
Chris wrote:
I have the following problem with the paging file on Win 2000
workstations (256 MB / SP3 / Single physical disk) running our custom
user interface app (VB6) and SQL Server. During periods of user
inactivity Windows pages out memory and, when the user starts using
the app again, there's a long period of disk thrashing while memory
is paged back in. Analysis has indicated that neither our apps or
SQL Server is doing anything at the time to trigger or inhibit
the thrashing. (However alot of this problem is due to the fact that
our user interface app holds lots of data in memory. The app uses a
further 50 VB6 COM DLLs.)
Apart from the obvious (Reducing memory usage of our apps / Using
recommended page file size & optimising for foreground apps /
Optimising SQL Server / Disabling un-needed O/S components / Reducing
disk access / Upgarding hardware) is there anything that can be done
to shorten the disk thrashing period? Will using
SetProcessWorkingSetSize or VirtualLock APIs make a difference?
As I read your post I was thinking "wonder what the working set is?", only
to see that you'd already considered it. It's worth a try, certainly. But
the right to set the size is usually reserved for users running as admins --
ordinary users may not have the proper privileges.
You could also try not ever being truly idle -- a timer can help fix that
:-)
--
Jim Mack
MicroDexterity Inc
www.microdexterity.com
.
- Follow-Ups:
- Re: Disk thrashing with paging file
- From: Jim Mack
- Re: Disk thrashing with paging file
- References:
- Disk thrashing with paging file
- From: Chris
- Re: Disk thrashing with paging file
- From: Jim Mack
- Disk thrashing with paging file
- Prev by Date: Re: SECURITY_ATTRIBUTES declaration for CreateFile
- Next by Date: Re: Disk thrashing with paging file
- Previous by thread: Re: Disk thrashing with paging file
- Next by thread: Re: Disk thrashing with paging file
- Index(es):
Relevant Pages
|