discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: GNU Radio 3.9.3.0 Python basic block - issues with forecast and prod


From: Marcus Müller
Subject: Re: GNU Radio 3.9.3.0 Python basic block - issues with forecast and produce
Date: Tue, 25 Jan 2022 13:50:20 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0

Hi Johannes, hi Patric,

On 22.01.22 12:25, Johannes Demel wrote:

The `forecast` method expects estimates. The scheduler will call `general_work` anyways at some point, if the system is unable to fulfill your forecast requirement.

No, that is not correct; at least in the 3.8-style scheduler you can deadlock the whole flowgraph by letting the forecast method tell the scheduling algorithm that it needs more input to produce the minimum possible number of output (==1 or output_multiple) than the input could ever offer.

The mechanism is that the scheduler asks forecast what it needs to produce the largest amount of output that the output buffer can deal with, then it halves the amount until it hits the minimum number. If none of these requests yield a fulfillable input requirement, the block is permanently input-blocked.

Best regards,
Marcus



reply via email to

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