Subject: Re: help w/ shmat()
To: Frederick Bruckman <fredb@immanent.net>
From: Dave B <spam@dberg.net>
List: netbsd-help
Date: 12/02/2004 17:27:18
On Thu, Dec 02, 2004 at 03:40:35PM -0600, Frederick Bruckman wrote:
> 
> There's no reason to think things would be any different in current...
> MAXDSIZ on atari is still only 64Mb, while it's 1Gb on alpha and i386.
> How much memory are you trying to mmap()? There might be a reason why
> atari's limit is so low, but if you want to find out for yourself,
> try building a kernel with "options MAXDSIZ (1*1024*1024*1024)".
...

  I'd already upped MAXDSIZ to 128*1024*1024 four years ago.  Do you
suspect that this still isn't enough? I've tried the shmget call in my
test case with a size arg as low as 0x100.  No good.  I don't know how
that relates to the calls to mmap(), though (I'm not calling mmap()
explicitly).

  Any other thoughts?

  I'd prefer not to have to try it under -current, if I can avoid that,
since this machine is a web-server/DNS server/Mail server/shell server
that I use heavily (it still has 36M of free RAM and 380M of free
swap, so I imagine physical memory is not my problem).  (And, by the
way, props to TNF, et. al. for letting me make an old 68k machine be
this useful).

Thanks,  --Dave