From: "Pohlmann, Joseph" <JOSEPH.POHLMANN () ca ! com>
To: tru64-unix-managers
Subject: DEC Unix Reserved Swap Space
Date: Thu, 21 Jun 2001 17:35:23 +0000 [thread overview]
Message-ID: <102653649622007.tru64-unix-managers.marc@archive.invalid> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="------_=_NextPart_001_01C0FA78.8D04DEA0", Size: 6624 bytes --]
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C0FA78.8D04DEA0
Content-Type: text/plain;
charset="iso-8859-1"
Hello,
I am trying to find an answer to an interesting dilemma I'm faced with:
I need to find out the amount of free and not reserved swap space, on a "per swap partition" basis. For example, if my "swapon -s" output looks like:
Swap partition /dev/rz1b (default swap):
Allocated space: 16896 pages (132MB)
In-use space: 5787 pages ( 34%)
Free space: 11109 pages ( 65%)
Swap partition /dev/rz3g:
Allocated space: 95410 pages (745MB)
In-use space: 5517 pages ( 5%)
Free space: 89893 pages ( 94%)
Total swap allocation:
Allocated space: 112306 pages (877MB)
Reserved space: 17017 pages ( 15%)
In-use space: 11304 pages ( 10%)
Available space: 95289 pages ( 84%)
Then I need to know how the reserved space (i.e. the 17017 pages) is allocated between the 2 swap spaces.
Is there any way that this can be done? I know I can use "swapctl" or "table" to get all of the information that swapon spits out, but is there any way to retrieve the amount of reserved space for each swap partition? Is it valid to assume that the reserved space is evenly spaced amongst the remaining free space in the partitions? Probably not.
For example, do I assume that, since the first partition contains 11% of the remaining free space, that it also contains 11% of the reserved space (i.e. 1872 pages), and the other partition contains the other 89% (15145 pages)?
Thanks in advance with your help and/or suggestions,
Joseph Pohlmann
Computer Associates
Software Engineer
tel: +1 513 229-2437
fax: +1 513 229-2883
Joseph.Pohlmann@ca.com <mailto:Joseph.Pohlmann@ca.com>
------_=_NextPart_001_01C0FA78.8D04DEA0
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.00.3019.2500" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2><SPAN
class=527535216-21062001>Hello,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=527535216-21062001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=527535216-21062001>I am trying to find
an answer to an interesting dilemma I'm faced with:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=527535216-21062001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=527535216-21062001>I need to find out
the amount of free and not reserved swap space, on a "per swap partition"
basis. For example, if my "swapon -s" output looks
like:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=527535216-21062001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=527535216-21062001>Swap
partition /dev/rz1b (default swap):<BR> Allocated
space: 16896 pages
(132MB)<BR> In-use
space: 5787
pages ( 34%)<BR> Free
space:
11109 pages ( 65%)<BR><BR>Swap partition /dev/rz3g:<BR>
Allocated space: 95410 pages
(745MB)<BR> In-use
space: 5517
pages ( 5%)<BR> Free
space:
89893 pages ( 94%)<BR><BR><BR>Total swap allocation:<BR>
Allocated space: 112306 pages
(877MB)<BR> Reserved
space: 17017 pages (
15%)<BR> In-use
space: 11304 pages (
10%)<BR> Available
space: 95289 pages (
84%)<BR></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=527535216-21062001><FONT
color=#000000></FONT></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=527535216-21062001><FONT
color=#000000>Then I need to know how the reserved space (i.e. the 17017
pages) is allocated between the 2 swap spaces.</FONT></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=527535216-21062001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=527535216-21062001><FONT
color=#000000>Is there any way that this can be done? I know I can use
"swapctl" or "table" to get all of the information that swapon spits out, but is
there any way to retrieve the amount of reserved space for each swap
partition? Is it valid to assume that the reserved space is evenly spaced
amongst the remaining free space in the partitions? Probably
not.</FONT></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=527535216-21062001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=527535216-21062001>For example, do I
assume that, since the first partition contains 11% of the remaining free space,
that it also contains 11% of the reserved space (i.e. 1872 pages), and the other
partition contains the other 89% (15145 pages)?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=527535216-21062001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=527535216-21062001><FONT
color=#000000>Thanks in advance with your help and/or
suggestions,</FONT></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=527535216-21062001> </SPAN></FONT></DIV>
<DIV></FONT><FONT face=Arial size=2><STRONG>Joseph
Pohlmann</STRONG></FONT></DIV></DIV>
<DIV><FONT face=Arial size=1>Computer Associates</FONT></DIV>
<DIV><FONT face=Arial size=1>Software Engineer</FONT></DIV>
<DIV><FONT face=Arial size=1>tel: +1 513 229-2437</FONT></DIV>
<DIV><FONT face=Arial size=1>fax: +1 513 229-2883</FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=1><A
href="mailto:Joseph.Pohlmann@ca.com">Joseph.Pohlmann@ca.com</A></FONT></DIV>
<DIV> </DIV></BODY></HTML>
------_=_NextPart_001_01C0FA78.8D04DEA0--
reply other threads:[~2001-06-21 17:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox