How the NT manage the NonPaged Pool? Urgent!!

Hello, This is an urgent message. I suppose to have this done today.

The following code is what I used to allocate a continuous memory:

buf = MmAllocateContiguousMemory(imageSize, phyAddr)

The imageSize is about 2.7MB. I have checked NonPagedPool size on the
computer on which I run the driver. The NonPagedPool is about 1.4 MB. Since
the continuous memory has to be in NonPagedPool, so how the system makeup
the short of NonPagedPool size? I start the drive successfully after I start
the computer, but after I stop the driver, I can not start it again. The
error message in the event log is “insufficient memory resource for allocate
continuous memory”. Can anyone explain that for me? Thanks very much.

==================================
Zhongsheng Wang
P. O. Box 500, M/S 50-480
Beaverton, OR 97077
Email: xxxxx@tek.com
Phone: (503) 627-5260

Well, given that you can get that much NP memory, that kind of makes you the
bad boy on the block. Ain’t no one else in the system gonna run until you
release it. How does it make up for a shortfall when you ask for more than
it can give? I don’t believe it does, or can. NonPaged pool is a scarce
resource and must be treated as such. Asking for more NP pool than is
available is a bit arrogant, and obviously rather foolish.

In your driver unload, did you release it?

Why do you need that much memory, in the first place?

Gary

-----Original Message-----
From: xxxxx@exgate.tek.com
[mailto:xxxxx@exgate.tek.com]
Sent: Wednesday, November 01, 2000 12:54 PM
To: NT Developers Interest List
Subject: [ntdev] How the NT manage the NonPaged Pool? Urgent!!

Hello, This is an urgent message. I suppose to have this done today.

The following code is what I used to allocate a continuous memory:

buf = MmAllocateContiguousMemory(imageSize, phyAddr)

The imageSize is about 2.7MB. I have checked NonPagedPool size on the
computer on which I run the driver. The NonPagedPool is about 1.4 MB. Since
the continuous memory has to be in NonPagedPool, so how the system makeup
the short of NonPagedPool size? I start the drive successfully after I start
the computer, but after I stop the driver, I can not start it again. The
error message in the event log is “insufficient memory resource for allocate
continuous memory”. Can anyone explain that for me? Thanks very much.

==================================
Zhongsheng Wang
P. O. Box 500, M/S 50-480
Beaverton, OR 97077
Email: xxxxx@tek.com
Phone: (503) 627-5260


You are currently subscribed to ntdev as: xxxxx@delphieng.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

Thanks, Gary:

The system was designed before I work on it, so I don’t know whether it is a
smart system. Obviously, load that big file by device driver is not a good
idea. However, I was paid for doing that.

I have solved that problem. I want to share this experience with others. I
run regedit and go to
HKEY_LOCAL_MACHINE\currentControlSet\system\control\session manager\memory
managemant\NonPagedPoolSize

I changed that pool size to a big one. I can start and stop drivers for many
times now.

Z.S.Wang

-----Original Message-----
From: Gary Little [mailto:xxxxx@delphieng.com]
Sent: Wednesday, November 01, 2000 2:05 PM
To: NT Developers Interest List
Subject: [ntdev] RE: How the NT manage the NonPaged Pool? Urgent!!

Well, given that you can get that much NP memory, that kind of makes you the
bad boy on the block. Ain’t no one else in the system gonna run until you
release it. How does it make up for a shortfall when you ask for more than
it can give? I don’t believe it does, or can. NonPaged pool is a scarce
resource and must be treated as such. Asking for more NP pool than is
available is a bit arrogant, and obviously rather foolish.

In your driver unload, did you release it?

Why do you need that much memory, in the first place?

Gary

-----Original Message-----
From: xxxxx@exgate.tek.com
[mailto:xxxxx@exgate.tek.com]
Sent: Wednesday, November 01, 2000 12:54 PM
To: NT Developers Interest List
Subject: [ntdev] How the NT manage the NonPaged Pool? Urgent!!

Hello, This is an urgent message. I suppose to have this done today.

The following code is what I used to allocate a continuous memory:

buf = MmAllocateContiguousMemory(imageSize, phyAddr)

The imageSize is about 2.7MB. I have checked NonPagedPool size on the
computer on which I run the driver. The NonPagedPool is about 1.4 MB. Since
the continuous memory has to be in NonPagedPool, so how the system makeup
the short of NonPagedPool size? I start the drive successfully after I start
the computer, but after I stop the driver, I can not start it again. The
error message in the event log is “insufficient memory resource for allocate
continuous memory”. Can anyone explain that for me? Thanks very much.

==================================
Zhongsheng Wang
P. O. Box 500, M/S 50-480
Beaverton, OR 97077
Email: xxxxx@tek.com
Phone: (503) 627-5260


You are currently subscribed to ntdev as: xxxxx@delphieng.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)


You are currently subscribed to ntdev as: xxxxx@exgate.tek.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

i wonder how well this driver works with the driver verifier turned on?

-----Original Message-----
From: xxxxx@exgate.tek.com
[mailto:xxxxx@exgate.tek.com]
Sent: Wednesday, November 01, 2000 3:36 PM
To: NT Developers Interest List
Subject: [ntdev] RE: How the NT manage the NonPaged Pool? Urgent!!

Thanks, Gary:

The system was designed before I work on it, so I don’t know whether it is a
smart system. Obviously, load that big file by device driver is not a good
idea. However, I was paid for doing that.

I have solved that problem. I want to share this experience with others. I
run regedit and go to
HKEY_LOCAL_MACHINE\currentControlSet\system\control\session manager\memory
managemant\NonPagedPoolSize

I changed that pool size to a big one. I can start and stop drivers for many
times now.

Z.S.Wang

-----Original Message-----
From: Gary Little [mailto:xxxxx@delphieng.com]
Sent: Wednesday, November 01, 2000 2:05 PM
To: NT Developers Interest List
Subject: [ntdev] RE: How the NT manage the NonPaged Pool? Urgent!!

Well, given that you can get that much NP memory, that kind of makes you the
bad boy on the block. Ain’t no one else in the system gonna run until you
release it. How does it make up for a shortfall when you ask for more than
it can give? I don’t believe it does, or can. NonPaged pool is a scarce
resource and must be treated as such. Asking for more NP pool than is
available is a bit arrogant, and obviously rather foolish.

In your driver unload, did you release it?

Why do you need that much memory, in the first place?

Gary

-----Original Message-----
From: xxxxx@exgate.tek.com
[mailto:xxxxx@exgate.tek.com]
Sent: Wednesday, November 01, 2000 12:54 PM
To: NT Developers Interest List
Subject: [ntdev] How the NT manage the NonPaged Pool? Urgent!!

Hello, This is an urgent message. I suppose to have this done today.

The following code is what I used to allocate a continuous memory:

buf = MmAllocateContiguousMemory(imageSize, phyAddr)

The imageSize is about 2.7MB. I have checked NonPagedPool size on the
computer on which I run the driver. The NonPagedPool is about 1.4 MB. Since
the continuous memory has to be in NonPagedPool, so how the system makeup
the short of NonPagedPool size? I start the drive successfully after I start
the computer, but after I stop the driver, I can not start it again. The
error message in the event log is “insufficient memory resource for allocate
continuous memory”. Can anyone explain that for me? Thanks very much.

==================================
Zhongsheng Wang
P. O. Box 500, M/S 50-480
Beaverton, OR 97077
Email: xxxxx@tek.com
Phone: (503) 627-5260


You are currently subscribed to ntdev as: xxxxx@delphieng.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)


You are currently subscribed to ntdev as: xxxxx@exgate.tek.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)


You are currently subscribed to ntdev as: xxxxx@veritas.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)