On Wed, Jan 10, 2001 at 01:34:39PM -0500, Dingrong Yi wrote:
> I need to schdule a  procedure  by a timer at every (around) 1 ms.  I
> set  the time interval of the XtAppAddTimeOut to be 1ms. But I am
> uncertain is the resolution of linux timer is such fine or not? Tijs
> suggested to modify parameter HZ of
> /usr/src/linux/include/asm-i386/param.h to 1024 for a 2ms timing
> (attached at the end). Does it  mean if modify HZ to 2048 may get a 1ms
> resolution timing? If so, what  should I do after this modification so
> that this modification may be  effective?
> 
> 
> I am booting with RTLinux-2.0. The reason why I do this high frequency
> (1000 Hz)  task in linux instead of RTLinux is because this task need to
> use lots of  graphics, big memory (60M) for object modeling, etc which are
> cubersome to do in RTLinux.


Look at rtlinux_sigaction.
But best is to decouple the object modeling from the RT component.

> 
> 
> Thanks in advance.
> 
> Dingrong Yi
> 
> 
> 
> > > Hi!
> > >
> > >   In RT-Linux Manifesto author writes:
> > >
> > >   "Standard Linux takes up to 600 microseconds to start a handler and
> can
> > >    easily be more than 20 milliseconds (20,000 microseconds) late for
> a
> > >    periodic task."
> > >
> > >   Is it possible to have 2 miliseconds ? I want to control very fast
> robot
> > > from rt-linux box.
> >
> > This works for x86 only:
> > Try using #define HZ 1024 or some other high number in
> > /usr/src/linux/include/asm-i386/param.h
> >
> > Usually it's 100 and that accounts for the (what I thought were 10) 20
> > ms.
> >
> > Note that this breaks some programs like 'top' and 'ps'
> >
> > --
> > Tijs van Bakel, <[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/

-- 
---------------------------------------------------------
Victor Yodaiken 
Finite State Machine Labs: The RTLinux Company.
 www.fsmlabs.com  www.rtlinux.com

-- [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/

Reply via email to