Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Re: Swap space utilization
  1996-01-12  5:00 Swap space utilization Peter Crawshaw
@ 1996-01-12  5:00 ` Thomas Graichen
  1996-01-18  5:00 ` Tony Chung
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Graichen @ 1996-01-12  5:00 UTC (permalink / raw)


Peter Crawshaw (peterc@ist.ca) wrote:
: Hi,
: I'm a bit puzzled by this swap space behaviour. 
: I'm getting stuff like this in /var/adm/messages

: Jan 11 15:14:51 nimble vmunix: Unable to obtain requested swap space
: Jan 11 15:14:51 nimble vmunix: fork/procdup: task_create failed. Code: 0x6
: Jan 11 15:14:53 nimble vmunix: swap space below 10 percent free

: but swapon -s says that only 40% of swap space is being used:

: Swap partition /dev/rz0b (default swap):
:     Allocated space:        16384 pages (128MB)
:     In-use space:            6664 pages ( 40%)
:     Free space:              9720 pages ( 59%)
:  
: The system has 64MB of memory and the swap partition is 128MB.
: It has OSF 3.2A and the main thing it runs is INN, whose process
: gets pretty huge.
: Can anyone tell me what's going on?
: Thanks,
: Peter Crawshaw

try moving /sbin/swapdefault out of the way (mv /sbin/swapdefault
/sbin/swapdefault.org) to switch the swap-behavior to a more
"memory-friendly" way (i think it's in the swapon manpage)

t
  _______________________________________________________||___________________
                                                   __||
  Perfection is reached, not when there is no  __||     thomas graichen
  longer anything to add, but when there   __||    freie universitaet berlin
  is no longer anything to take away   __||           fachbereich physik
                                   __||                      
  - Antoine de Saint-Exupery - __||        graichen@mail.physik.fu-berlin.de
  ___________________________||__________________graichen@FreeBSD.org_________



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Swap space utilization
@ 1996-01-12  5:00 Peter Crawshaw
  1996-01-12  5:00 ` Thomas Graichen
  1996-01-18  5:00 ` Tony Chung
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Crawshaw @ 1996-01-12  5:00 UTC (permalink / raw)


Hi,
I'm a bit puzzled by this swap space behaviour. 
I'm getting stuff like this in /var/adm/messages

Jan 11 15:14:51 nimble vmunix: Unable to obtain requested swap space
Jan 11 15:14:51 nimble vmunix: fork/procdup: task_create failed. Code: 0x6
Jan 11 15:14:53 nimble vmunix: swap space below 10 percent free

but swapon -s says that only 40% of swap space is being used:

Swap partition /dev/rz0b (default swap):
    Allocated space:        16384 pages (128MB)
    In-use space:            6664 pages ( 40%)
    Free space:              9720 pages ( 59%)
 
The system has 64MB of memory and the swap partition is 128MB.
It has OSF 3.2A and the main thing it runs is INN, whose process
gets pretty huge.
Can anyone tell me what's going on?
Thanks,
Peter Crawshaw



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Swap space utilization
  1996-01-12  5:00 Swap space utilization Peter Crawshaw
  1996-01-12  5:00 ` Thomas Graichen
@ 1996-01-18  5:00 ` Tony Chung
  1 sibling, 0 replies; 3+ messages in thread
From: Tony Chung @ 1996-01-18  5:00 UTC (permalink / raw)


In article peterc@ist.ca, peterc@ist.ca (Peter Crawshaw) writes:
>Hi,
>I'm a bit puzzled by this swap space behaviour. 
>I'm getting stuff like this in /var/adm/messages
>
>Jan 11 15:14:51 nimble vmunix: Unable to obtain requested swap space
>Jan 11 15:14:51 nimble vmunix: fork/procdup: task_create failed. Code: 0x6
>Jan 11 15:14:53 nimble vmunix: swap space below 10 percent free
>
>but swapon -s says that only 40% of swap space is being used:
>
>Swap partition /dev/rz0b (default swap):
>    Allocated space:        16384 pages (128MB)
>    In-use space:            6664 pages ( 40%)
>    Free space:              9720 pages ( 59%)
> 
>The system has 64MB of memory and the swap partition is 128MB.
>It has OSF 3.2A and the main thing it runs is INN, whose process
>gets pretty huge.
>Can anyone tell me what's going on?
>Thanks,
>Peter Crawshaw


I also got the same message: swap space below 10 percent.
So I rename /sbin/swapdefault to use defered mode.
Now the message is gone.
I was puzzled by the following:

% dd if=/dev/zero of=/dev/null bs=81920000 count=10
10+0 records in
9+0 records out

Why it fail to write one record and without error message!

And the result of running vmstat every 2 secs:

% vmstat 2
Virtual Memory Statistics: (pagesize = 8192)
  procs    memory         pages                          intr        cpu      
  r  w  u  act  free wire fault cow zero react pin pout  in  sy  cs  us  sy  id
  2 49 16  3668  10K 1177   1M  10K   1M  416 9808 1525   3  42  40   0   2  98
  2 49 16  3684  10K 1177  115   15   72    0    9    0   4  44  40   0   2  98
  2 49 16  3685  10K 1177   49    0   49    0    0    0   1  35  36   0   1  98
  3 50 16   13K   92 1179 6519   18 6472    0   20    0  40 100  44   0  75  24
  3 50 16   13K  128 1179 3651    0 3651    0    0   10  42  34  20   0 100   0
  3 50 16   13K  128 1179   50    0   50    0    0    0   1  28  15   0 100   0
  3 50 16   13K  128 1179   50    0   50    0    0    0   1  32  16   0 100   0
  2 49 16  3644  10K 1179   52    0   50    0    0    0   4  60  46   0   7  92

(You probably need to use fixed fonts to view this table).


Now I rename back to /sbin/swapdefault (immediate mode).
And got:
% dd if=/dev/zero of=/dev/null bs=10240000 count=10
Unable to obtain requested swap space
Unable to obtain requested swap space
10+0 records in
9+0 records out

And the swap space do decrease (I use a loop to run swap -s):
    Available space:        14268 pages ( 87%)
    Available space:         1922 pages ( 11%)
    Available space:         1924 pages ( 11%)
    Available space:         1923 pages ( 11%)
    Available space:         1924 pages ( 11%)
    Available space:        14271 pages ( 87%)

But vmstat display:
  2 38 16  3624  10K  949  655  208  225    0  150    0  30 840 120   3  16  82
  3 38 16  4898 9191  959 1722  142 1409    0  104    0  65 717 124   3  27  70
  2 38 16  3623  10K  960  611  189  221    0  142    0  18 648  90   3  55  42

When I request a bs of 10Mb, it actually request more than
12349 pages (about 101Mb of swap space!).

Any comments.
Thanks.

=============================
Tony Chung
chungto@ampex.com




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-01-18  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-01-12  5:00 Swap space utilization Peter Crawshaw
1996-01-12  5:00 ` Thomas Graichen
1996-01-18  5:00 ` Tony Chung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox