Re: how much swap size did you take?
- From: "jun" <juntaroo2000@xxxxxxxxxxx>
- Date: Thu, 06 Apr 2006 16:20:57 GMT
Hi Anne & Lynn Wheeler
I really appreciate that.
it's hard to understand soon for me
but sure to complete.
question :
Is there a kernel parameter to set the "DUP" or "NO-DUP" for swap
management?
or function of C lang?
"Anne & Lynn Wheeler" <lynn@xxxxxxxxxx> wrote in message
news:m3hd582fq1.fsf@xxxxxxxxxxxxxxxxxxxxxx
128MB?????
virtual memory is used to contain executing processes. using
paged/swapped virtual memory it is possible to have more executing
processes than can fit into real storage. the virtual memory hardware
is used to indicate what pieces are actually in real memory (and where
they are located).
SWAP/paging space is used to contained the virtual memory that isn't
being currently used and has been moved out of real storage to make
room available for other pieces of virtual memory (either for the same
process or other processes).
the amount of SWAP/page space needed on disk is dependent on how much
total virtual memory is required by your active running processes.
this is slightly affected by whether the page replacement algorithm is
following a "DUP" or "NO-DUP" strategy (duplicate or no-duplicate
strategy).
as an undergraduate in the late 60s I did a lot of paging algorithm
stuff. I created lazy allocate ... i.e. on initial use by a process, a
virtual page was allocated in real memory ... but it wasn't required
to allocate a corresponding page on disk (at that time). It was only
when a virtual page was selected for replacement the first time ...
that a page on disk was initially alloccated.
if the total requirement by all processes for virtual memory was
containable by available real storage ... then pages would never be
selected for replacement ... and there was no requirement for
swap/page space on disk.
however, at that time, i used a "duplicate" stragegy. this was when a
virtual page was on disk ... and some process required it. a page was
allocated in real memory (potentially first removing some other
virtual page to disk), the requested virtual page read in and started
being used. however, the copy on disk was left allocated. In this
strategy, there were two allocated copies of the page ... one in real
storage and one on disk. In a scenario where there was demand for real
storage, much larger than available ... eventually all virtual pages
will have been replaced at one time or another. In this scenario,
eventually all virtual pages will have an allocated copy on disk (even
those also having a copy in real memory ... therefor the "duplicate"
reference). This "duplicate" allocation scenario requires that amount
of secondary SWAP/page allocation on disk is equal to the mazimum
amount of virtual memory that may concurrently required by all
processes that you might have running at the same time (which is
dependent on the workload that you happen to be running on the
machine).
later in the 70s, as real memory started becoming much larger ... i
started seeing some configurations where the amount of real storage
(and therefor the number of potential "duplicates") were approaching a
significant percentage of possible available SWAP/page disk
space. This was especially becoming true of those configurations with
fix-head disks and/or electronic disks being used for SWAP/page.
for these configurations i added a "no-duplicate" implementation and
some code that could dynamically switch between "duplicate" strategy
and "no-duplicate" strategy. In the "no-duplicate" strategy, whenever
a virtual page was brought in from disk, the corresponding disk space
was de-allocated (therefor there wasn't a duplicate page both in real
memory and on disk).
For a configuration with heavy SWAP/page use and using a "duplicate"
strategy ... the amount of SWAP/page space tends to be equal to the
maximum virtual memory required by all concurrently running processes.
In the "no-duplicate" strategy the amount of SWAP/page plus real
memory needs to be equal to the maximum virtual memory required by all
concurrently running processes, i.e. in a no-duplicate strategy, the
amount of SWAP/page space can be reduced by the amount of real
storage). The "no-duplicate" calculation real-storage reduciton is
modulo the amount of real-storage required for fixed kernel
requirements and file caching (which may be around 1/3rd of real
storage for some configurations).
misc. past postings mentioning dup & no-dup strategies
http://www.garlic.com/~lynn/93.html#12 managing large amounts of vm
http://www.garlic.com/~lynn/93.html#13 managing large amounts of vm
http://www.garlic.com/~lynn/94.html#9 talk to your I/O cache
http://www.garlic.com/~lynn/2000d.html#13 4341 was "Is a VAX a mainframe?"
http://www.garlic.com/~lynn/2001i.html#42 Question re: Size of Swap File
http://www.garlic.com/~lynn/2001l.html#55 mainframe question
http://www.garlic.com/~lynn/2001n.html#78 Swap partition no bigger than
http://www.garlic.com/~lynn/2002b.html#10 hollow files in unixfilesystems?
http://www.garlic.com/~lynn/2002b.html#16 hollow files in unixfilesystems?
http://www.garlic.com/~lynn/2002b.html#19 hollow files in unixfilesystems?
http://www.garlic.com/~lynn/2002b.html#20 index searchingrates?
http://www.garlic.com/~lynn/2002e.html#11 What are some impressive page
http://www.garlic.com/~lynn/2002f.html#20 Blade architecturespossible?
http://www.garlic.com/~lynn/2002f.html#26 Blade architectures
http://www.garlic.com/~lynn/2003f.html#5 Alpha performance, why?
http://www.garlic.com/~lynn/2003o.html#62 1teraflops cell processor
http://www.garlic.com/~lynn/2004g.html#17 Infiniband - practicalities forsmall clusters
http://www.garlic.com/~lynn/2004g.html#18 Infiniband - practicalities forsmall clusters
http://www.garlic.com/~lynn/2004g.html#20 Infiniband - practicalities forsmall clusters
http://www.garlic.com/~lynn/2004h.html#19 fast check for binary zeroes inmemory
http://www.garlic.com/~lynn/2004i.html#1 Hard disk architecture: are outercylinders still faster than inner cylinders?
http://www.garlic.com/~lynn/2005c.html#27 [Lit.] Buffer overrunsthereof
http://www.garlic.com/~lynn/2005m.html#28 IBM's mini computers--lack
http://www.garlic.com/~lynn/2006c.html#8 IBM 610 workstation computer
http://www.garlic.com/~lynn/2006e.html#45 using 3390 mod-9s
--
Anne & Lynn Wheeler | http://www.garlic.com/~lynn/
.
- Follow-Ups:
- Re: how much swap size did you take?
- From: Some Other Somebody Else
- Re: how much swap size did you take?
- References:
- how much swap size did you take?
- From: jun
- Re: how much swap size did you take?
- From: Anne & Lynn Wheeler
- how much swap size did you take?
- Prev by Date: Re: how much swap size did you take?
- Next by Date: Re: Fedora core 5 add remove programs broken
- Previous by thread: Re: how much swap size did you take?
- Next by thread: Re: how much swap size did you take?
- Index(es):
Relevant Pages
|
Loading