|
From: | Tom Rondeau |
Subject: | Re: [Discuss-gnuradio] why alignment feature work only when output_multiple not set |
Date: | Fri, 19 Jun 2015 09:09:27 -0400 |
Hi Tom,
Thanks your reply, I have another question, in function "min_available_space" why buffer_size/2 is best ?
在 2015年06月16日 21:31, Tom Rondeau 写道:
On Tue, Jun 16, 2015 at 8:57 AM, Tiankun Hu <address@hidden> wrote:
Hi,
After go through the block_executor.cc, I found alignment feature work only when output_multiple not set, why them can not work at the same time?
--
Thanks
Tiankun
Because they are competing objectives. The alignment tries to keep buffers aligned and therefore the number of items will be based on a multiple of the alignment requirement. If you need an output multiple that's different than that, which one should the scheduler choose?
Note that the buffers always begin on a page and so are inherently aligned. If your output multiple is also a multiple of the alignment for the data type, then you'll always be aligned.
Tom
-- Thanks Tiankun
[Prev in Thread] | Current Thread | [Next in Thread] |