Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Sep 2001 00:52:54 -0700 (PDT)
From:      Matt Dillon <dillon@earth.backplane.com>
To:        Vladimir Dozen <vladimir-dozen@mail.ru>
Cc:        Wilko Bulte <wkb@freebie.xs4all.nl>, Alfred Perlstein <bright@mu.org>, hackers@FreeBSD.ORG
Subject:   Re: VM: dynamic swap remapping (patch)
Message-ID:  <200109300752.f8U7qsj41649@earth.backplane.com>
References:  <20010929155941.A291@eix.do-labs.spb.ru> <20010929071024.Q59854@elvis.mu.org> <20010929141349.A80876@freebie.xs4all.nl> <200109291653.f8TGrRR37689@earth.backplane.com> <20010929232953.B341@eix.do-labs.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

:  Second, application not always grows to 1G, most of the time it keeps
:  as small as 500M ;). Why should we precommit 1G for 500M data? Doing
:  multi-mmap memory management is additional pain.

    Why not?  Disk space is cheap.  For a problem like this I would simply
    throw in two 30G+ hard drives and partition them with 16G of swap each,
    giving me 32G of swap for the machine.  If you needed to do it cheaply
    you could even use IDE, though personally I would use SCSI for 
    reliability.  Depending on the amount of real memory in the machine
    you might have to tweek a few kernel options (like matching NSWAP to
    the actual number of swap devices), but basically it should just work.

    Even using file-backed memory is fairly trivial.  You don't need to
    do multi-mmap memory management or do any kernel tweaking.  Just
    reserve 1G and use a single mmap() and file per process.

					-Matt


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109300752.f8U7qsj41649>