LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-16-2011, 11:37 AM   #1
reg13
LQ Newbie
 
Registered: Jun 2011
Posts: 19

Rep: Reputation: Disabled
latency comparison for Linux and RTLinux kernels


Im testing a simple echo server, which uses epoll interface to catch events (packets receive from client).
My goal is to compare the round trip times for a simple echo server.

server: echo the received packed, runs with RT_FIFO, priority:99, cpu affinity is set to a particular CPU where no other tasks interferes.

following are the results (see the attached figure).
kernel | epoll_wait timeout | packet RTT(us)
------------------------------------------------------
RTlinux | 0 | 290
RTlinux | 1 | 338
linux (non-RT) | 0 | 290
linux (non-RT) | 1 | 340

when epoll_wait timeout=0 ( constant polling), round trip time 290(us), for both RT & Non RT kernels.

however, when epoll_wait timeout=1ms, the round trip time increases to 340us (even for RT kernel this is 338us)
RT-kernel reduces the latency, but the avarage time is still higher than the polling mode for both kernels.
Why does this happen ?, my goal is to improve the time for epoll_wait timeout=1ms.
Attached Thumbnails
Click image for larger version

Name:	fig.png
Views:	15
Size:	28.2 KB
ID:	7813  
 
Old 08-17-2011, 02:20 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
Do you still use RT_FIFO and priority 99 on non-RT kernel?
 
Old 08-18-2011, 05:00 AM   #3
reg13
LQ Newbie
 
Registered: Jun 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nini09 View Post
Do you still use RT_FIFO and priority 99 on non-RT kernel?
sorry my mistake, it should be SCHED_FIFO.
i have set CPU affinity to the server prog, it owns one core. therefore it is possible to set it to SCHED_FIFO with priority 99.
 
Old 08-18-2011, 02:17 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
What is big different between RTlinux and regular Linux using RT support?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux to RTLinux vickyqasim Linux - Kernel 4 07-14-2010 08:00 AM
difference between RTlinux ,desktop linux srichitty Linux - Distributions 2 01-16-2010 04:54 AM
RTLinux-3.2-pre2, Redhat Linux 7.3 and some problems kumarnine Linux - Software 1 09-23-2005 01:47 AM
How do i install RTlinux on redhat linux 8 gauravborkar Linux - Software 2 06-13-2004 06:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration