* OSF1 Swapping
@ 1994-01-06 13:42 Dr J Gordon
1994-01-06 14:13 ` Jim Gettys
0 siblings, 1 reply; 2+ messages in thread
From: Dr J Gordon @ 1994-01-06 13:42 UTC (permalink / raw)
We are running a number of Dec3000/400 boxes with OSF1 v1.3a.
One of them acts as an interactive service for a number of users.
This box has 64MB of memory and 192MB of swap space. swapon -s shows me
Total swap allocation:
Allocated space: 24576 pages (192MB)
Reserved space: 17928 pages ( 72%)
Available space: 6648 pages ( 27%)
Swap partition /dev/rz0b:
Allocated space: 24576 pages (192MB)
In-use space: 10081 pages ( 41%)
Free space: 14495 pages ( 58%)
Sometimes the Reserved space gets close to 100% although the In-Use Space
may still be only 50%. I assume that 'immediate swap space allocation'
is to blame. Can anyone explain the repercussions of changing to 'deferred
allocation'? The documentation suggests that some processes may get terminated.
Which ones? I don't like the idea of a different user getting hit without
knowing why.
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: OSF1 Swapping
1994-01-06 13:42 OSF1 Swapping Dr J Gordon
@ 1994-01-06 14:13 ` Jim Gettys
0 siblings, 0 replies; 2+ messages in thread
From: Jim Gettys @ 1994-01-06 14:13 UTC (permalink / raw)
Immediate swap space allocation means that the system allocates
swap space on disk at the time the process allocates more VM;
if there are any problems, that process gets notified,
and possibly terminated (by default). This also means that the
total VM of all processes cannot exceed the available swap space.
"Lazy" or "deferred" allocation means that swap space is allocated
at the time the system actually needs to use more main memory for
some process (i.e. decides it has to page something out). This
means that the total VM of all processes can equal the sum of
all available swap space + main memory. This results in less disk
required to support the processes; you only need the amount of disk
space that is required to hold the VM being paged out.
The problem with "deferred" allocation is that at the time of allocation,
you don't know what process to penalize; the system must get memory
from somewhere (or would deadlock), so has to choose some process to
kill; and it isn't as smart as a person might be about what it chooses :-).
So lazy or deferred allocation is most suitable on single user systems
where you are the only person that would be affected; on a multiuser system
it is pretty unfriendly to have to terminate someone else's process for
reasons outside of their control. And on production systems where you
want to guarantee that once a process starts, it will continue indefinately,
you'd better be using immediate allocation. This is why we ship our OSF
with immediate allocation by default.
- Jim
--
Digital Equipment Corporation
Cambridge Research Laboratory
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-01-06 14:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-01-06 13:42 OSF1 Swapping Dr J Gordon
1994-01-06 14:13 ` Jim Gettys
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox