Skip to contentSkip to conversation

/proc/xenomai/sched

Xenomai Steve Hartmann 3 participants 5 messages Oct 21, 2014 – Oct 24, 2014

lore
Share & tools
lore
#0 lore raw
Quoted 15 lines · Steve Hartmann

Can someone please point me in the direction of a writeup of how to interpret /proc/xenomai/sched? I have searched around, but cannot find what I am looking for. Specifically, I want to know what it means when I see a "D" in the "STAT" column, and what the number in the "TIMEOUT" column means.

I did find one post that said the "D" means "Delayed (without any other wait condition).". Maybe I'm just dense, but I'm not positive on what that means. I think it might mean that the task should be running, but it is delayed because it could not be scheduled because of some reason perhaps another higher priority task is bumping it? Or am I way off base?

Also, in xenomai 2.4.7, the TIMEOUT column is expressed in a number with no units; what is the unit?

Quoted 7 lines

Thanks,

Steven
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

So one other observation Š the tasks which seem to very often show a "D" status, are periodic tasks. Perhaps this is just a state where it is simply waiting on nothing other than time to pass before it gets scheduled to run?

Thanks again,

Steven

#1 lore raw
Quoted 10 lines · Steve Hartmann
Quoted 6 lines · Steve Hartmann

Can someone please point me in the direction of a writeup of how to interpret /proc/xenomai/sched? I have searched around, but cannot find what I am looking for. Specifically, I want to know what it means when I see a "D" in the "STAT" column, and what the number in the "TIMEOUT" column means.

Quoted 8 lines
Quoted 8 lines

I did find one post that said the "D" means "Delayed (without any other wait condition).". Maybe I'm just dense, but I'm not positive on what that means. I think it might mean that the task should be running, but it is delayed because it could not be scheduled because of some reason perhaps another higher priority task is bumping it? Or am I way off base?

Also, in xenomai 2.4.7, the TIMEOUT column is expressed in a number with no units; what is the unit?

Probably nanoseconds. Would need to check the sources to see that.

Quoted 6 lines

So one other observation Š the tasks which seem to very often show a "D" status, are periodic tasks. Perhaps this is just a state where it is simply waiting on nothing other than time to pass before it gets scheduled to run?

"Delayed" means that the task voluntarily suspended and waiting for a timer to wake it up. And yes, rt_task_wait_period/pthread_wait_period_np do that, as do rt_task_sleep/nanosleep.

Signature · 1 line
					    Gilles.
#2 lore raw
Quoted 17 lines · Gilles Chanteperdrix
Quoted 16 lines · Steve Hartmann
Quoted 3 lines · Steve Hartmann

Can someone please point me in the direction of a writeup of how to interpret /proc/xenomai/sched? I have searched around, but cannot find what I am looking for. Specifically, I want to know what it means

when I

Quoted 8 lines

see a "D" in the "STAT" column, and what the number in the "TIMEOUT" column means.

I did find one post that said the "D" means "Delayed (without any other wait condition).". Maybe I'm just dense, but I'm not positive on what that means. I think it might mean that the task should be running, but it is delayed because it could not be scheduled because of some reason perhaps another higher priority task is bumping it? Or am I way off

Quoted 7 lines
Quoted 5 lines

base?

Quoted 2 lines

Also, in xenomai 2.4.7, the TIMEOUT column is expressed in a number

with

Quoted 1 line

no units; what is the unit?

Probably nanoseconds. Would need to check the sources to see that.

Thanks of the reply Gilles! Do you know what it is that the "TIMEOUT" columns means? I.E. What is it measuring?

#3 lore raw
Quoted 24 lines · Steve Hartmann
Quoted 19 lines · Gilles Chanteperdrix
Quoted 18 lines · Steve Hartmann
Quoted 3 lines · Steve Hartmann

Can someone please point me in the direction of a writeup of how to interpret /proc/xenomai/sched? I have searched around, but cannot find what I am looking for. Specifically, I want to know what it means

when I

Quoted 8 lines

see a "D" in the "STAT" column, and what the number in the "TIMEOUT" column means.

I did find one post that said the "D" means "Delayed (without any other wait condition).". Maybe I'm just dense, but I'm not positive on what that means. I think it might mean that the task should be running, but it is delayed because it could not be scheduled because of some reason perhaps another higher priority task is bumping it? Or am I way off

base?

Quoted 1 line
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Also, in xenomai 2.4.7, the TIMEOUT column is expressed in a number

with

Quoted 1 line

no units; what is the unit?

Probably nanoseconds. Would need to check the sources to see that.

Thanks of the reply Gilles! Do you know what it is that the "TIMEOUT" columns means? I.E. What is it measuring?

The time remaining before the timer expiration date.

Signature · 1 line
                                                                Gilles.
#4 lore raw

[Xenomai] [Analogy] - new feature: software calibration NI-M

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

All,

I have just delivered a software calibration feature for the NI M family of acquisition cards

	"pci-6220", "pci-6221", "pci-6221_37pin", "pci-6224", "pci-6225",
	"pci-6229", "pci-6250", "pci-6251", "pci-6254", "pci-6259", "pcie-6259",
	"pci-6280", "pci-6281", "pxi-6281", "pci-6284", "pci-6289"

Usage of the calibration tool requires:

1. to use the analogy_calibrate utility to generate a calibration file for your board.

	$ analogy_calibrate --device /dev/analogy0 --output /path/calib.bin

2. use the library functions to parse and apply the calibration file to samples (read from hardware) or values (to be written to hardware)

An example on usage is in the utility function "insn_read" now accepting a calibration file as input.

This feature will be available for xenomai-3 only and there are no plans to backport it to xenomai-2.

For the time being you can find the relevant commits in the tree/branch below
http://git.xenomai.org/xenomai-jro.git/log/?h=for-xeno3

jro

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJUSlhLAAoJECDcy2IJkagRlGoH/1p2STVGfToNKKzBFlFJ19PH 1LzfEFDlsJ+QvKmeOXXz8h24KoNTiIfwx9nvXeYc8569/UwxJqqypBrVR3uXPb4f eqNb0SRtQJVRjabnKbl//6KbDmlQmHhkJHzYejoJM1HIRnfu3UF45TgAWQUJOxN4 ebU/sWOE0mABhWL3CBw+fOeudmKOWEKtWO+J5fjIkUD2iz0GL6PsXMbdeAT19dVJ naLOXgAQVhJpA26aYh1My0utnHfY05FgPKtvf0VSZMK622R2SB9lxKoaukESBWGF E9Nt2r4LYdbPVH3qQpa2GM9f7EgZ/cepaRLzls/Sdid67b3l0M/nz+XJzdDUhY8= =+uHT
-----END PGP SIGNATURE-----