[Live-devel] lead to a high CPU percentage without setting the gateway ip address

Warren Young warren at etr-usa.com
Mon Apr 28 13:15:14 PDT 2014


On 4/28/2014 02:34, Cheng Lei wrote:
>
> If delete default gateway ip addrss, then run the test program
> testRTSPClient, CPU percentage is 6%, then I add the default gateway ip
> by using cmd such as "route add default gw 192.168.122.1", CPU decrease
> to 1%. If you guys know the issue, please help, thanks.

Are the streams you're setting up via RTSP multicast, by chance?  I have 
noticed that the Linux network stack seems to require a gateway to do 
multicasting correctly, even when the packets never leave the LAN.

If you absolutely cannot have a real gateway IP, try using the machine's 
own IP as the "gateway" address.  That is usually enough to placate the 
routing layer of the stack.


More information about the live-devel mailing list