You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@vcl.apache.org by Dmitri Chebotarov <dc...@gmu.edu> on 2012/03/28 21:57:14 UTC
Wndows pagefile.sys settings
Hi, All
I'm using Windows 7 Ent image with VCL/xCAT on a blade with 48GB of memory.
Before capturing the image I set page file to 2GB, once capture is done, the new reservation ends up with 48GB page file.
This leave little space left to install new applications.
I found that Windows.pm calls disable_pagefile() on line 474 during image capture.
Would it be OK to disable this function?
Thank you.
--
Dmitri Chebotarov
Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175
Fax: (703) 993-3404
Re: Wndows pagefile.sys settings
Posted by Dmitri Chebotarov <dc...@gmu.edu>.
James,
After changing settings for reg.exe and re-capturing the Win7 image I was able to get smaller pagefile.sys file for new reservations. Thank you for the help.
--
Dmitri Chebotarov
Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175
Fax: (703) 993-3404
On Thursday, March 29, 2012 at 9:06 , Dmitri Chebotarov wrote:
> James,
>
> Thank you for the hint. I will tweak settings in enable_pagefile() to get right results...
>
>
> --
> Dmitri Chebotarov
> Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging
> 223 Aquia Building, Ffx, MSN: 1B5
> Phone: (703) 993-6175
> Fax: (703) 993-3404
>
>
> On Wednesday, March 28, 2012 at 18:16 , James O'Dell wrote:
>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > What I believe is happening is during the image creation VCL disables
> > the pagefile, reboots, and then removes the pagefile. This makes for
> > a smaller image file.
> >
> > Then, during the image provisioning, the pagefile is re-enabled using
> > the default settings (which is pagefile = ram size).
> >
> > If you look at the 'Windows.pm' there is a sub function called
> > "enable_pagefile". There is a "reg.exe" call used by cygwin that
> > looks like it's re-enabling the pagefile to the default settings.
> >
> > Maybe you could zero out the function, so that it doesn't make the call
> > to cygwin. Or, maybe, modify the "reg.exe" string to limit the
> > registry's setting so that the new pagefile is just a couple Gigs.
> >
> > In the past, I've found registry settings by dumping the registry to a
> > text file, making the changes, and then dumping the registry again.
> > You should be able to find the setting by comparing the files
> > differences.
> >
> > Then roll your own "reg.exe" string.. (or I guess you could just Google
> > the setting, lol)
> >
> > Hope this helps,
> >
> > __Jim
> >
> >
> > On 3/28/2012 2:34 PM, Dmitri Chebotarov wrote:
> > > James
> > >
> > > Yes, I have changed the setting for pagefile. But it resets to default after I capture image and make reservation.
> > >
> > > I've also commented disable_pagefile() in Windows.pm (and restarted vcld), but it doesn't help. New image still has default pagefile setting.
> > >
> > > Is there another place in the code where I could stop VCL from changing pagefile settings?
> > >
> > > Thanks.
> > >
> > > --
> > > Dmitri Chebotarov
> > > Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging
> > > 223 Aquia Building, Ffx, MSN: 1B5
> > > Phone: (703) 993-6175
> > > Fax: (703) 993-3404
> > >
> > >
> > > On Wednesday, March 28, 2012 at 16:19 , James O'Dell wrote:
> > >
> > > Have you tried disabling/reducing the page file before making the image?
> > >
> > > > > > Control Panel
> > > > > >
> > > > > > System and Security
> > > > > >
> > > > > > System
> > > > > >
> > > > > > Click to open System.
> > > > > >
> > > > > > In the left pane, click Advanced system settings. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
> > > > > >
> > > > > > On the Advanced tab, under Performance, click Settings.
> > > > > >
> > > > > > Click the Advanced tab, and then, under Virtual memory, click Change.
> > > > > >
> > > > > > Clear the Automatically manage paging file size for all drives check box.
> > > > > >
> > > > > > Under Drive [Volume Label], click the drive that contains the paging file you want to change.
> > > > > >
> > > > > > Click Custom size, type a new size in megabytes in the Initial size (MB) or Maximum size (MB) box, click Set, and then click OK.
> > >
> > > This should make a registry change, that hopefully prevents Windows from
> > > "Automatically manage paging file size for all drives"
> > >
> > > "Automatically" typically makes the page file the same as the available ram.
> > >
> > > __Jim
> > >
> > > On 3/28/2012 12:57 PM, Dmitri Chebotarov wrote:
> > > > > > Hi, All
> > > > > >
> > > > > > I'm using Windows 7 Ent image with VCL/xCAT on a blade with 48GB of memory.
> > > > > > Before capturing the image I set page file to 2GB, once capture is done, the new reservation ends up with 48GB page file.
> > > > > > This leave little space left to install new applications.
> > > > > >
> > > > > > I found that Windows.pm calls disable_pagefile() on line 474 during image capture.
> > > > > > Would it be OK to disable this function?
> > > > > >
> > > > > > Thank you.
> > > > > >
> > > > > > --
> > > > > > Dmitri Chebotarov
> > > > > > Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging
> > > > > > 223 Aquia Building, Ffx, MSN: 1B5
> > > > > > Phone: (703) 993-6175
> > > > > > Fax: (703) 993-3404
> > > > > >
> > > > >
> > > >
> > >
> > >
> >
> >
> > - --
> > Jim O'Dell
> > Network Analyst
> > California State University Fullerton
> > Email: jodell@fullerton.edu (mailto:jodell@fullerton.edu)
> > Phone: (657) 278-2256
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.9 (MingW32)
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> >
> > iEYEARECAAYFAk9zjbYACgkQREVHAOnXPYToMgCcC/yBmtvnDFIanjmwyZa7dkE8
> > dlsAnAvD5YBf6clZCB6fy3RzH+K9JNeS
> > =+/V1
> > -----END PGP SIGNATURE-----
> >
> >
> >
>
>
Re: Wndows pagefile.sys settings
Posted by Dmitri Chebotarov <dc...@gmu.edu>.
James,
Thank you for the hint. I will tweak settings in enable_pagefile() to get right results...
--
Dmitri Chebotarov
Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175
Fax: (703) 993-3404
On Wednesday, March 28, 2012 at 18:16 , James O'Dell wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> What I believe is happening is during the image creation VCL disables
> the pagefile, reboots, and then removes the pagefile. This makes for
> a smaller image file.
>
> Then, during the image provisioning, the pagefile is re-enabled using
> the default settings (which is pagefile = ram size).
>
> If you look at the 'Windows.pm' there is a sub function called
> "enable_pagefile". There is a "reg.exe" call used by cygwin that
> looks like it's re-enabling the pagefile to the default settings.
>
> Maybe you could zero out the function, so that it doesn't make the call
> to cygwin. Or, maybe, modify the "reg.exe" string to limit the
> registry's setting so that the new pagefile is just a couple Gigs.
>
> In the past, I've found registry settings by dumping the registry to a
> text file, making the changes, and then dumping the registry again.
> You should be able to find the setting by comparing the files
> differences.
>
> Then roll your own "reg.exe" string.. (or I guess you could just Google
> the setting, lol)
>
> Hope this helps,
>
> __Jim
>
>
> On 3/28/2012 2:34 PM, Dmitri Chebotarov wrote:
> > James
> >
> > Yes, I have changed the setting for pagefile. But it resets to default after I capture image and make reservation.
> >
> > I've also commented disable_pagefile() in Windows.pm (and restarted vcld), but it doesn't help. New image still has default pagefile setting.
> >
> > Is there another place in the code where I could stop VCL from changing pagefile settings?
> >
> > Thanks.
> >
> > --
> > Dmitri Chebotarov
> > Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging
> > 223 Aquia Building, Ffx, MSN: 1B5
> > Phone: (703) 993-6175
> > Fax: (703) 993-3404
> >
> >
> > On Wednesday, March 28, 2012 at 16:19 , James O'Dell wrote:
> >
> > Have you tried disabling/reducing the page file before making the image?
> >
> > > > > Control Panel
> > > > >
> > > > > System and Security
> > > > >
> > > > > System
> > > > >
> > > > > Click to open System.
> > > > >
> > > > > In the left pane, click Advanced system settings. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
> > > > >
> > > > > On the Advanced tab, under Performance, click Settings.
> > > > >
> > > > > Click the Advanced tab, and then, under Virtual memory, click Change.
> > > > >
> > > > > Clear the Automatically manage paging file size for all drives check box.
> > > > >
> > > > > Under Drive [Volume Label], click the drive that contains the paging file you want to change.
> > > > >
> > > > > Click Custom size, type a new size in megabytes in the Initial size (MB) or Maximum size (MB) box, click Set, and then click OK.
> >
> > This should make a registry change, that hopefully prevents Windows from
> > "Automatically manage paging file size for all drives"
> >
> > "Automatically" typically makes the page file the same as the available ram.
> >
> > __Jim
> >
> > On 3/28/2012 12:57 PM, Dmitri Chebotarov wrote:
> > > > > Hi, All
> > > > >
> > > > > I'm using Windows 7 Ent image with VCL/xCAT on a blade with 48GB of memory.
> > > > > Before capturing the image I set page file to 2GB, once capture is done, the new reservation ends up with 48GB page file.
> > > > > This leave little space left to install new applications.
> > > > >
> > > > > I found that Windows.pm calls disable_pagefile() on line 474 during image capture.
> > > > > Would it be OK to disable this function?
> > > > >
> > > > > Thank you.
> > > > >
> > > > > --
> > > > > Dmitri Chebotarov
> > > > > Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging
> > > > > 223 Aquia Building, Ffx, MSN: 1B5
> > > > > Phone: (703) 993-6175
> > > > > Fax: (703) 993-3404
> > > > >
> > > >
> > >
> >
> >
>
>
> - --
> Jim O'Dell
> Network Analyst
> California State University Fullerton
> Email: jodell@fullerton.edu (mailto:jodell@fullerton.edu)
> Phone: (657) 278-2256
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk9zjbYACgkQREVHAOnXPYToMgCcC/yBmtvnDFIanjmwyZa7dkE8
> dlsAnAvD5YBf6clZCB6fy3RzH+K9JNeS
> =+/V1
> -----END PGP SIGNATURE-----
>
>
Re: Wndows pagefile.sys settings
Posted by James O'Dell <jo...@fullerton.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
What I believe is happening is during the image creation VCL disables
the pagefile, reboots, and then removes the pagefile. This makes for
a smaller image file.
Then, during the image provisioning, the pagefile is re-enabled using
the default settings (which is pagefile = ram size).
If you look at the 'Windows.pm' there is a sub function called
"enable_pagefile". There is a "reg.exe" call used by cygwin that
looks like it's re-enabling the pagefile to the default settings.
Maybe you could zero out the function, so that it doesn't make the call
to cygwin. Or, maybe, modify the "reg.exe" string to limit the
registry's setting so that the new pagefile is just a couple Gigs.
In the past, I've found registry settings by dumping the registry to a
text file, making the changes, and then dumping the registry again.
You should be able to find the setting by comparing the files
differences.
Then roll your own "reg.exe" string.. (or I guess you could just Google
the setting, lol)
Hope this helps,
__Jim
On 3/28/2012 2:34 PM, Dmitri Chebotarov wrote:
> James
>
> Yes, I have changed the setting for pagefile. But it resets to default after I capture image and make reservation.
>
> I've also commented disable_pagefile() in Windows.pm (and restarted vcld), but it doesn't help. New image still has default pagefile setting.
>
> Is there another place in the code where I could stop VCL from changing pagefile settings?
>
> Thanks.
>
> --
> Dmitri Chebotarov
> Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging
> 223 Aquia Building, Ffx, MSN: 1B5
> Phone: (703) 993-6175
> Fax: (703) 993-3404
>
>
> On Wednesday, March 28, 2012 at 16:19 , James O'Dell wrote:
>
> Have you tried disabling/reducing the page file before making the image?
>
>>>> Control Panel
>>>>
>>>> System and Security
>>>>
>>>> System
>>>>
>>>> Click to open System.
>>>>
>>>> In the left pane, click Advanced system settings. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
>>>>
>>>> On the Advanced tab, under Performance, click Settings.
>>>>
>>>> Click the Advanced tab, and then, under Virtual memory, click Change.
>>>>
>>>> Clear the Automatically manage paging file size for all drives check box.
>>>>
>>>> Under Drive [Volume Label], click the drive that contains the paging file you want to change.
>>>>
>>>> Click Custom size, type a new size in megabytes in the Initial size (MB) or Maximum size (MB) box, click Set, and then click OK.
>
> This should make a registry change, that hopefully prevents Windows from
> "Automatically manage paging file size for all drives"
>
> "Automatically" typically makes the page file the same as the available ram.
>
> __Jim
>
> On 3/28/2012 12:57 PM, Dmitri Chebotarov wrote:
>>>> Hi, All
>>>>
>>>> I'm using Windows 7 Ent image with VCL/xCAT on a blade with 48GB of memory.
>>>> Before capturing the image I set page file to 2GB, once capture is done, the new reservation ends up with 48GB page file.
>>>> This leave little space left to install new applications.
>>>>
>>>> I found that Windows.pm calls disable_pagefile() on line 474 during image capture.
>>>> Would it be OK to disable this function?
>>>>
>>>> Thank you.
>>>>
>>>> --
>>>> Dmitri Chebotarov
>>>> Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging
>>>> 223 Aquia Building, Ffx, MSN: 1B5
>>>> Phone: (703) 993-6175
>>>> Fax: (703) 993-3404
>
>
>
>
>
>
>
- --
Jim O'Dell
Network Analyst
California State University Fullerton
Email: jodell@fullerton.edu
Phone: (657) 278-2256
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9zjbYACgkQREVHAOnXPYToMgCcC/yBmtvnDFIanjmwyZa7dkE8
dlsAnAvD5YBf6clZCB6fy3RzH+K9JNeS
=+/V1
-----END PGP SIGNATURE-----
Re: Wndows pagefile.sys settings
Posted by Dmitri Chebotarov <dc...@gmu.edu>.
James
Yes, I have changed the setting for pagefile. But it resets to default after I capture image and make reservation.
I've also commented disable_pagefile() in Windows.pm (and restarted vcld), but it doesn't help. New image still has default pagefile setting.
Is there another place in the code where I could stop VCL from changing pagefile settings?
Thanks.
--
Dmitri Chebotarov
Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175
Fax: (703) 993-3404
On Wednesday, March 28, 2012 at 16:19 , James O'Dell wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Have you tried disabling/reducing the page file before making the image?
>
> > Control Panel
> >
> > System and Security
> >
> > System
> >
> > Click to open System.
> >
> > In the left pane, click Advanced system settings. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
> >
> > On the Advanced tab, under Performance, click Settings.
> >
> > Click the Advanced tab, and then, under Virtual memory, click Change.
> >
> > Clear the Automatically manage paging file size for all drives check box.
> >
> > Under Drive [Volume Label], click the drive that contains the paging file you want to change.
> >
> > Click Custom size, type a new size in megabytes in the Initial size (MB) or Maximum size (MB) box, click Set, and then click OK.
>
> This should make a registry change, that hopefully prevents Windows from
> "Automatically manage paging file size for all drives"
>
> "Automatically" typically makes the page file the same as the available ram.
>
> __Jim
>
> On 3/28/2012 12:57 PM, Dmitri Chebotarov wrote:
> > Hi, All
> >
> > I'm using Windows 7 Ent image with VCL/xCAT on a blade with 48GB of memory.
> > Before capturing the image I set page file to 2GB, once capture is done, the new reservation ends up with 48GB page file.
> > This leave little space left to install new applications.
> >
> > I found that Windows.pm calls disable_pagefile() on line 474 during image capture.
> > Would it be OK to disable this function?
> >
> > Thank you.
> >
> > --
> > Dmitri Chebotarov
> > Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging
> > 223 Aquia Building, Ffx, MSN: 1B5
> > Phone: (703) 993-6175
> > Fax: (703) 993-3404
>
>
>
>
> - --
> Jim O'Dell
> Network Analyst
> California State University Fullerton
> Email: jodell@fullerton.edu (mailto:jodell@fullerton.edu)
> Phone: (657) 278-2256
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk9zclwACgkQREVHAOnXPYSCYgCglS3umUQONsWlNm604P/Z20Yk
> ag0An2ul+tgpwh8ONuQZQp/YaoXxmQ/i
> =BZaZ
> -----END PGP SIGNATURE-----
Re: Wndows pagefile.sys settings
Posted by James O'Dell <jo...@fullerton.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Have you tried disabling/reducing the page file before making the image?
> Control Panel
>
> System and Security
>
> System
>
> Click to open System.
>
> In the left pane, click Advanced system settings. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
>
> On the Advanced tab, under Performance, click Settings.
>
> Click the Advanced tab, and then, under Virtual memory, click Change.
>
> Clear the Automatically manage paging file size for all drives check box.
>
> Under Drive [Volume Label], click the drive that contains the paging file you want to change.
>
> Click Custom size, type a new size in megabytes in the Initial size (MB) or Maximum size (MB) box, click Set, and then click OK.
This should make a registry change, that hopefully prevents Windows from
"Automatically manage paging file size for all drives"
"Automatically" typically makes the page file the same as the available ram.
__Jim
On 3/28/2012 12:57 PM, Dmitri Chebotarov wrote:
> Hi, All
>
> I'm using Windows 7 Ent image with VCL/xCAT on a blade with 48GB of memory.
> Before capturing the image I set page file to 2GB, once capture is done, the new reservation ends up with 48GB page file.
> This leave little space left to install new applications.
>
> I found that Windows.pm calls disable_pagefile() on line 474 during image capture.
> Would it be OK to disable this function?
>
> Thank you.
>
> --
> Dmitri Chebotarov
> Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging
> 223 Aquia Building, Ffx, MSN: 1B5
> Phone: (703) 993-6175
> Fax: (703) 993-3404
>
>
- --
Jim O'Dell
Network Analyst
California State University Fullerton
Email: jodell@fullerton.edu
Phone: (657) 278-2256
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9zclwACgkQREVHAOnXPYSCYgCglS3umUQONsWlNm604P/Z20Yk
ag0An2ul+tgpwh8ONuQZQp/YaoXxmQ/i
=BZaZ
-----END PGP SIGNATURE-----