[ofa-general] Re: [PATCH 1/3] V2 - libmthca - Optimize memory allocation of QP buffers
Tziporet Koren
tziporet at dev.mellanox.co.il
Tue Jul 7 23:14:35 PDT 2009
Roland Dreier wrote:
> So I'm finally looking at applying this patch. And I wonder why you
> only do this for QP buffers -- it seems every other object allocated
> with mthca_alloc_buf(), namely CQs, SRQs and mem-free doorbell records,
> are all also page aligned, and similarly waste memory.
>
> So should we not just replace the posix_memalign() in alloc_buf with
> anonymous mmap, and end up with a simpler patch that saves even more
> memory?
>
>
BTW - we tested these patches here and they are working and indeed save
memory
I think this idea is good.
Tziporet
More information about the general
mailing list