Solved

AIX scheduler

Posted on 2001-09-12
8
639 Views
Last Modified: 2013-12-06
Does anybody have some good information (books, docs, URLs) on the AIX scheduler. I know quite a bit about it, but some pieces are still missing.

The background: I have an app with a fixed priority that has to run every 20msec (that makes it some kind of real time ...). The app will run for not more than 2msec. If I use the 'monitor' tool that's available, sometimes I see my app using ~50% of the CPU time. That is apparently wrong. The scheduler counts ticks (and here is where I have gaps) looking at the state of the app (running, dormant etc) for every running app. It seems I get in sync with the scheduler somewhere and it sees me more often that it should ...

Any pointers?

======
Werner
0
Comment
Question by:griessh
8 Comments
 
LVL 1

Expert Comment

by:nhuanvn
ID: 6478253
If your app makes some kind of realtime, UNIX cannot
assure it. There are two variants of UNIX that can
guarantee realtime feature, the RTAI(realtime application
interface) and RTLinux(realtime Linux).
Check www.lineo.com for RTAI. You can have the link
to RTLinux through a google search.
0
 
LVL 11

Author Comment

by:griessh
ID: 6478324
nhuanvn

Thanks for the reply. I think I understand my app good enough, I am working with and on it now for 6 years. It is as close to RT as I need it, don't worry about that. My problem is to understand the AIX scheduler.

======
Werner
0
 

Expert Comment

by:_serega
ID: 6493172
just a tip:
you can examine exactly what's happening by reading
proc | user structure using kvm | /dev/kmem | procfs interface.
that structures contain information about in-kernel, in-user times, and bunch of stuff that's not available on getrusage().
i know nothing about AIX scheduler. but that what you're saying sounds strange. scheduler must release the processor resource if your app falls asleep, such behaviour you describe
reminds not sleep condition, but infinite loop. try to take a look on what routine your app stops, `ps' should show it as wchan.
on normal situation, it should be one of the 'sleepy' system calls.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 11

Author Comment

by:griessh
ID: 6493282
_serega

Thanks for your comment. I think I know how to retrieve ALL the information the kernel can give me about processes on the system. I also understand the basic funtionality of a scheduler. Knowing that it just adds 'ticks' to a counter when it 'sees' a running process I have the feeling that my process is just too much 'synced' with the scheduler. But I need a bit more info to prove that.

So the conclusion: I really need info on the AIX scheduler, preferable from somebody who knows AIX :-)

======
Werner
0
 

Expert Comment

by:_serega
ID: 6493348
so if you know so much, run objdump -d on kernel,
find out the scheduler code, and read it.
i'm shure you know what objdump is,
and how to find the code, and the your target  platform's  instruction set
0
 
LVL 11

Author Comment

by:griessh
ID: 6493552
_serega

I tried to explain to you that I HAVE the information you suggest to retrieve. My problem is how that information is created.

If you have more of those sarcastic comments like the last one I'd suggest you just keep them for yourself ...

======
Werner
0
 
LVL 11

Author Comment

by:griessh
ID: 6716038
No more feedback, I'll have to contact IBM <sigh> ...
======
Werner
0
 
LVL 6

Accepted Solution

by:
Mindphaser earned 0 total points
ID: 7076411
Points refunded and moved to PAQ

** Mindphaser - Community Support Moderator **
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question