System cache in SP1 and SP2

Hi all,

I have a problem in a SCSI miniport driver (virtual CD/DVD device driver). It works fine on WinXP SP2 but when I try to run it on WinXP SP1 I get a strange behaviour - the system gets frozen after read of several hundred megabytes of data.

We found that according to Task Manager the amount of Available memory is decreased and the amount of System Cache is increased for the amount of read data. This is the permanent change, i.e. memory is not reallocated between Available and System Cache even in some hours of idle time and even when the system has too few Available memory (1-2 MB of RAM) to function.

However if I run applications which require a lot of memory the Available memory is reallocated, but not completely.

On WinXP SP2 the memory between Available and System Cache is not reallocated during massive read at all.

Thanks,
Roman

By “On WinXP SP2 the memory between Available and System Cache is not reallocated during massive read at all” I mean that Available memory is not decreased during reads and thus the system does not get frozen.

“Roman Kudinov” ???/??? ? ??? ???: news:xxxxx@ntdev…
Hi all,

I have a problem in a SCSI miniport driver (virtual CD/DVD device driver). It works fine on WinXP SP2 but when I try to run it on WinXP SP1 I get a strange behaviour - the system gets frozen after read of several hundred megabytes of data.

We found that according to Task Manager the amount of Available memory is decreased and the amount of System Cache is increased for the amount of read data. This is the permanent change, i.e. memory is not reallocated between Available and System Cache even in some hours of idle time and even when the system has too few Available memory (1-2 MB of RAM) to function.

However if I run applications which require a lot of memory the Available memory is reallocated, but not completely.

On WinXP SP2 the memory between Available and System Cache is not reallocated during massive read at all.

Thanks,
Roman

Sounds like your leaking memory. Please do tell how Driver Verifier is
not helping in locating the issue at hand.

m.

Roman Kudinov wrote:

By “On WinXP SP2 the memory between Available and System Cache is not
reallocated during massive read at all” I mean that Available memory
is not decreased during reads and thus the system does not get frozen.

“Roman Kudinov” >
> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: news:xxxxx@ntdev…
> Hi all,
>
>
> I have a problem in a SCSI miniport driver (virtual CD/DVD device
> driver). It works fine on WinXP SP2 but when I try to run it on
> WinXP SP1 I get a strange behaviour - the system gets frozen after
> read of several hundred megabytes of data.
>
> We found that according to Task Manager the amount of Available
> memory is decreased and the amount of System Cache is increased
> for the amount of read data. This is the permanent change, i.e.
> memory is not reallocated between Available and System Cache even
> in some hours of idle time and even when the system has too few
> Available memory (1-2 MB of RAM) to function.
>
> However if I run applications which require a lot of memory the
> Available memory is reallocated, but not completely.
>
> On WinXP SP2 the memory between Available and System Cache is not
> reallocated during massive read at all.
>
> Thanks,
> Roman
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer

The first strange thing is that I do not allocate memory at all,
ExAllocatePool is never called.
The second strange thing is that it appears on WinXP SP1 and does not appear
on WinXP SP2
The third strange thing is that I do not see how memory leaks may increase
amount of memory allocated for System Cache. As soon as I understand System
Cache is the memory allocated by Cache Manager, doesn’t it?

However I’ll try Driver Verifier.

Thanks,
Roman

“MM” ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:xxxxx@ntdev…
> Sounds like your leaking memory. Please do tell how Driver Verifier is
> not helping in locating the issue at hand.
>
> m.
>
> Roman Kudinov wrote:
>
> > By “On WinXP SP2 the memory between Available and System Cache is not
> > reallocated during massive read at all” I mean that Available memory
> > is not decreased during reads and thus the system does not get frozen.
> >
> >
> > “Roman Kudinov” >
> > ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: news:xxxxx@ntdev…
> > Hi all,
> >
> >
> > I have a problem in a SCSI miniport driver (virtual CD/DVD device
> > driver). It works fine on WinXP SP2 but when I try to run it on
> > WinXP SP1 I get a strange behaviour - the system gets frozen after
> > read of several hundred megabytes of data.
> >
> > We found that according to Task Manager the amount of Available
> > memory is decreased and the amount of System Cache is increased
> > for the amount of read data. This is the permanent change, i.e.
> > memory is not reallocated between Available and System Cache even
> > in some hours of idle time and even when the system has too few
> > Available memory (1-2 MB of RAM) to function.
> >
> > However if I run applications which require a lot of memory the
> > Available memory is reallocated, but not completely.
> >
> > On WinXP SP2 the memory between Available and System Cache is not
> > reallocated during massive read at all.
> >
> > Thanks,
> > Roman
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > To unsubscribe, visit the List Server section of OSR Online at
> > http://www.osronline.com/page.cfm?name=ListServer
>
>

Do you use system worker threads? If yes - try to change design to manually
created worker threads pool.

Anton

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Roman Kudinov
Sent: Monday, October 02, 2006 8:59 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] System cache in SP1 and SP2

The first strange thing is that I do not allocate memory at all,
ExAllocatePool is never called.
The second strange thing is that it appears on WinXP SP1 and does not appear
on WinXP SP2
The third strange thing is that I do not see how memory leaks may increase
amount of memory allocated for System Cache. As soon as I understand System
Cache is the memory allocated by Cache Manager, doesn’t it?

However I’ll try Driver Verifier.

Thanks,
Roman

“MM” ???/??? ? ??? ???:
news:xxxxx@ntdev…
> Sounds like your leaking memory. Please do tell how Driver Verifier is
> not helping in locating the issue at hand.
>
> m.
>
> Roman Kudinov wrote:
>
> > By “On WinXP SP2 the memory between Available and System Cache is not
> > reallocated during massive read at all” I mean that Available memory
> > is not decreased during reads and thus the system does not get frozen.
> >
> >
> > “Roman Kudinov” >
> > ???/??? ? ??? ???: news:xxxxx@ntdev…
> > Hi all,
> >
> >
> > I have a problem in a SCSI miniport driver (virtual CD/DVD device
> > driver). It works fine on WinXP SP2 but when I try to run it on
> > WinXP SP1 I get a strange behaviour - the system gets frozen after
> > read of several hundred megabytes of data.
> >
> > We found that according to Task Manager the amount of Available
> > memory is decreased and the amount of System Cache is increased
> > for the amount of read data. This is the permanent change, i.e.
> > memory is not reallocated between Available and System Cache even
> > in some hours of idle time and even when the system has too few
> > Available memory (1-2 MB of RAM) to function.
> >
> > However if I run applications which require a lot of memory the
> > Available memory is reallocated, but not completely.
> >
> > On WinXP SP2 the memory between Available and System Cache is not
> > reallocated during massive read at all.
> >
> > Thanks,
> > Roman
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > To unsubscribe, visit the List Server section of OSR Online at
> > http://www.osronline.com/page.cfm?name=ListServer
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Thank you for your suggestion, but could you explain how system worker
threads may lead to the described behaviour?


Roman

“Anton Kolomyeytsev” ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: news:xxxxx@ntdev…
Do you use system worker threads? If yes - try to change design to manually
created worker threads pool.

Anton

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Roman Kudinov
Sent: Monday, October 02, 2006 8:59 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] System cache in SP1 and SP2

The first strange thing is that I do not allocate memory at all,
ExAllocatePool is never called.
The second strange thing is that it appears on WinXP SP1 and does not appear
on WinXP SP2
The third strange thing is that I do not see how memory leaks may increase
amount of memory allocated for System Cache. As soon as I understand System
Cache is the memory allocated by Cache Manager, doesn’t it?

However I’ll try Driver Verifier.

Thanks,
Roman

“MM” ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:xxxxx@ntdev…
> Sounds like your leaking memory. Please do tell how Driver Verifier is
> not helping in locating the issue at hand.
>
> m.
>
> Roman Kudinov wrote:
>
> > By “On WinXP SP2 the memory between Available and System Cache is not
> > reallocated during massive read at all” I mean that Available memory
> > is not decreased during reads and thus the system does not get frozen.
> >
> >
> > “Roman Kudinov” >
> > ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: news:xxxxx@ntdev…
> > Hi all,
> >
> >
> > I have a problem in a SCSI miniport driver (virtual CD/DVD device
> > driver). It works fine on WinXP SP2 but when I try to run it on
> > WinXP SP1 I get a strange behaviour - the system gets frozen after
> > read of several hundred megabytes of data.
> >
> > We found that according to Task Manager the amount of Available
> > memory is decreased and the amount of System Cache is increased
> > for the amount of read data. This is the permanent change, i.e.
> > memory is not reallocated between Available and System Cache even
> > in some hours of idle time and even when the system has too few
> > Available memory (1-2 MB of RAM) to function.
> >
> > However if I run applications which require a lot of memory the
> > Available memory is reallocated, but not completely.
> >
> > On WinXP SP2 the memory between Available and System Cache is not
> > reallocated during massive read at all.
> >
> > Thanks,
> > Roman
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > To unsubscribe, visit the List Server section of OSR Online at
> > http://www.osronline.com/page.cfm?name=ListServer
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer