Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Aug 2020 12:00:09 -0700
From:      John-Mark Gurney <jmg@funkthat.com>
To:        Julian Grajkowski <julian.grajkowski@gmail.com>
Cc:        freebsd-drivers@freebsd.org
Subject:   Re: contigmalloc and contigfree issue
Message-ID:  <20200812190009.GU4213@funkthat.com>
In-Reply-To: <CAGQdsJh%2BOxU-MDmVX5rPQuRf_YAM7YjBdoOpdHszQes-spZZxA@mail.gmail.com>
References:  <CAGQdsJh%2BOxU-MDmVX5rPQuRf_YAM7YjBdoOpdHszQes-spZZxA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Julian Grajkowski wrote this message on Wed, Aug 12, 2020 at 08:24 +0200:
> Could someone please provide some explanation of discussed performance of
> contigmalloc and contigfree? Also, what could be the reason for improved
> performance of contigfree on 12.1? I still have not figured out what is the
> source of this behavior. Is performance of contigmalloc and contigfree a
> known issue? I have not found any info about this problem on the forum.

Why does the performance matter?

Drivers should be preallocating the memory like this, and either
reusing it, or using something like uma(9) to cache the allocations
if you need them to be quick.

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



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