* Locking Process in Memory under DEC OSF/1
@ 1993-11-08 21:25 Steve Rosen
1993-11-09 0:41 ` Dave Cherkus
1993-11-18 7:02 ` Jeremy
0 siblings, 2 replies; 6+ messages in thread
From: Steve Rosen @ 1993-11-08 21:25 UTC (permalink / raw)
I have a process that I want to lock in physical memory or at least keep in
physical memory as much as possible. Is there any mechanism to control this. I
don't have access to the source code so it would have to be done at the
operating system level.
--
--------------------------------
Steve Rosen
Fox Chase Cancer Center
SM_Rosen@fccc.edu
________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Locking Process in Memory under DEC OSF/1
1993-11-08 21:25 Locking Process in Memory under DEC OSF/1 Steve Rosen
@ 1993-11-09 0:41 ` Dave Cherkus
1993-11-09 7:58 ` Burkhard Neidecker-Lutz
1993-11-18 7:02 ` Jeremy
1 sibling, 1 reply; 6+ messages in thread
From: Dave Cherkus @ 1993-11-09 0:41 UTC (permalink / raw)
In article <2bmdgu$sq6@rigel.fccc.edu>, smrosen@vega.rm.fccc.edu (Steve Rosen) writes:
|> I have a process that I want to lock in physical memory or at least keep in
|> physical memory as much as possible. Is there any mechanism to control this. I
|> don't have access to the source code so it would have to be done at the
|> operating system level.
On OSF/1, you have a choice...
axposf.pa.dec.com> man -k lock | grep mem
mlock, munlock (3) - Lock or unlock a specified region in memory (P1003.4/D11)
mlockall, munlockall (3) - Lock or unlock all of a specified process's pages into memory (P1003.4/D11)
plock (2) - Locks a process' text and/or data segments in memory
In the past, I've used plock() with good results...
----
Dave Cherkus UniMaster, Inc. cherkus@unimaster.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Locking Process in Memory under DEC OSF/1
1993-11-09 0:41 ` Dave Cherkus
@ 1993-11-09 7:58 ` Burkhard Neidecker-Lutz
1993-11-09 15:14 ` Dave Cherkus
0 siblings, 1 reply; 6+ messages in thread
From: Burkhard Neidecker-Lutz @ 1993-11-09 7:58 UTC (permalink / raw)
In article <CG78LB.Dur@mv.mv.com> cherkus@UniMaster.COM writes:
>In article <2bmdgu$sq6@rigel.fccc.edu>, smrosen@vega.rm.fccc.edu (Steve Rosen) writes:
>|> I don't have access to the source code so it would have to be done at the
>|> operating system level.
>
>In the past, I've used plock() with good results...
None of these calls will help because he said he doesn't have sources.
Burkhard Neidecker-Lutz
Distributed Multimedia Group, CEC Karlsruhe
BERKOM II Project
Digital Equipment Corporation
neideck@nestvx.enet.dec.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Locking Process in Memory under DEC OSF/1
1993-11-09 7:58 ` Burkhard Neidecker-Lutz
@ 1993-11-09 15:14 ` Dave Cherkus
0 siblings, 0 replies; 6+ messages in thread
From: Dave Cherkus @ 1993-11-09 15:14 UTC (permalink / raw)
In article <2bniivINNonv@usenet.pa.dec.com>, neideck@bier.enet.dec.com (Burkhard Neidecker-Lutz) writes:
|> In article <CG78LB.Dur@mv.mv.com> cherkus@UniMaster.COM writes:
|> >In article <2bmdgu$sq6@rigel.fccc.edu>, smrosen@vega.rm.fccc.edu (Steve Rosen) writes:
|> >|> I don't have access to the source code so it would have to be done at the
|> >|> operating system level.
|> >
|> >In the past, I've used plock() with good results...
|>
|> None of these calls will help because he said he doesn't have sources.
|>
The question can be read two ways because it does not state whether he
wants to perform the function from user space or from kernel space.
My original answer is correct if he is writing a user space application
that needs to lock its pages into physical memory (which is what I
thought he was asking). This can be coded without access to the
source, just like any other libc function.
If he is writing kernel code, he should use the vm_map_pageable()
function, which is documented in the device driver reference.
Assuming the proper competence, the device driver reference should
contain enough information so that the function can be called
without having access to the kernel's source code.
----
Dave Cherkus UniMaster, Inc. cherkus@unimaster.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Locking Process in Memory under DEC OSF/1
1993-11-08 21:25 Locking Process in Memory under DEC OSF/1 Steve Rosen
1993-11-09 0:41 ` Dave Cherkus
@ 1993-11-18 7:02 ` Jeremy
1993-11-26 16:33 ` Mark Charette
1 sibling, 1 reply; 6+ messages in thread
From: Jeremy @ 1993-11-18 7:02 UTC (permalink / raw)
Steve Rosen (smrosen@vega.rm.fccc.edu) wrote:
: I have a process that I want to lock in physical memory or at least keep in
: physical memory as much as possible. Is there any mechanism to control this. I
: don't have access to the source code so it would have to be done at the
: operating system level.
I don't think there's any os command to do that, you can place a file in
memory though, but your program has to know where to look for it.
Alternatively, you could lower the nice value to -12. Or you can set up
realtime option, and run the process in a realtime mode.
--
+--------------------------------------+---------------------------------------+
| National University of Singapore | Fax : (065)-778-0198 |
| 10 Kent Ridge Crescent | Tel : (065)-772-6429 |
| Singapore 0511 | Internet : ccengce@leonis.nus.sg |
+------------------------------------------------------------------------------+
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Locking Process in Memory under DEC OSF/1
1993-11-18 7:02 ` Jeremy
@ 1993-11-26 16:33 ` Mark Charette
0 siblings, 0 replies; 6+ messages in thread
From: Mark Charette @ 1993-11-26 16:33 UTC (permalink / raw)
Jeremy (ccengce@leonis.nus.sg) wrote:
: Steve Rosen (smrosen@vega.rm.fccc.edu) wrote:
: : I have a process that I want to lock in physical memory or at least keep in
: : physical memory as much as possible. Is there any mechanism to control this. I
: : don't have access to the source code so it would have to be done at the
: : operating system level.
: I don't think there's any os command to do that, you can place a file in
: memory though, but your program has to know where to look for it.
Try the plock() call if available and you can get your process to suid root.
plock() allows a process to lock text or data or both into real memory.
--
Mark Charette | csh> Disclaimer: I speak for myself
MIKA Systems | Disclaimer:: Too many arguments
charette@ultoe.det.dec.com | csh>
(313) 280-0703 |
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1993-11-26 16:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-11-08 21:25 Locking Process in Memory under DEC OSF/1 Steve Rosen
1993-11-09 0:41 ` Dave Cherkus
1993-11-09 7:58 ` Burkhard Neidecker-Lutz
1993-11-09 15:14 ` Dave Cherkus
1993-11-18 7:02 ` Jeremy
1993-11-26 16:33 ` Mark Charette
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox