|
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.
data1.txt
Description: Text document
build.sh
Description: Bourne shell script
run_test.sh
Description: Bourne shell script
unixdomain_client.c
Description: Text Data
unixdomain_server.c
Description: Text Data
data2.txt
Description: Text document
data3.txt
Description: Text document
data.png
Description: PNG image
[Prev in Thread] | Current Thread | [Next in Thread] |