Disabling Paging

> > I don’t think so. Paging is something essential that brings the

> OS to live.
> You can only “kill swapping” the hard way by preventing that
> there is space
> for a swapfile.

When we dont set any PageFile, after rebotting OS gives message and uses
temporary pagefile. I have enough HDD space and i cannot prevent it without
having space. Once there is some space, OS will create somehow Temporary
page file.

Regards,
Satish K.S

Exactly , that is what I was thinking about when I wrote “preventing that there is space for a
swapfile” …

(1) Yes Windows XPE “XP Embedded” allows an image of XP to be built that
does not need a hard drive. It is called the EWF “Enhanced Write Filter”
Sincerely
William Michael Jones

“Christiaan Ghijselinck” wrote in
message news:xxxxx@ntdev…
>
>
> > > I don’t think so. Paging is something essential that brings the
> > > OS to live.
> > > You can only “kill swapping” the hard way by preventing that
> > > there is space
> > > for a swapfile.
> >
> > When we dont set any PageFile, after rebotting OS gives message and uses
> > temporary pagefile. I have enough HDD space and i cannot prevent it
without
> > having space. Once there is some space, OS will create somehow Temporary
> > page file.
> >
> > Regards,
> > Satish K.S
> >
>
> Exactly , that is what I was thinking about when I wrote “preventing that
there is space for a
> swapfile” …
>
>
>

Thanks for all replies. I will install XP and check it :-). If there
is any link which talks about disable paging in XP. please let me
know. which will help me to configure easily.

Regards,
Satish K.S

On Wed, 1 Sep 2004 10:49:52 -0400, Michael Jones
wrote:
> (1) Yes Windows XPE “XP Embedded” allows an image of XP to be built that
> does not need a hard drive. It is called the EWF “Enhanced Write Filter”
> Sincerely
> William Michael Jones
>
> “Christiaan Ghijselinck” wrote in
> message news:xxxxx@ntdev…
>
>
> >
> >
> > > > I don’t think so. Paging is something essential that brings the
> > > > OS to live.
> > > > You can only “kill swapping” the hard way by preventing that
> > > > there is space
> > > > for a swapfile.
> > >
> > > When we dont set any PageFile, after rebotting OS gives message and uses
> > > temporary pagefile. I have enough HDD space and i cannot prevent it
> without
> > > having space. Once there is some space, OS will create somehow Temporary
> > > page file.
> > >
> > > Regards,
> > > Satish K.S
> > >
> >
> > Exactly , that is what I was thinking about when I wrote “preventing that
> there is space for a
> > swapfile” …
> >
> >
> >
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Hi Satish,

I’ve seen the replies to this thread, and I’m still not really sure what
you’re actually trying to achieve.

If you really just want Windows to use all the ram, write an application
that allocates ~1GB of memory, and run a loop where it’s accessing all of
that allocation, something like:

{
ULONG size = 1024 * 1024 * 1024;
ULONG i;
ULONG *p = (ULONG *)malloc(size);
if (p == NULL)
return
for(;:wink:
{
for (i = 0; i < size / sizeof ULONG; i++)
{
p[i] = i;
}
for (i = 0; i < size / sizeof ULONG; i++)
{
if (p[i] != i)
{
printf(“Element %d is wrong: %d”, i, p[i]);
}
}

}
}

Obviously, you really only need to access a byte every 4K to get the page
mapped into physical memory.

If you run this in conjunction with your driver, you should be able to get
the effect of having a lot of memory, but a lot of it being occupied by
other things.


Mats

xxxxx@lists.osr.com wrote on 08/31/2004 07:13:44 PM:

Hi all,

I have 1.5 GB RAM and i want to test by disabling paging completly. If
i tried to without setting any pagefile, after reboot it creates
temporary pagefile.

I tried setting DisablePagingExecutive to 0 and doesnt help much.

When i see thru Taskmanager i see still 1.2 GB ram is not used, so i
like to test by disabling paging completly.

( This is just for testing and making my win2k to use all my physical RAM
)

Regards,
Satish K.S


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

You are currently subscribed to ntdev as: xxxxx@3dlabs.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

ForwardSourceID:NT000025FE

Mats :

I got what u are saying. I am not doing anything in driver relate to
this. I was just wondering wheather there is some option to disable
paging, Since Most of RAM was useless(more then 1.2GB ) in this PC.
When i see waste of RAM, i just shoot this mail to list. If there is
no option in OS to turn ON/OFF( Turn OFF, if it reaches beyond some
limit in availability of physical RAM, then OS should start use paging
or something ) I cannot crib.

If there is memory intensive applications where need more memory or
where running applications are more and the physical RAM is less, then
paging is must to satisfy its Hunger.

Regards,
Satish K.S

On Wed, 1 Sep 2004 16:38:02 +0100, Mats PETERSSON
wrote:
>
>
> Hi Satish,
>
> I’ve seen the replies to this thread, and I’m still not really sure what
> you’re actually trying to achieve.
>
> If you really just want Windows to use all the ram, write an application
> that allocates ~1GB of memory, and run a loop where it’s accessing all of
> that allocation, something like:
>
> {
> ULONG size = 1024 * 1024 * 1024;
> ULONG i;
> ULONG *p = (ULONG *)malloc(size);
> if (p == NULL)
> return
> for(;:wink:
> {
> for (i = 0; i < size / sizeof ULONG; i++)
> {
> p[i] = i;
> }
> for (i = 0; i < size / sizeof ULONG; i++)
> {
> if (p[i] != i)
> {
> printf(“Element %d is wrong: %d”, i, p[i]);
> }
> }
>
> }
> }
>
> Obviously, you really only need to access a byte every 4K to get the page
> mapped into physical memory.
>
> If you run this in conjunction with your driver, you should be able to get
> the effect of having a lot of memory, but a lot of it being occupied by
> other things.
>
> –
> Mats
>
> xxxxx@lists.osr.com wrote on 08/31/2004 07:13:44 PM:
>
>
>
> > Hi all,
> >
> > I have 1.5 GB RAM and i want to test by disabling paging completly. If
> > i tried to without setting any pagefile, after reboot it creates
> > temporary pagefile.
> >
> > I tried setting DisablePagingExecutive to 0 and doesnt help much.
> >
> > When i see thru Taskmanager i see still 1.2 GB ram is not used, so i
> > like to test by disabling paging completly.
> >
> > ( This is just for testing and making my win2k to use all my physical RAM
> )
> >
> > Regards,
> > Satish K.S
> >
> > —
> > Questions? First check the Kernel Driver FAQ at http://www.
> > osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@3dlabs.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> > ForwardSourceID:NT000025FE
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Ummm, I really wonder what the point of this exercise is.

The system is really pretty good about only swapping if it doesn’t have
what it thinks is a better use for some bit of physical memory.

Paging is a time saving device when an application is loaded. Disk
access is relatively slow, so it generally (or at least originally :slight_smile:
makes sense to only load into memory those pages that are actually used.
This isn’t done to save memory, but to speed things up. Of course, with
modern hard drives, it’s not entirely clear that this is still worth the
trouble, so maybe that’s the point? I don’t know of any way to turn off
this behavior, though…

It might be nice to have a “load the entire image into physical memory
at program startup” option… is that what you’re really asking for?

Int3 wrote:

Mats :

I got what u are saying. I am not doing anything in driver relate to
this. I was just wondering wheather there is some option to disable
paging, Since Most of RAM was useless(more then 1.2GB ) in this PC.
When i see waste of RAM, i just shoot this mail to list. If there is
no option in OS to turn ON/OFF( Turn OFF, if it reaches beyond some
limit in availability of physical RAM, then OS should start use paging
or something ) I cannot crib.

If there is memory intensive applications where need more memory or
where running applications are more and the physical RAM is less, then
paging is must to satisfy its Hunger.

Regards,
Satish K.S

On Wed, 1 Sep 2004 16:38:02 +0100, Mats PETERSSON
wrote:
>
>>
>>Hi Satish,
>>
>>I’ve seen the replies to this thread, and I’m still not really sure what
>>you’re actually trying to achieve.
>>
>>If you really just want Windows to use all the ram, write an application
>>that allocates ~1GB of memory, and run a loop where it’s accessing all of
>>that allocation, something like:
>>
>>{
>> ULONG size = 1024 * 1024 * 1024;
>> ULONG i;
>> ULONG *p = (ULONG *)malloc(size);
>> if (p == NULL)
>> return
>> for(;:wink:
>> {
>> for (i = 0; i < size / sizeof ULONG; i++)
>> {
>> p[i] = i;
>> }
>> for (i = 0; i < size / sizeof ULONG; i++)
>> {
>> if (p[i] != i)
>> {
>> printf(“Element %d is wrong: %d”, i, p[i]);
>> }
>> }
>>
>> }
>>}
>>
>>Obviously, you really only need to access a byte every 4K to get the page
>>mapped into physical memory.
>>
>>If you run this in conjunction with your driver, you should be able to get
>>the effect of having a lot of memory, but a lot of it being occupied by
>>other things.
>>
>>–
>>Mats
>>
>>xxxxx@lists.osr.com wrote on 08/31/2004 07:13:44 PM:
>>
>>
>>
>>
>>>Hi all,
>>>
>>>I have 1.5 GB RAM and i want to test by disabling paging completly. If
>>>i tried to without setting any pagefile, after reboot it creates
>>>temporary pagefile.
>>>
>>>I tried setting DisablePagingExecutive to 0 and doesnt help much.
>>>
>>>When i see thru Taskmanager i see still 1.2 GB ram is not used, so i
>>>like to test by disabling paging completly.
>>>
>>>( This is just for testing and making my win2k to use all my physical RAM
>>
>>)
>>
>>>Regards,
>>>Satish K.S
>>>
>>>—
>>>Questions? First check the Kernel Driver FAQ at http://www.
>>>osronline.com/article.cfm?id=256
>>>
>>>You are currently subscribed to ntdev as: xxxxx@3dlabs.com
>>>To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>>ForwardSourceID:NT000025FE
>>
>>
>>
>>
>>—
>>Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>>
>>You are currently subscribed to ntdev as: xxxxx@gmail.com
>>To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>
>


…/ray..

Please remove “.spamblock” from my email address if you need to contact
me outside the newsgroup.

  1. Right-click on My Computer, and select Properties.
  2. Click Advanced tab.
  3. In Performance box, click Settings button.
  4. Click Advanced tab.
  5. In Virtual memory box, click Change button.
  6. For each successive volume in the list, select the volume, click the
    “No paging file” radio button, then click the Set button.

Chuck

----- Original Message -----
From: “Int3”
To: “Windows System Software Devs Interest List”
Sent: Wednesday, September 01, 2004 10:20 PM
Subject: Re: [ntdev] Disabling Paging

> Thanks for all replies. I will install XP and check it :-). If there
> is any link which talks about disable paging in XP. please let me
> know. which will help me to configure easily.
>
> Regards,
> Satish K.S

Chuck :

That doesnt work, i already told in this thread what will happen if we
dont set paging option. it creates temporary when u re-boot(I am using
win2k).

I am off from this list, since its gone too long. thx for all replies.

Regards,
Satish K.S

On Thu, 2 Sep 2004 09:58:24 +0700, Chuck Batson
wrote:
> 1. Right-click on My Computer, and select Properties.
> 2. Click Advanced tab.
> 3. In Performance box, click Settings button.
> 4. Click Advanced tab.
> 5. In Virtual memory box, click Change button.
> 6. For each successive volume in the list, select the volume, click the
> “No paging file” radio button, then click the Set button.
>
> Chuck
>
>
>
> ----- Original Message -----
> From: “Int3”
> To: “Windows System Software Devs Interest List”
> Sent: Wednesday, September 01, 2004 10:20 PM
> Subject: Re: [ntdev] Disabling Paging
>
> > Thanks for all replies. I will install XP and check it :-). If there
> > is any link which talks about disable paging in XP. please let me
> > know. which will help me to configure easily.
> >
> > Regards,
> > Satish K.S
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Gee that’s funny, I could’ve sworn you just said you were going to
switch to XP and were asking on how to disable paging under XP.

Chuck

----- Original Message -----
From: “Int3”
To: “Windows System Software Devs Interest List”
Sent: Thursday, September 02, 2004 11:51 AM
Subject: Re: [ntdev] Disabling Paging

> Chuck :
>
> That doesnt work, i already told in this thread what will happen if we
> dont set paging option. it creates temporary when u re-boot(I am using
> win2k).
>
> I am off from this list, since its gone too long. thx for all replies.
>
> Regards,
> Satish K.S
>
> On Thu, 2 Sep 2004 09:58:24 +0700, Chuck Batson
> wrote:
>> 1. Right-click on My Computer, and select Properties.
>> 2. Click Advanced tab.
>> 3. In Performance box, click Settings button.
>> 4. Click Advanced tab.
>> 5. In Virtual memory box, click Change button.
>> 6. For each successive volume in the list, select the volume, click
>> the
>> “No paging file” radio button, then click the Set button.
>>
>> Chuck
>>
>>
>>
>> ----- Original Message -----
>> From: “Int3”
>> To: “Windows System Software Devs Interest List”
>>
>> Sent: Wednesday, September 01, 2004 10:20 PM
>> Subject: Re: [ntdev] Disabling Paging
>>
>> > Thanks for all replies. I will install XP and check it :-). If
>> > there
>> > is any link which talks about disable paging in XP. please let me
>> > know. which will help me to configure easily.
>> >
>> > Regards,
>> > Satish K.S

Chuck :

Sorry, i thought u were refrring to my original post :-). thx for info. i
will try in XP.

Regards,
Satish K.S

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Chuck Batson
Sent: Thursday, September 02, 2004 11:03 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Disabling Paging

Gee that’s funny, I could’ve sworn you just said you were going to
switch to XP and were asking on how to disable paging under XP.

Chuck

----- Original Message -----
From: “Int3”
> To: “Windows System Software Devs Interest List”
> Sent: Thursday, September 02, 2004 11:51 AM
> Subject: Re: [ntdev] Disabling Paging
>
>
> > Chuck :
> >
> > That doesnt work, i already told in this thread what will happen if we
> > dont set paging option. it creates temporary when u re-boot(I am using
> > win2k).
> >
> > I am off from this list, since its gone too long. thx for all replies.
> >
> > Regards,
> > Satish K.S
> >
> > On Thu, 2 Sep 2004 09:58:24 +0700, Chuck Batson
> > wrote:
> >> 1. Right-click on My Computer, and select Properties.
> >> 2. Click Advanced tab.
> >> 3. In Performance box, click Settings button.
> >> 4. Click Advanced tab.
> >> 5. In Virtual memory box, click Change button.
> >> 6. For each successive volume in the list, select the volume, click
> >> the
> >> “No paging file” radio button, then click the Set button.
> >>
> >> Chuck
> >>
> >>
> >>
> >> ----- Original Message -----
> >> From: “Int3”
> >> To: “Windows System Software Devs Interest List”
> >>
> >> Sent: Wednesday, September 01, 2004 10:20 PM
> >> Subject: Re: [ntdev] Disabling Paging
> >>
> >> > Thanks for all replies. I will install XP and check it :-). If
> >> > there
> >> > is any link which talks about disable paging in XP. please let me
> >> > know. which will help me to configure easily.
> >> >
> >> > Regards,
> >> > Satish K.S
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@liqwidkrystal.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

> Paging is a time saving device when an application is loaded. Disk

access is relatively slow, so it generally (or at least originally :slight_smile:
makes sense to only load into memory those pages that are actually used.

This will work without a pagefile too.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

To add a bit of clarification to the “NO YUO!” replies -

When i see thru Taskmanager i see still 1.2 GB ram is not
used, so i like to test by disabling paging completly.

Slight correction here: Task manager is showing 1.2 GB “available.” But
that does not mean that that 1.2 GB isn’t being used by the OS.

In a system with a lot of recent activity a lot of that “available” RAM
will likely be on the standby page list. This stuff is considered
“available” because it can immediately be used by any process at any time;
but in the meantime it’s used as a sort of cache to the pager. Pages lost
from working sets are kept on this list until either their original
process needs them again (one form of “soft” page fault) or something else
needs them (whereafter the process that lost them will have to go to disk
if it faults to them again).

In effect it’s a system-wide extension to everybody’s working sets.

“Available” includes pages on the free (usually empty or nearly so) and
zero page lists as well. The only way I know of to see the sizes of these
lists is in the debugger (kd> !memusage).

Another way to think of it is that you might see only, say, 300 MB in use
at any time, but it may very well be a *different* 300 MB from time to
time, as pages circulate through the various lists.

Lots of details on this stuff are of course in the memory management
material in Inside Windows 2000.

Jamie Hanrahan
Windows Internals and Drivers Training and Consulting
http://www.cmkrnl.com/
http://www.azius.com/