Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.system > #72802

Re: Virtual memory limits for 1 process

From Alan Baker <email@domain.com>
Newsgroups comp.sys.mac.system
Subject Re: Virtual memory limits for 1 process
Date 2015-04-07 10:42 -0700
Organization Datemas.de http://www.news.datemas.de
Message-ID <mg14uk$3sp$1@news.datemas.de> (permalink)
References <55239077$0$46977$c3e8da3$aae71a0a@news.astraweb.com> <55240f71$0$1797$b1db1813$2411a48f@news.astraweb.com>

Show all headers | View raw


On 2015-04-07 17:10:08 +0000, JF Mezei said:

> On 15-04-07 08:29, Alan Browne wrote:
> 
>> Oddly enough I do some GPS work with a 32 bit compiler.  Thought I don't
>> need nearly so much memory, in testing the limits I can load up to 3.5
>> GB of data into dynamically allocated memory (b-trees and linked lists
>> of large arrays).
> 
> 
> on VMS, there are specific per precess limits on number of files that
> can be opened at a time and how much virtual (and physical) memory a
> process is allowed to consume. So when designing an app, you have to
> make sure the app either fits those limits, or that you boost the limits.
> 
> On OS-X/Unix, I have no kowledge of such limits, hence my question of
> whether opening hundreds of files and doing an mmap on them is
> somethingt that is within the limits.   (this is to eventually build 3D
> model of australia so there are a lot of tiles that needs to be loaded).

There are such limits, and they can be modified if you have special 
requirements.

This command: "sysctl -a | grep file"

kern.maxfiles = 12288
kern.maxfilesperproc = 10240
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
kern.corefile = /cores/core.%P
kern.maxfiles: 12288
kern.maxfilesperproc: 10240

kern.corefile: /cores/core.%P
kern.hibernatefile: /var/vm/sleepimage
kern.num_files: 3565
vm.vm_page_filecache_min: 209715

This guy has a bit more to say on how to change the limits:

<http://krypted.com/mac-os-x/maximum-files-in-mac-os-x/>

Back to comp.sys.mac.system | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Virtual memory limits for 1 process JF Mezei <jfmezei.spamnot@vaxination.ca> - 2015-04-07 04:08 -0400
  Re: Virtual memory limits for 1 process Alan Browne <alan.browne@freelunchvideotron.ca> - 2015-04-07 08:29 -0400
    Re: Virtual memory limits for 1 process JF Mezei <jfmezei.spamnot@vaxination.ca> - 2015-04-07 13:10 -0400
      Re: Virtual memory limits for 1 process Alan Baker <email@domain.com> - 2015-04-07 10:42 -0700
        Re: Virtual memory limits for 1 process JF Mezei <jfmezei.spamnot@vaxination.ca> - 2015-04-07 16:08 -0400
      Re: Virtual memory limits for 1 process Alan Browne <alan.browne@freelunchvideotron.ca> - 2015-04-07 20:36 -0400
  Re: Virtual memory limits for 1 process billy@MIX.COM - 2015-04-07 16:54 +0000
    Re: Virtual memory limits for 1 process JF Mezei <jfmezei.spamnot@vaxination.ca> - 2015-04-07 13:33 -0400
  Re: Virtual memory limits for 1 process Siri Cruz <chine.bleu@yahoo.com> - 2015-04-07 22:14 -0700
    Re: Virtual memory limits for 1 process Huge <Huge@nowhere.much.invalid> - 2015-04-08 07:19 +0000
      Re: Virtual memory limits for 1 process Siri Cruz <chine.bleu@yahoo.com> - 2015-04-08 00:27 -0700
        Re: Virtual memory limits for 1 process Huge <Huge@nowhere.much.invalid> - 2015-04-08 08:26 +0000
          Re: Virtual memory limits for 1 process Siri Cruz <chine.bleu@yahoo.com> - 2015-04-08 08:02 -0700
    Re: Virtual memory limits for 1 process JF Mezei <jfmezei.spamnot@vaxination.ca> - 2015-04-08 03:43 -0400
      Re: Virtual memory limits for 1 process David Ritz <dritz@mindspring.com> - 2015-04-08 10:01 -0500
        Re: Virtual memory limits for 1 process Barry Margolin <barmar@alum.mit.edu> - 2015-04-08 12:08 -0400
        Re: Virtual memory limits for 1 process Siri Cruz <chine.bleu@yahoo.com> - 2015-04-08 10:41 -0700
          Re: Virtual memory limits for 1 process JF Mezei <jfmezei.spamnot@vaxination.ca> - 2015-04-08 15:41 -0400
            Re: Virtual memory limits for 1 process Barry Margolin <barmar@alum.mit.edu> - 2015-04-08 15:48 -0400
              Re: Virtual memory limits for 1 process Siri Cruz <chine.bleu@yahoo.com> - 2015-04-08 12:58 -0700
                Re: Virtual memory limits for 1 process JF Mezei <jfmezei.spamnot@vaxination.ca> - 2015-04-08 19:15 -0400
        Re: Virtual memory limits for 1 process Alan Baker <email@domain.com> - 2015-04-08 11:55 -0700

csiph-web