From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,fe8862bf3867d508,start X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,fe8862bf3867d508,start X-Google-Attributes: gidf678f,public X-Google-Thread: f72b0,fe8862bf3867d508,start X-Google-Attributes: gidf72b0,public From: "Stephen Burke" Subject: Help mlockall() Date: 1999/03/23 Message-ID: <7d8v9t$8l5$1@news1.skynet.be>#1/1 X-Deja-AN: 458108008 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@skynet.be X-Trace: news1.skynet.be 922222717 8869 195.238.18.158 (23 Mar 1999 20:58:37 GMT) Organization: Belgacom Skynet SA/NV NNTP-Posting-Date: 23 Mar 1999 20:58:37 GMT Newsgroups: comp.unix.misc,comp.unix.osf.misc,comp.unix.osf.osf1 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