[rtl] a question on timing

2001-01-10 Thread Alexander Lichius


Hi 

i tried to get some timing estimations for rtlinux by writing some
simple testmodules for my special applications, using c++ in kernel
space. the tests are similar to the "jitter" example in rtai and i
think to the measurement example in rtlinux.
i run the tests on different systems under several load environments,
see the code snippet of the realtimetask for details.
i wanted to see some trends in the duration of some operations and the
scheduling accuracy by calculating the differences to the expected
period.
i found that that there is jitter on the scheduling, at least on one
system, up to 60 us (before or after the set period), dependent on the
system load. now i wonder how it could be possible to guarantee a
worst-case-scenario deadline, independent of the system load.
i assume that by increasing the system load, my period derivations get
increased to.

in the rtlinux papers, one can find rtlinux should have a maximum
interrupt response time of under 25 us. is that contradictive to what
i discovered?

could someone point me to the erros in my thoughts or give some hints
on how to get some reliable test results.

one thing i should mention: it could be possible, that my disc was
full at the time of writing the measured timestamps to a rt-fifo.
could this have some negative influence on the timings?

some timings in us, where i generate system load by:
 # top -q
 # ping -f localhost
 # while [ true ]; do ls -lR /; done

Environment  Derivation of period
 AverageMin Max
-
load, X started: 10.750 0.0 54.848
no load, X started:   1.169 0.0 21.152
load, no X:  10.508 0.0 56.544
no load, no X:1.020 0.0 13.984

the derivations are showing absolute values, meaning that the
execution of the task might be done before the whole period or later.
the timings are for the code below.

thank you very much in case of help ;)

alex

--- CODE OF REALTIME TASK ---

...

void * PeriodicComediParameter::printfThread(void *param)
{
  hrtime_t timestamp;
  PeriodicTask* me = (PeriodicTask*) (param);
  __rtl_printf("** TASK: IN NOIO THREAD, PERIOD = %lu.\n", me);
  while (1) {
if (_countn_periods) {
  me-wait();

  timestamp=gethrtime();
  data_out(timestamp, sizeof(timestamp));

  _count++;

  __rtl_printf("%lu ", _count);

  timestamp=gethrtime();
  data_out(timestamp, sizeof(timestamp)); 
  
} else {
  break;
}
  }
}

...

--- END OF CODE SNIPPET ---





CU


mailto:[EMAIL PROTECTED]


-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] Problems with RTNET (rtifconfig)

2001-01-10 Thread David Schleef

On Wed, Jan 10, 2001 at 05:38:00PM +0100, Janis wrote:
 I have problems with RTNET installation and usage.
  I use RedHat 6.2,  RT Linux 2.3 (as well as  RTAI 1.4, RTAI 1.6), 
 RTNET-0.9.0
 1. When I  install RTNET the  file  /include/modbuild/config.h is not
 found. 
 Therefore I create directory  /include/modbuild/ ,  rename and
 copy file 
   /home/rtnet-0.9.0/tmpconfig.h
 as file /home/rtnet-0.9.0/ /include/modbuild/config.h.
 I don't know is it right operation, but compilation process
 completed  successfully 
 and ping works with driver 3c59x_rt_old.

This is ok.  It's a known bug that is fixed in CVS, but there
hasn't been a bugfix release.

 2. The next problem is with rtifconfig, because device file "
 /dev/rtnet" is not found.
  It seems that device file "rtnet" is not registered. So I cannot
 configure network and work
 with RTNET in hard real time.

run 'make dev'.



dave...

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] minirtl on ide

2001-01-10 Thread Enrico Sersale


I'm trying to put minirtl on an ide disk.

I followed all the instructions found on the mail archive, but I don't
know how to create the files "linux.bat" and "linux.cfg".

Please, help me.

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/