Networking Forums

Networking Forums > Computer Networking > Linux Networking > RH Linux 9 suspends application program execution for long periods

Reply
Thread Tools Display Modes

RH Linux 9 suspends application program execution for long periods

 
 
Geoff Hungerford
Guest
Posts: n/a

 
      11-07-2003, 05:34 PM
Is this a known problem with Redhat Linux 9? Is it network related?

Currently I'm using Redhat Linux 9 as the RTOS for an embedded
application.

From within my code I measure very accurately the period of time my
application is not running when it should be. In other words I measure
the time periods Linux suspends my application in favor of OS
activities.

My application is run with nice set to -10, everything else in the
process listing has a nice value of 0, I am the only user logged in
and the only user application running. In addition, my code has no
interrupts, is single threaded and runs its tasks from a polling loop.
The polling loop has a call to nanosleep(duration of 100 mSec).
nanosleep is similar to sleep and usleep, so the loop is executed 10
times per second, ... or so I expected.

While the tasks in my polling loop are extremely fast, Linux is still
willing to suspend them to perform tasks of its own. My code can run
for hours, even days, and the maximum time that Linux suspends my app
at any point is 30 mSec or so. However, at certain times, when certain
XP boxes are on the network, Linux gets distracted with something (I
don't know what), probably network related, and is willing to ditch my
application and go away for 13 seconds or more. Unfortunately, this
dropout is unacceptable for my application which must run on a typical
network.

I've tried installing Linux with only a minimum number of packages,
ftp, Gnome, X-Window, not much else; it still behaves the same way.

/***********************************
* Has anyone else observed this?
**********************************/

Do I need a custom RTOS version of Linux or perhaps the Enterprise
version?

many TIA.

- Geoff

(E-Mail Removed)
Experient Corp., www.experient.com
Denver, CO
 
Reply With Quote
 
 
 
 
Bill Marcum
Guest
Posts: n/a

 
      11-14-2003, 01:14 AM
On 7 Nov 2003 10:34:10 -0800, Geoff Hungerford
<(E-Mail Removed)> wrote:
> Is this a known problem with Redhat Linux 9? Is it network related?
>
> Currently I'm using Redhat Linux 9 as the RTOS for an embedded
> application.
>

Linux is not a RTOS, unless you use a RTLinux kernel. Look for the
RTLinux-HOWTO in /usr/share/doc/HOWTO or at tldp.org.



--
You can go anywhere you want if you look serious and carry a clipboard.
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change ip address in user application program? J.H.Kim Linux Networking 0 02-19-2010 12:03 PM
execution not as expected mangesh@interinfosystems.com Linux Networking 0 03-13-2006 04:52 AM
Boingo-like program for Linux? Cowboy Wireless Internet 2 03-26-2005 06:48 AM
linux robust?can build application layer firewall on linux? happy Linux Networking 9 09-19-2004 06:54 PM
Problem related public key based authentication and program execution Henrik J Linux Networking 0 06-25-2004 07:39 AM



1 2 3 4 5 6 7 8 9 10 11