From mboxrd@z Thu Jan 1 00:00:00 1970 References: <854aec2d-861e-f17e-e57c-d86e9f5e7a90@xenomai.org> <14040d9b-3b4b-9677-05d0-24773e309310@xenomai.org> <20bffd5c-9f11-3bb2-236a-11764a129059@xenomai.org> <49cd0e96-fde0-4d7a-17bc-5ae18d10baac@xenomai.org> <1dd59300-7763-e9f3-cda8-2f2548e9e96c@xenomai.org> From: Philippe Gerum Message-ID: <823c2008-4b4b-9b0a-a84c-ee60b4304506@xenomai.org> Date: Tue, 27 Mar 2018 15:05:19 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] Simple application for invoking rtdm driver List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pintu Kumar Cc: "Xenomai@xenomai.org" On 03/27/2018 02:09 PM, Pintu Kumar wrote: > Hi, > > Thank you so much for all your explanation. > But, before I dig deeper, I have some simple questions which is troubling me. > > 1) In Idle case, we see latency improvement (~2-3 micro-seconds on > average) using Xenomai native task application, compared to normal > posix thread application (with 100 us sleep). > Then why not it is seen with RTDM driver and its application ? > > 2) In the idle case itself, we have seen read/write latency > improvement using RTNET (loopback) and simple UDP client/server > application using Xenomai posix skin > Then why not same is visible with RTDM driver? > All answers have already been given, or can be inferred fairly easy from what was said earlier. On a general note, it is safer not to compare apples and oranges when it comes to benchmarking: two different codes usually do things differently, so you may simply not be measuring the same work load. If you really want to figure out what happens, you may need to dive into the implementation. > 3) How to choose, when to develop a Xenomai native application, and > when to simply convert using posix skin ? > Choose portability with POSIX. The so-called "native" - now Alchemy API - was defined 14 years ago for a single purpose: make greybards coming from the traditional RTOS world comfortable with API semantics close to what they were used to with VxWorks, VRTX, pSOS and friends. Alchemy exists in Xenomai 3 only for the purpose of making the life of people migrating from 2.x easier. -- Philippe.