Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2014 22:42:43 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        FreeBSD Net <freebsd-net@freebsd.org>
Subject:   Re: Use of contiguous physical memory in cxgbe driver
Message-ID:  <20140213204243.GT24664@kib.kiev.ua>
In-Reply-To: <6154054.5G06XIekg6@ralph.baldwin.cx>
References:  <21216.22944.314697.179039@hergotha.csail.mit.edu> <201402121446.19278.jhb@freebsd.org> <CAJ-VmokDb4dkhzO6NnYrFKKV2g-bau8H47h2g=wOkvGcqYzRow@mail.gmail.com> <6154054.5G06XIekg6@ralph.baldwin.cx>

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

--5fM1MC9alg+yIaL4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Feb 13, 2014 at 03:16:54PM -0500, John Baldwin wrote:
> On Wednesday, February 12, 2014 03:36:38 PM Adrian Chadd wrote:
> > On 12 February 2014 11:46, John Baldwin <jhb@freebsd.org> wrote:
> > > Is this because UMA keeps lots of mbufs cached in your workload?  The
> > > physmem buddy allocator certainly seeks to minimize fragmentation.=20
> > > However, it can't go yank memory out of UMA caches to do so.
> >=20
> > I'll ask you on irc, but where's that happening? My read of the code
> > is that once it grabs a larger page and fragments it, it's lost.
>=20
> It seeks to use the smallest size possible however.  It is true that we d=
on't=20
> attempt to move a busy page elsewhere to free up memory (e.g. if you had =
a 2MB=20
> free chunk with one busy 4k page in the middle), but we can't really do t=
hat=20
> safely.  Given the existence of the direct map, we can't relocate a page =
and=20
> be sure that we have also relocated all possible pointers to it.

Well, this depends on the current use of the page.  We would be unable
to page-out if the statement is completely true.  We could relocate
the 'user' pages, i.e. pages belonging to active or inactive queues,
which are not hold/busy/wired.  But I agree that for the load discussed,
this is a minority and we indeed cannot relocate the content of the
unmanaged page.

--5fM1MC9alg+yIaL4
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)

iQIcBAEBAgAGBQJS/S5CAAoJEJDCuSvBvK1B4gUP/24FZG7RrtEkA8KrsHu+1zol
NPlfki66NBnQ0uNdh/KJB/9hJK0ZLQEQhK9B6Z9TkaH54msrAEP+2g8Hr6o3zqdj
gV2d6TL4suhvDH1KBkohjaCGRDAGNaPUDgkgEPy4QeJOB57Yr3MVAjR3XhYDLyAa
E8RtA1CuswA8xTIlZlaX0iZcZSbFXVqK/rGiC01X2FzsVhbhl5Pl5zcPg25xn162
ZycAZ4saWHipepoCXonk87LzKQeTB5XCZfer2nUra/ZAAjmvgpmYQq1pkLMj0WGi
GC1pSM+RhvXvVvAVrSbsS6Axhc1nfYw2I9TPiFoQ3XK8qXAO3JXoHxarEw68QzVZ
hZkRw5KTkUSkOC12MdOOJCiWIdWY7zqnhXHTVzeaTKIjSUEA+C3dmvZqMcp+EWhA
pTDCZv36wjfCZc4ytFgt+P6viMZpMBj11g2eZgAp0mD0NFbuhRxcDaZTDl593E9W
nTmDuE7uEvphH2mx3QR4GToPnCp5BBhrpo3EfPSkrkyaJjjHmtcFjOezXHlAZkJ0
rVDX8vwF6RTrEnf+CWowDPkjnpBmGzTbZJ64nMbZWNNwCY8974e7gCnOLkmZVME3
Fo5aNzmg4WescCrOZePAmi6td6drsT36Fr9UNEVzehZYPbajvMKGV7o3d/eK16Ev
SJvznEgF93vnB4hq9lTe
=Zsai
-----END PGP SIGNATURE-----

--5fM1MC9alg+yIaL4--



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