All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Page faults
@ 2006-02-28 14:22 Jeroen Van den Keybus
  2006-02-28 15:05 ` Jan Kiszka
  2006-02-28 16:31 ` Philippe Gerum
  0 siblings, 2 replies; 17+ messages in thread
From: Jeroen Van den Keybus @ 2006-02-28 14:22 UTC (permalink / raw)
  To: xenomai@xenomai.org

[-- Attachment #1: Type: text/plain, Size: 280 bytes --]

I'm observing a considerable amount of Page Faults (5090 after an hour or
so), each one associated with a MSW increase in /proc/xenomai/stat. I'm
missing RT deadlines on those occasions and I want to fix it, so I would
like to know what Page Faults actually are.


Jeroen.

[-- Attachment #2: Type: text/html, Size: 335 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread
* [Xenomai-help] page faults
@ 2007-04-16 19:49 Jeff Weber
  2007-04-16 20:05 ` Philippe Gerum
  0 siblings, 1 reply; 17+ messages in thread
From: Jeff Weber @ 2007-04-16 19:49 UTC (permalink / raw)
  To: Xenomai Help

I need some help finding the cause for page faults in my RT application.
My app has a startup phase, where I can tolerate page faults, and a hard 
realtime phase, where page faults cannot be tolerated.  Trouble is, I 
continue to get page faults in the hard realtime phase.

The app encounters a page fault while writing to a heap buffer.  I've even 
added steps to clear the entire buffer in the startup phase, after 
mlockall(), to ensure each page is locked in place.  Here's a timeline of the 
fault:

static constructor runs and allocates buffer from heap
application main() runs
begin application startup phase
mlockall(MCL_CURRENT | MCL_FUTURE) runs and returns 0
entire buffer cleared
paranoid code even verifies buffer addr 0x81f4000 contents are 0
begin application hard realtime phase
time elapses ...
page fault copying stack addr 0xb645a2d1 to heap buffer addr 0x81f4000

The page fault is confirmed by the kernel debug message:
Xenomai: Switching mythread to secondary mode after exception #14 from 
user-space at 0x80fb8c5 (pid 3558)

as well as the delivery of SIGXCPU to my application (at my request).

How do I prevent this page fault?

Is this issue covered by the recent NOCOW activity?

	thanks,
	Jeff

my config:
CPU: VIA Nehemiah (i386)
ipipe version: 1.5-00
Xenomai: 2.2.4
Linux kernel: 2.6.17.14


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2007-04-20 17:24 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-28 14:22 [Xenomai-help] Page faults Jeroen Van den Keybus
2006-02-28 15:05 ` Jan Kiszka
2006-02-28 15:29   ` Jeroen Van den Keybus
2006-02-28 16:29     ` Jan Kiszka
2006-02-28 16:31 ` Philippe Gerum
2006-02-28 17:08   ` Jeroen Van den Keybus
  -- strict thread matches above, loose matches on Subject: below --
2007-04-16 19:49 [Xenomai-help] page faults Jeff Weber
2007-04-16 20:05 ` Philippe Gerum
2007-04-16 20:20   ` Jeff Weber
2007-04-16 20:43     ` Gilles Chanteperdrix
2007-04-16 21:27       ` Jeff Weber
2007-04-16 21:34         ` Gilles Chanteperdrix
2007-04-17 13:21           ` Jeff Weber
2007-04-17 19:17             ` Gilles Chanteperdrix
2007-04-17 20:59               ` Jeff Weber
2007-04-20 16:43               ` Jeff Weber
2007-04-20 17:24                 ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.