swap vm object

SHAMANTHA KRISHNA K G shamanthkrishna23 at gmail.com
Wed Oct 7 16:49:26 UTC 2020


Hello Mark,
        Thank you very much for the heads up,may you please tell how it
differs from a default vm object.

Thanks in advance.
-Shamantha.

On Wed, 7 Oct 2020, 19:00 Mark Johnston, <markj at freebsd.org> wrote:

> On Wed, Oct 07, 2020 at 01:28:34PM +0530, SHAMANTHA KRISHNA K G wrote:
> > Hello All ,
> >
> >     What is a swap vm object in case of /proc/<pid>/map ?
>
> It represents memory that is backed by the swap device.  If the system
> is forced to reclaim memory from this object, it will first use the swap
> pager to write the pages' contents to a swap device.  Then, a subsequent
> access can recover the data by paging in from the swap device.
>
> Often such objects contain anonymous pages, such as those allocated
> using malloc().  They are also used for certain persistent objects, such
> as tmpfs or shared memory files.
>


More information about the freebsd-hackers mailing list