tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: kernel tuning and mmap
@ 1999-09-02 19:03 Bryan Rank
  0 siblings, 0 replies; only message in thread
From: Bryan Rank @ 1999-09-02 19:03 UTC (permalink / raw)
  To: tru64-unix-managers

Thanks to...

Alan
Serguei Patchkovsk
Keith Piepho



Serguei's reply seems to sum it up.
> I am doing some development which will require mmap'ping a 1.8 gig
> file into memory.  I have two questions which don't seem to be covered in
> the man page or the system administrators guide.
>
>   1. Do I need to tune the kernel to allow that big of a file to be
>      mmap'ed?

You might have. Make sure that 'sysconfig -q vm vm-maxvas' is large
enough to fit both the mmap'ed file and the process doing the mmap'ing.
Same for 'sysconfig -q proc max-per-proc-address-space'

>   2. Is there a way for me to ensure that the table (file) doesn't get
>      swapped out?  The machine will have 6 gig of RAM.

If you are absolutely sure this is what you want, mlock(3) will take
care of it. You may have to increase 'sysconfig -q vm vm-maxwire' to
do this.
~



On Thu, 2 Sep 1999, Bryan Rank wrote:

> Hello,
> 
> I am doing some development which will require mmap'ping a 1.8 gig
> file into memory.  I have two questions which don't seem to be covered in 
> the man page or the system administrators guide.
> 
>   1. Do I need to tune the kernel to allow that big of a file to be
>      mmap'ed?
> 
>   2. Is there a way for me to ensure that the table (file) doesn't get
>      swapped out?  The machine will have 6 gig of RAM.
> 
> 
> 
> Thanks very much,
> will summarize,
> 
> 
> Bryan
> 
> 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-09-02 19:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-02 19:03 SUMMARY: kernel tuning and mmap Bryan Rank

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