tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Bryan Rank <bryan () compgen ! com>
To: tru64-unix-managers
Subject: SUMMARY: kernel tuning and mmap
Date: Thu, 02 Sep 1999 19:03:29 +0000	[thread overview]
Message-ID: <96079072815862.tru64-unix-managers.marc@archive.invalid> (raw)

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
> 
> 

                 reply	other threads:[~1999-09-02 19:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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