discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] why alignment feature work only when output_multi


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

On Thu, Jun 18, 2015 at 8:29 AM, Tiankun Hu <address@hidden> wrote:
Hi Tom,
Thanks your reply, I have another question, in function "min_available_space" why buffer_size/2 is best ? 

I'm not really sure. That's a question for Eric.

What happens when you change it? How does it affect performance?

Tom


 
在 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]