Hi Roland,

On Tue, 07 Jul 2009 21:14:59 -0700
Roland Dreier <[email protected]> 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.

  You're right here that all alignd buffers could be allocated with mmap().
As I didn't want to be too radical, I only changed the QP buffers as those
are the most offending consumers of aligned memory.

  If everyone agrees on dropping posix_memalign() for good (which I think
would be a good thing), then I'll respin those 2 patches.

  Sebastien.

> 
> 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?
> 
>  - R.
> 
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to