Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: "Stephen Burke" <stephen.burke@skynet.be>
Subject: Help mlockall()
Date: 1999/03/23	[thread overview]
Message-ID: <7d8v9t$8l5$1@news1.skynet.be> (raw)

Hi,
My question is multipart and I apologize in advance for my lack of
understanding of Virtual Memory, paging, swap space and
program text and data segment therefore I will be using terms like "memory"
rather losely.

1. We are writing an application that uses Unix in a "real-time"
Environment, therefore before the application process starts
it makes a call to mlockall.

My understanding is that all of the data segment is currently "paged" from
disk and "locked" into physical memory.
(Please put me right here if I've got this wrong)

This (will potentially) causes us problems, as the time it takes to "load"
the application into physical memory causes the application to miss
deadlines although subsequent deadlines are met.

Does any "Guru" out there know of a way to make sure that all the
application memory is initially loaded into physical memory?

2. When using Dynamic libraries does the call to mlockall- lock the complete
dynamic library into physical memory.
Static linkage would alleviate the problems of 2. but alas we were supplied
with Third Party libraries in a Dynamic Library format.

3. Does anyone have any opinions on using Dynamic libraries in a "real-time"
Application.
Any help you have on the above and more importantly any where you can put me
"right" on terminology would be greatly appreciated.

Platform
Digital Unix 4.0d
Digital Unix C++ (6.x)
+ Loads of third party libraries.

Thanks

Stephen







             reply	other threads:[~1999-03-23  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-23  5:00 Stephen Burke [this message]
1999-03-24  5:00 ` Help mlockall() Jeff Denham
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox