discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Latency measurements with Unix-domain sockets


From: Alexander Chemeris
Subject: Re: [Discuss-gnuradio] Latency measurements with Unix-domain sockets
Date: Tue, 31 May 2011 12:54:39 +0400

On Tue, May 31, 2011 at 03:07, Marcus D. Leech <address@hidden> wrote:
> I used the following two little programs:
> <skip>
>
> And found no significant difference in peak and average latencies
> between them.
>
> The unixdomain_server takes a single command-line argument which tells
> it how many samples
>  to average over before producing a printed result.
>
> So this confirms my earlier assertion that I would be surprised to find
> a significant latency difference
>  between Unix-domain sockets and FIFOs, since the interior kernel
> mechanisms are broadly similar.
>  Basically--some chunk of memory is copied from one place to another,
> there's some housekeeping, and
>  the system-call interface is traversed a couple of times.

Let me contradict. Maximum latency is *much* better - less then 80us
instead of 3ms.

Data attached as usual.  Tests were run with 'chrt 80 ./runtest_sh'

PS I test on Core 2 Duo 1.6 GHz with all the GUI stuff running.

-- 
Regards,
Alexander Chemeris.

Attachment: data1.txt
Description: Text document

Attachment: build.sh
Description: Bourne shell script

Attachment: run_test.sh
Description: Bourne shell script

Attachment: unixdomain_client.c
Description: Text Data

Attachment: unixdomain_server.c
Description: Text Data

Attachment: data2.txt
Description: Text document

Attachment: data3.txt
Description: Text document

Attachment: data.png
Description: PNG image


reply via email to

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