* Q: swapon command interpretation
@ 1994-05-27 16:20 Peyton Bland
1994-05-27 17:51 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
0 siblings, 1 reply; 2+ messages in thread
From: Peyton Bland @ 1994-05-27 16:20 UTC (permalink / raw)
We are running OSF/1 V1.3A on a DEC Alpha. The "swapon -s" command gives
the following output:
Total swap allocation:
Allocated space: 76800 pages (600MB)
Reserved space: 31085 pages ( 40%)
Available space: 45715 pages ( 59%)
Swap partition /dev/rz0b:
Allocated space: 19200 pages (150MB)
In-use space: 6055 pages ( 31%)
Free space: 13145 pages ( 68%)
Swap partition /dev/rz1b:
Allocated space: 19200 pages (150MB)
In-use space: 5982 pages ( 31%)
Free space: 13218 pages ( 68%)
Swap partition /dev/rz2b:
Allocated space: 19200 pages (150MB)
In-use space: 6001 pages ( 31%)
Free space: 13199 pages ( 68%)
Swap partition /dev/rz3b:
Allocated space: 19200 pages (150MB)
In-use space: 5966 pages ( 31%)
Free space: 13234 pages ( 68%)
Apparently the terms "reserved space" and "in-use space" are different
since their values aren't quite the same and the percentages don't match;
the same goes for "available space" and "free space". We are using
immediate mode swap allocation (ie, the file /etc/swapdefault is linked to
/dev/rz0b). This comes up because when we get below 10% on "available
space", "free space" might be around 30% - quite a difference.
Also any comments about immediate versus deferred mode of allocation are
welcomed. It sounds like with immediate that swap pages are allocated and
stay allocated for the life of the process, whereas maybe deferred can be
viewed as more "dynamic". We are running out of swap; maybe the immediate
mode is too conservative. I plan to switch to deferred to see what will
happen. I have read the manual, but I'm still not real clear!
Thanks, Peyton
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Peyton Bland Digital Image Processing Lab
Dept. of Radiology University of Michigan
-----------------------------------------------------------
"We all have better moments than anybody ever knows, and so
do all the others.... We are a great mystery. Each one of
us is a secret, and on that basis we ought to treat each
other with the deepest respect."
-- Garrison Keillor
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Q: swapon command interpretation
1994-05-27 16:20 Q: swapon command interpretation Peyton Bland
@ 1994-05-27 17:51 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
0 siblings, 0 replies; 2+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1994-05-27 17:51 UTC (permalink / raw)
In article <peyton.bland-270594120415@86.12.med.umich.edu>, peyton.bland@med.umich.edu (Peyton Bland) writes:
>We are running OSF/1 V1.3A on a DEC Alpha. The "swapon -s" command gives
>the following output:
>
>Total swap allocation:
> Allocated space: 76800 pages (600MB)
> Reserved space: 31085 pages ( 40%)
> Available space: 45715 pages ( 59%)
>
OSF offers two choice for the allocation of page/swap space.
1. When virtual memory is needed space is "Reserved". This
ensures that if the application needs some it will be
be available. Nothing else is done with the space until
something needs to be paged out. Then space is allocated
for the page(s). The "Available" space represents what
is left after the allocations have been made.
This is what happens when the link /sbin/swapdefault
exists.
An affect of this is the maximum virtual memory supported
by the system is limited by the page/swap space available.
2. In the other case, space isn't reserved. The allocation of
space happens the same way as before, when it is needed.
The problem here is that a system can easily need more page
and swap space than is needed. If there is no space left,
the VM system starts killing off processes. Early versions
of OSF/1 weren't very bright about who got the axe.
I haven't exercised this function much but I think the
goal is to allow the process needing space to continue
running, rather than selecting it as the first victim.
The feature of running this way is that maximum virtual
memory allowed on the system is the sum of physical memory
and the page/swap space.
In both cases, additional disk partitions can be added as page
and swap space as the system is running. Hopefully, someday
we'll allow using regular files as page/swap space this way.
Applications can, using the mmap(2) interface, arrange to have
their page/swap files.
One "feature" of #2 is that you can run a system without any
page/swap space all. I tried this once, just to see what
happened. I started up lots of DECwindows applications to push
up the memory use (on a 96 MB system). After a while processes
started to disappear as a new processes needed memory. At some
point the X server got killed and that was the end. I think
that was a V1.2 system, though it could have been V1.3.
>Thanks, Peyton
>
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>Peyton Bland Digital Image Processing Lab
>Dept. of Radiology University of Michigan
>-----------------------------------------------------------
>"We all have better moments than anybody ever knows, and so
>do all the others.... We are a great mystery. Each one of
>us is a secret, and on that basis we ought to treat each
>other with the deepest respect."
> -- Garrison Keillor
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
--
Alan Rollow alan@nabeth.cxo.dec.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-05-27 17:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-05-27 16:20 Q: swapon command interpretation Peyton Bland
1994-05-27 17:51 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox