Dear all,

I've got a small utility running which processes 1000s of records and a
number of tables.
This is kinda a scheduled task.
Its been optimized over and over again...

However, i've noticed taht the process runs faster when the application is
right on top.
I.e. the applicationo is the main app (which has focus).

If how ever i give focus to another app, by opening note pad, or an email,
or IE, then my VFP app
process the information slower (i confirmed this by checking the number of
records processed).

Also, i found that the memory consumption in Task Manager goes up when my
VPF app is on top,
and when my VFP app is NOT visible then it goes down (hence slows).

How can I hack this, and give priority to my VFP app, or give it more
resources?
Or is this something that the Windows OS will decide? (right now, it seems
so).

Re: Task manager Memory usage by Matthew

Matthew
Sun Dec 04 20:46:57 CST 2005

Use task manager to set the task priority to above normal, or high. See if
this helps. Usually, a VFP app will consume available cpu whether it's
foreground or background.




"Roger" <roger@fact.ind.sg> wrote in message
news:OxrpDpT%23FHA.3708@TK2MSFTNGP10.phx.gbl...
> Dear all,
>
> I've got a small utility running which processes 1000s of records and a
> number of tables.
> This is kinda a scheduled task.
> Its been optimized over and over again...
>
> However, i've noticed taht the process runs faster when the application is
> right on top.
> I.e. the applicationo is the main app (which has focus).
>
> If how ever i give focus to another app, by opening note pad, or an
> email, or IE, then my VFP app
> process the information slower (i confirmed this by checking the number of
> records processed).
>
> Also, i found that the memory consumption in Task Manager goes up when my
> VPF app is on top,
> and when my VFP app is NOT visible then it goes down (hence slows).
>
> How can I hack this, and give priority to my VFP app, or give it more
> resources?
> Or is this something that the Windows OS will decide? (right now, it seems
> so).
>



Re: Task manager Memory usage by Thomas

Thomas
Sun Dec 04 20:41:57 CST 2005

Hi,

= sys(3050, 2, sys(3050, 1))

HTH

thomas

Roger schrieb:
>
> However, i've noticed taht the process runs faster when the application is
> right on top.
> I.e. the applicationo is the main app (which has focus).
>
> If how ever i give focus to another app, by opening note pad, or an email,
> or IE, then my VFP app
> process the information slower (i confirmed this by checking the number of
> records processed).
>
> Also, i found that the memory consumption in Task Manager goes up when my
> VPF app is on top,
> and when my VFP app is NOT visible then it goes down (hence slows).
>
> How can I hack this, and give priority to my VFP app, or give it more
> resources?
> Or is this something that the Windows OS will decide? (right now, it seems
> so).
>
>

Re: Task manager Memory usage by MichelRoy

MichelRoy
Sun Dec 04 20:56:03 CST 2005

in addition you could use _vfp.autoyield = .f.
as long as it's not a cpu intensive app.

"Thomas Ganss" wrote:

> Hi,
>
> = sys(3050, 2, sys(3050, 1))
>
> HTH
>
> thomas
>
> Roger schrieb:
> >
> > However, i've noticed taht the process runs faster when the application is
> > right on top.
> > I.e. the applicationo is the main app (which has focus).
> >
> > If how ever i give focus to another app, by opening note pad, or an email,
> > or IE, then my VFP app
> > process the information slower (i confirmed this by checking the number of
> > records processed).
> >
> > Also, i found that the memory consumption in Task Manager goes up when my
> > VPF app is on top,
> > and when my VFP app is NOT visible then it goes down (hence slows).
> >
> > How can I hack this, and give priority to my VFP app, or give it more
> > resources?
> > Or is this something that the Windows OS will decide? (right now, it seems
> > so).
> >
> >
>

Re: Task manager Memory usage by Roger

Roger
Sun Dec 04 22:48:24 CST 2005

Brilliant!! EXACTLY what i wanted.
Thanks.

"Thomas Ganss"
<tganss_at_t_dash_online_dot_de-remove-all-after-first-real-dash@yahoo.com>
wrote in message news:dn09io$tvc$02$1@news.t-online.com...
> Hi,
>
> = sys(3050, 2, sys(3050, 1))
>
> HTH
>
> thomas
>
> Roger schrieb:
>>
>> However, i've noticed taht the process runs faster when the application
>> is right on top.
>> I.e. the applicationo is the main app (which has focus).
>>
>> If how ever i give focus to another app, by opening note pad, or an
>> email, or IE, then my VFP app
>> process the information slower (i confirmed this by checking the number
>> of records processed).
>>
>> Also, i found that the memory consumption in Task Manager goes up when my
>> VPF app is on top,
>> and when my VFP app is NOT visible then it goes down (hence slows).
>>
>> How can I hack this, and give priority to my VFP app, or give it more
>> resources?
>> Or is this something that the Windows OS will decide? (right now, it
>> seems so).



Re: Task manager Memory usage by Dan

Dan
Mon Dec 05 09:57:18 CST 2005

You should not set the priority to high. This could cause problems with
your operating system. It puts Foxpro at the same priority level as your
OS.

See the link below
http://www.mvps.org/access/api/api0059.htm


Good luck,
Dan


"Matthew Reed" <matty don't send me any freaking spam at zootal dot com
remove the don't send me any freaking spam> wrote in message
news:O1E3BXU%23FHA.2384@TK2MSFTNGP15.phx.gbl...
> Use task manager to set the task priority to above normal, or high. See if
> this helps. Usually, a VFP app will consume available cpu whether it's
> foreground or background.
>
>
>
>
> "Roger" <roger@fact.ind.sg> wrote in message
> news:OxrpDpT%23FHA.3708@TK2MSFTNGP10.phx.gbl...
> > Dear all,
> >
> > I've got a small utility running which processes 1000s of records and a
> > number of tables.
> > This is kinda a scheduled task.
> > Its been optimized over and over again...
> >
> > However, i've noticed taht the process runs faster when the application
is
> > right on top.
> > I.e. the applicationo is the main app (which has focus).
> >
> > If how ever i give focus to another app, by opening note pad, or an
> > email, or IE, then my VFP app
> > process the information slower (i confirmed this by checking the number
of
> > records processed).
> >
> > Also, i found that the memory consumption in Task Manager goes up when
my
> > VPF app is on top,
> > and when my VFP app is NOT visible then it goes down (hence slows).
> >
> > How can I hack this, and give priority to my VFP app, or give it more
> > resources?
> > Or is this something that the Windows OS will decide? (right now, it
seems
> > so).
> >
>
>



Re: Task manager Memory usage by Matthew

Matthew
Mon Dec 05 20:41:21 CST 2005

The article at the link you posted does not say that. It says not to run at
realtime priority. I agree with the article, running at realtime priority is
very dangerous. However, running at high priority (which I suggested the OP
do) is perfectly safe. I have done this with various processes for years and
never had a problem with it. VFP will run quite happily at high priority
with no adverse effects on your OS.

"Dan Tallent" <spam@Earthlink.net> wrote in message
news:%23jri%23Rb%23FHA.2040@TK2MSFTNGP14.phx.gbl...
> You should not set the priority to high. This could cause problems with
> your operating system. It puts Foxpro at the same priority level as your
> OS.
>
> See the link below
> http://www.mvps.org/access/api/api0059.htm
>
>
> Good luck,
> Dan
>
>
> "Matthew Reed" <matty don't send me any freaking spam at zootal dot com
> remove the don't send me any freaking spam> wrote in message
> news:O1E3BXU%23FHA.2384@TK2MSFTNGP15.phx.gbl...
>> Use task manager to set the task priority to above normal, or high. See
>> if
>> this helps. Usually, a VFP app will consume available cpu whether it's
>> foreground or background.
>>
>>
>>
>>
>> "Roger" <roger@fact.ind.sg> wrote in message
>> news:OxrpDpT%23FHA.3708@TK2MSFTNGP10.phx.gbl...
>> > Dear all,
>> >
>> > I've got a small utility running which processes 1000s of records and a
>> > number of tables.
>> > This is kinda a scheduled task.
>> > Its been optimized over and over again...
>> >
>> > However, i've noticed taht the process runs faster when the application
> is
>> > right on top.
>> > I.e. the applicationo is the main app (which has focus).
>> >
>> > If how ever i give focus to another app, by opening note pad, or an
>> > email, or IE, then my VFP app
>> > process the information slower (i confirmed this by checking the number
> of
>> > records processed).
>> >
>> > Also, i found that the memory consumption in Task Manager goes up when
> my
>> > VPF app is on top,
>> > and when my VFP app is NOT visible then it goes down (hence slows).
>> >
>> > How can I hack this, and give priority to my VFP app, or give it more
>> > resources?
>> > Or is this something that the Windows OS will decide? (right now, it
> seems
>> > so).
>> >
>>
>>
>
>



Re: Task manager Memory usage by Dan

Dan
Tue Dec 06 12:24:41 CST 2005

If you change your priority, do it with care. Please read this short page
from Microsoft.

http://www.microsoft.com/resources/documentation/Windows/2000/server/reskit/en-us/Default.asp?url=/resources/documentation/Windows/2000/server/reskit/en-us/core/fned_ana_spmq.asp

Dan



"Matthew Reed" <matty don't send me any freaking spam at zootal dot com
remove the don't send me any freaking spam> wrote in message
news:uZPse4g%23FHA.264@tk2msftngp13.phx.gbl...
> The article at the link you posted does not say that. It says not to run
at
> realtime priority. I agree with the article, running at realtime priority
is
> very dangerous. However, running at high priority (which I suggested the
OP
> do) is perfectly safe. I have done this with various processes for years
and
> never had a problem with it. VFP will run quite happily at high priority
> with no adverse effects on your OS.
>
> "Dan Tallent" <spam@Earthlink.net> wrote in message
> news:%23jri%23Rb%23FHA.2040@TK2MSFTNGP14.phx.gbl...
> > You should not set the priority to high. This could cause problems
with
> > your operating system. It puts Foxpro at the same priority level as
your
> > OS.
> >
> > See the link below
> > http://www.mvps.org/access/api/api0059.htm
> >
> >
> > Good luck,
> > Dan
> >
> >
> > "Matthew Reed" <matty don't send me any freaking spam at zootal dot com
> > remove the don't send me any freaking spam> wrote in message
> > news:O1E3BXU%23FHA.2384@TK2MSFTNGP15.phx.gbl...
> >> Use task manager to set the task priority to above normal, or high. See
> >> if
> >> this helps. Usually, a VFP app will consume available cpu whether it's
> >> foreground or background.
> >>
> >>
> >>
> >>
> >> "Roger" <roger@fact.ind.sg> wrote in message
> >> news:OxrpDpT%23FHA.3708@TK2MSFTNGP10.phx.gbl...
> >> > Dear all,
> >> >
> >> > I've got a small utility running which processes 1000s of records and
a
> >> > number of tables.
> >> > This is kinda a scheduled task.
> >> > Its been optimized over and over again...
> >> >
> >> > However, i've noticed taht the process runs faster when the
application
> > is
> >> > right on top.
> >> > I.e. the applicationo is the main app (which has focus).
> >> >
> >> > If how ever i give focus to another app, by opening note pad, or an
> >> > email, or IE, then my VFP app
> >> > process the information slower (i confirmed this by checking the
number
> > of
> >> > records processed).
> >> >
> >> > Also, i found that the memory consumption in Task Manager goes up
when
> > my
> >> > VPF app is on top,
> >> > and when my VFP app is NOT visible then it goes down (hence slows).
> >> >
> >> > How can I hack this, and give priority to my VFP app, or give it more
> >> > resources?
> >> > Or is this something that the Windows OS will decide? (right now, it
> > seems
> >> > so).
> >> >
> >>
> >>
> >
> >
>
>