Date: Mon, 12 Mar 2007 20:20:54 +0200 From: "Dima Sorkin" <dima.sorkin@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: limitiation on memory allocation Message-ID: <e40293600703121120w7a013919l36103a19a930440a@mail.gmail.com> In-Reply-To: <6.0.0.22.2.20070309133935.024b8fd0@mail.computinginnovations.com> References: <e40293600703090632v3f25742g16e75708ded632ee@mail.gmail.com> <6.0.0.22.2.20070309094909.024c9dd0@mail.computinginnovations.com> <e40293600703090906n6f648580p5d46f45455ee707b@mail.gmail.com> <6.0.0.22.2.20070309133935.024b8fd0@mail.computinginnovations.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi. I experimented with the values: 1) On my machine 'maxusers' doesn't influence the maximum memory allowable for allocation for single process. 2) 'maxdsiz' - Yes, as long as I keep 'maxdsiz + maxssiz' below physical memory size - everything is fine. Single process allocates successfully up to 'maxdsiz'. When tried to put 'maxdsiz' > phys mem size, indeed the system failed to boot, in all modes: multiuser, singleuser, safe. So I derive from here that there is no way to cause a _single process_ on FreeBSD to allocate more than physical memory size (?) Thank you and regards, Dima. On 3/9/07, Derek Ragona <derek@computinginnovations.com> wrote: > Not all the settings there are tuneable. In 6.X the allowable memory is > somewhat automatic based on the max users. Your kernel is set to 384. You > can try changing that. > > You can also make some kernel settings in: > /boot/loader.conf > > You can see the possible variables to set in: > /boot/defaults/loader.conf > > I think the one variable you may want to change is: > kern.maxdsiz="to your actual real memory size" > Don't make this larger than the real memory, in my experience that will > cause the system to not boot properly into multi-user. > At 11:06 AM 3/9/2007, Dima Sorkin wrote: > On FreeBSD 6.2 i386 with 2GB of physical memory I can't allocate > more than 500Mb for my program.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e40293600703121120w7a013919l36103a19a930440a>