[Top][All Lists]

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

Re: [Discuss-gnuradio] PDU_to_tagged_stream consumes 100% CPU even thoug

From: Johnathan Corgan
Subject: Re: [Discuss-gnuradio] PDU_to_tagged_stream consumes 100% CPU even though it is throttled!
Date: Thu, 15 Jan 2015 08:09:13 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

On 01/15/2015 12:59 AM, Sylvain Munaut wrote:

> To me it look like all it's missing is a
> basic_block::delete_head_blocking with a timeout. Then the
> pdu_to_tagged_stream_impl::calculate_output_stream_length could just
> use that with a reasonably small timeout (like 100ms or so) so that it
> waits on a message but if none comes, it still handout control back to
> the caller from time to time (which I think is required for stop() to
> work).
> Is there anything that wouldn't work with this approach ?

A change to a blocking call with a timeout would work as a "short" term fix.

The longer term proper fix requires a scheduler change as outlined in a
that email Stephan Ludwig asked about.  It's in a long list of things
Tom and I are organizing for 3.8 scheduler work.

Johnathan Corgan, Corgan Labs
SDR/DSP Training and Consulting Services

Attachment: johnathan.vcf
Description: Vcard

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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