About Swap space and Virtual Memory

liu bo liubolyuha at gmail.com
Wed Mar 31 06:42:58 PDT 2010


Danny, Mike,
Thank you for your reply.

>I believe the SWAP column only displays the swappable memory chunk, not
actual
>swapped memory. If you disable swap using "swapoff -a" you will see the
SWAP
>column in top still contains the same values.

In the man page of top command, the explanation of SWAP column is :
-------------------------------------------------------------------------------------------------------------------
p: SWAP  --  Swapped size (kb)
          The swapped out portion of a task's total virtual memory image.
--------------------------------------------------------------------------------------------------------------------

Anyway thank you.
Regards, Liu Bo

2010/3/31 Danny Engelbarts <d.engelbarts at gmail.com>

> On Wednesday 31 March 2010 12:03:05 zzflop wrote:
> > On Wed, Mar 31, 2010 at 04:56:04PM +0800, liu bo wrote:
> > > Hi all,
> > >
> > > Could anybody tell me whether the SWAP space of my computer is used?
> > >
> > > According to the information below,
> > >
> > >             Swap:   307192k total,        0k used
> > >
> > >             VIRT SWAP RES  SHR S %CPU %MEM    TIME+  COMMAND
> > >             693m 657m  35m 8780 S    0      2.0            0:51.46  X
> > >
> > > I don't know how to explain the two conflicted data above.
> >
> > My default top command doesn't show the SWAP field, but I
> > read the man page to see how to toggle it and I also have
> > entries in the SWAP field with the upper "0k used". I don't
> > know the reason for it, but am curious about the diff too.
>
> I believe the SWAP column only displays the swappable memory chunk, not
> actual
> swapped memory. If you disable swap using "swapoff -a" you will see the
> SWAP
> column in top still contains the same values.
>
> Regards, Danny.
>
> >
> > I rarely show anything in the upper entry except when
> > playing video files.
> >
> > Mike H.
> > _-_-_-_
>
> --
> In theorie is er geen verschil tussen theorie en praktijk.
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20100331/025fa512/attachment.html>


More information about the lfs-support mailing list