HighDots.NET Computer Hardware Forums  

Optimum page file size for 1 GB?

PC Storage Devices Hard drives & other PC storage devices discussions (comp.sys.ibm.pc.hardware.storage)


Discuss Optimum page file size for 1 GB? in the PC Storage Devices forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old   
Arno Wagner
 
Posts: n/a

Default Re: Optimum page file size for 1 GB? - 03-21-2007 , 09:35 PM






Previously Alexander Grigoriev <alegr (AT) earthlink (DOT) net> wrote:
Quote:
Then it's like you don't have a swapfile at all.
Windows is using different physical to pagefile mapping. First, it doesn't
allow overcommit, unlike *ix OSs. All committed pageable RAM pages map to
pagefile pages. As soon as a page needs to be swapped out, it's written to
PF. Then the RAM page becomes free to read another page.
Ok, that is plain stupid. They should have read some introductory
text on OS memory management! If MS really does not know ho to do this
properly and implemented it this way, then your are correct, of course.

Quote:
Bottom line, total virtual memory size is NOT RAM+PF. It's max(RAM, PF).
So in Windows, you cannot use more memory than you have physically
available? Unbelivable! That was the reason pageing was invented in the
first place!

Well, I usually only run single taks in XP (games), so I will probably
not be too much affected. Nut I now understand why a webbrowser run in
paralell can lead to memory exhaustion. Why does MS always have to
ignore technology prooven over decades and do their own inferiour and
botched thing? Does nobody there study first what already exists?
Extremely incompetent or extremely arrogant. Maybe both.

Arno




Quote:
"Arno Wagner" <me (AT) privacy (DOT) net> wrote in message
news:56d9umF28gvnpU2 (AT) mid (DOT) individual.net...
consensus!

Hehe. Here is one rule of thumb that I use: Swap should be the same size
as the main memory, but not larger than 256MB, since it then starts to
take forever to actually use it.

My Linux currently runns swappless without issue. For XP, I think
I have 250MB static size.

Arno



Reply With Quote
  #12  
Old   
timeOday
 
Posts: n/a

Default Re: Optimum page file size for 1 GB? - 03-21-2007 , 09:45 PM






Arno Wagner wrote:
Quote:
Previously Terry Pinnell <terrypinDELETE (AT) thesedial (DOT) pipex.com> wrote:
Arno Wagner <me (AT) privacy (DOT) net> wrote:

Previously Bob Willard <BobwBSGS (AT) trashthis (DOT) comcast.net> wrote:
Terry Pinnell wrote:
I just upgraded my Athlon 1800 512 MB to 1 GB. Is there any general
consensus on the 'best' setting I should use for page file please? I
recall a few years ago much debate/controversy over this, but wonder
if a consensus has now emerged? My CPU is now slow by today's
standards (runs at 1533 MHz), so I naturally want to get the most out
of this extra RAM.

I think the consensus is, for almost all XP desktop PCs, to let the OS
control the size dynamically.
Not at all. Good performance requires a static size. No control
by the OS then.

Arno

Thanks both. Hmm, so I suspect things haven't changed then - still no
consensus!

Hehe. Here is one rule of thumb that I use: Swap should be the same size
as the main memory, but not larger than 256MB, since it then starts to
take forever to actually use it.

My Linux currently runns swappless without issue. For XP, I think
I have 250MB static size.

Arno
I've run without swap space on Linux for years now. I think swap is an
idea whose time has passed.


Reply With Quote
  #13  
Old   
Aidan Karley
 
Posts: n/a

Default Re: Optimum page file size for 1 GB? - 03-22-2007 , 07:46 AM



In article <56e8bdF28hg9dU1 (AT) mid (DOT) individual.net>, Arno Wagner wrote:
Quote:
Bottom line, total virtual memory size is NOT RAM+PF. It's max(RAM, PF).

So in Windows, you cannot use more memory than you have physically
available? Unbelivable! That was the reason pageing was invented in the
first place!

I'm not being a fan of Mr Gates, but I have to disagree. Say you have
a 128MB memory machine (more than adequate for normal purposes) and a 256MB
swap file ... you have 256 MB of memory available to processes and OS. Not
384MB as you might expect.

Quote:
Why does MS always have to
ignore technology prooven over decades and do their own inferiour and
botched thing? Does nobody there study first what already exists?
Extremely incompetent or extremely arrogant. Maybe both.

Probably their patent lawyers have a special killing pen for any
programmers who might be infected with prior art. Sorry, "infested", not
"infected". Well, actually, both.
Maybe that would explain the high hiring rates of programmers - once
a programmer has been exposed to other programmer's work, there's the
possibility of a patent violation and the programmer can't be used again.
Single-shot disposable programmers. Now there's an idea.
--
Aidan Karley
Aberdeen, Scotland
Written at Thu, 22 Mar 2007 08:44 GMT, but posted later.



Reply With Quote
  #14  
Old   
Aidan Karley
 
Posts: n/a

Default Re: Optimum page file size for 1 GB? - 03-22-2007 , 07:46 AM



In article <tZ6dnenvX-0icJzbnZ2dnUVZ_ozinZ2d (AT) comcast (DOT) com>, TimeOday wrote:
Quote:
I've run without swap space on Linux for years now. I think swap is an
idea whose time has passed.

Swap is a place for dumping the contents of memory to when there's
a serious application fault, without fear of overwriting work by any other
process. As far as that goes, the idea is very much alive and well. In
fact, making swap a distinct partition is a very good idea. (It can also
be used for dumping core to in the event of a kernel fault.)
Have you checked that your kernel isn't creating a swap *file*
without you noticing - the Linux virtual memory manager has the ability to
dynamically add swap as either partitions *or* as files in an existing
filesystem. I recall that this used to be the case in the 1.x series of
kernels, but I've not bothered learning the ins and outs in 2.x series.

--
Aidan Karley
Aberdeen, Scotland
Written at Thu, 22 Mar 2007 08:55 GMT, but posted later.



Reply With Quote
  #15  
Old   
chrisv
 
Posts: n/a

Default Re: Optimum page file size for 1 GB? - 03-22-2007 , 08:53 AM



Michael Cecil wrote:

Quote:
You need at least as much pagefile as you have RAM.
Wrong.



Reply With Quote
  #16  
Old   
Folkert Rienstra
 
Posts: n/a

Default Re: Optimum page file size for 1 GB? - 03-22-2007 , 10:16 AM



"Arno Wagner" <me (AT) privacy (DOT) net> wrote

Quote:
Previously Alexander Grigoriev <alegr (AT) earthlink (DOT) net> wrote:
Then it's like you don't have a swapfile at all.
Windows is using different physical to pagefile mapping. First, it doesn't
allow overcommit, unlike *ix OSs. All committed pageable RAM pages map to
pagefile pages. As soon as a page needs to be swapped out, it's written to
PF. Then the RAM page becomes free to read another page.

Ok, that is plain stupid. They should have read some introductory
text on OS memory management!

If MS really does not know ho to do this
properly and implemented it this way, then your are correct, of course.
And you obviously have been talking from your arse again, as usual.

Quote:
Bottom line, total virtual memory size is NOT RAM+PF. It's max(RAM, PF).

So in Windows, you cannot use more memory than you have physically available?
Brainfarct again, babblebot? The howmaniest this week?

Quote:
Unbelivable! That was the reason pageing was invented in the first place!

Well, I usually only run single taks in XP (games), so I will probably
not be too much affected. Nut I now understand why a webbrowser run in
paralell can lead to memory exhaustion. Why does MS always have to
ignore technology prooven over decades and do their own inferiour and
botched thing? Does nobody there study first what already exists?

Extremely incompetent or extremely arrogant.
Like yourself, babblebot? No wonder that you don't work there.

Quote:
Maybe both.

Arno




"Arno Wagner" <me (AT) privacy (DOT) net> wrote in message
news:56d9umF28gvnpU2 (AT) mid (DOT) individual.net...
consensus!

Hehe. Here is one rule of thumb that I use: Swap should be the same size
as the main memory, but not larger than 256MB, since it then starts to
take forever to actually use it.

My Linux currently runns swappless without issue. For XP, I think
I have 250MB static size.

Arno

Reply With Quote
  #17  
Old   
Arno Wagner
 
Posts: n/a

Default Re: Optimum page file size for 1 GB? - 03-22-2007 , 11:15 AM



Previously Aidan Karley <name1_name2 (AT) email (DOT) provider.invalid> wrote:
Quote:
In article <tZ6dnenvX-0icJzbnZ2dnUVZ_ozinZ2d (AT) comcast (DOT) com>, TimeOday wrote:
I've run without swap space on Linux for years now. I think swap is an
idea whose time has passed.

Swap is a place for dumping the contents of memory to when there's
a serious application fault, without fear of overwriting work by any other
process.
Under UNIX the kernel dumps to file. Swap is not unsed for that.
No idea why Windows is incapable of producing a dump-file (i you
are right that it is).

Quote:
As far as that goes, the idea is very much alive and well. In
fact, making swap a distinct partition is a very good idea. (It can also
be used for dumping core to in the event of a kernel fault.)
Have you checked that your kernel isn't creating a swap *file*
without you noticing - the Linux virtual memory manager has the ability to
dynamically add swap as either partitions *or* as files in an existing
filesystem.
But id does not do so it unless you tell it to. And at leats in
Debian nobody has scripted in some hidden ''magic''. Most likely
users would be quite offended if somebody did.

Quote:
I recall that this used to be the case in the 1.x series of
kernels, but I've not bothered learning the ins and outs in 2.x series.
The kernel never did this. It may have activates swap automatically
if started with the right options, but it never created swap space
on its own.

Arno



Reply With Quote
  #18  
Old   
Alexander Grigoriev
 
Posts: n/a

Default Re: Optimum page file size for 1 GB? - 03-22-2007 , 02:02 PM



What would you say of an OS that does randomly kill a process when it needs
to get a VM page when a previous allocation already reported as succeeded?
This is what *ix OSs do in case of overcommit. They allocate virtual memory
vithout caring if there is enough pagefile to support it. This is done to
make fork() succeed. For a forked process pair, all pages become shared and
marked as copy on write. They don't get separate pages in PF alocated yet.
Thus, amount of committed memory may exceed amount of available VM. When
there is no need to actually use PF (no copy on write happened yet), it's
OK. When COW happens, PF page gets allocated. If it was impossible to
allocate PF page, the OS just kills some process. Talk to me about
introductory text on good design.

Regarding Windows, I said max(RAM, PF), not min(RAM, PF).

"Arno Wagner" <me (AT) privacy (DOT) net> wrote

Quote:
Ok, that is plain stupid. They should have read some introductory
text on OS memory management! If MS really does not know ho to do this
properly and implemented it this way, then your are correct, of course.

Bottom line, total virtual memory size is NOT RAM+PF. It's max(RAM, PF).

So in Windows, you cannot use more memory than you have physically
available? Unbelivable! That was the reason pageing was invented in the
first place!

Well, I usually only run single taks in XP (games), so I will probably
not be too much affected. Nut I now understand why a webbrowser run in
paralell can lead to memory exhaustion. Why does MS always have to
ignore technology prooven over decades and do their own inferiour and
botched thing? Does nobody there study first what already exists?
Extremely incompetent or extremely arrogant. Maybe both.

Arno




"Arno Wagner" <me (AT) privacy (DOT) net> wrote in message
news:56d9umF28gvnpU2 (AT) mid (DOT) individual.net...
consensus!

Hehe. Here is one rule of thumb that I use: Swap should be the same size
as the main memory, but not larger than 256MB, since it then starts to
take forever to actually use it.

My Linux currently runns swappless without issue. For XP, I think
I have 250MB static size.

Arno





Reply With Quote
  #19  
Old   
Alexander Grigoriev
 
Posts: n/a

Default Re: Optimum page file size for 1 GB? - 03-22-2007 , 02:09 PM



When kernel bugcheck occurs, it's not a good idea to go to filesystem and
create a file. After all, your filesystem driver may be screwed all over by
a faulty driver that caused the crash. If you call it, it might as well say
goodbye to the whole partition.

In Windows, crash dump is written by a special part of the disk driver,
which is normally not even mapped to kernel space, to avoid its corruption.
Position to where to write the dump is known beforehand, during pagefile
initialization. When crash dump starts, bugcheck handler maps the dump
writer which then does the job.

"Arno Wagner" <me (AT) privacy (DOT) net> wrote

Quote:
Under UNIX the kernel dumps to file. Swap is not unsed for that.
No idea why Windows is incapable of producing a dump-file (i you
are right that it is).




Reply With Quote
  #20  
Old   
timeOday
 
Posts: n/a

Default Re: Optimum page file size for 1 GB? - 03-22-2007 , 03:46 PM



Alexander Grigoriev wrote:
Quote:
When kernel bugcheck occurs, it's not a good idea to go to filesystem and
create a file. After all, your filesystem driver may be screwed all over by
a faulty driver that caused the crash. If you call it, it might as well say
goodbye to the whole partition.

In Windows, crash dump is written by a special part of the disk driver,
which is normally not even mapped to kernel space, to avoid its corruption.
Position to where to write the dump is known beforehand, during pagefile
initialization. When crash dump starts, bugcheck handler maps the dump
writer which then does the job.

Kernel dumps are certainly something I'm willing to sacrifice. I have
no use for them.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.