Re: Maximum memory allocation per process

2008-06-03 Thread Dinesh Nair
On Fri, 30 May 2008 16:37:00 +0200 (CEST), Oliver Fromme wrote:

 Dinesh Nair wrote:
   for those of us who're booting off a stripped down freebsd and are not
   using the 4th routines, are the above to be set before 'load /kernel'
   or after 'load /kernel' ?
 
 It doesn't matter.  The tunables are passed to the kernel
 when it is booted.  In fact, the standard beastie.4th
 stuff loads the kernel before displaying the menu, so
 the settings happen after the kernel is loaded.

thanx for the tip. 

-- 
Regards,   /\_/\   All dogs go to heaven.
[EMAIL PROTECTED](0 0)   http://www.openmalaysiablog.com/
+==oOO--(_)--OOo==+
| for a in past present future; do|
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo The opinions here in no way reflect the opinions of my $a $b.  |
| done; done  |
+=+
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Maximum memory allocation per process

2008-05-30 Thread Dinesh Nair
On Thu, 22 May 2008 06:38:19 -0700, Jeremy Chadwick wrote:
 You need to modify some kernel settings via /boot/loader.conf and
 reboot.  Here's what we use on our production RELENG_6 and RELENG_7
 boxes:
 
 # Increase maximum allocatable memory on a process to 2GB.
 # (We don't choose 3GB (our max RAM) since that would
 # exhaust all memory, and result in a kernel panic.)
 # Set default memory size as 768MB.
 # Maximum stack size is 256MB.
 #
 kern.maxdsiz=2048M
 kern.dfldsiz=768M
 kern.maxssiz=256MB

for those of us who're booting off a stripped down freebsd and are not
using the 4th routines, are the above to be set before 'load /kernel' or
after 'load /kernel' ?

currently, loader.rc contains,

--- cut here ---
set console=comconsole
set hw.ata.atapi_dma=0
set hw.ata.ata_dma=0
set hw.ata.wc=0
load /kernel
load -t mfs_root /mfsroot
boot
--- cut here ---

-- 
Regards,   /\_/\   All dogs go to heaven.
[EMAIL PROTECTED](0 0)   http://www.openmalaysiablog.com/
+==oOO--(_)--OOo==+
| for a in past present future; do|
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo The opinions here in no way reflect the opinions of my $a $b.  |
| done; done  |
+=+
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Maximum memory allocation per process

2008-05-30 Thread Jeremy Chadwick
On Fri, May 30, 2008 at 01:58:14PM +0800, Dinesh Nair wrote:
 On Thu, 22 May 2008 06:38:19 -0700, Jeremy Chadwick wrote:
  You need to modify some kernel settings via /boot/loader.conf and
  reboot.  Here's what we use on our production RELENG_6 and RELENG_7
  boxes:
  
  # Increase maximum allocatable memory on a process to 2GB.
  # (We don't choose 3GB (our max RAM) since that would
  # exhaust all memory, and result in a kernel panic.)
  # Set default memory size as 768MB.
  # Maximum stack size is 256MB.
  #
  kern.maxdsiz=2048M
  kern.dfldsiz=768M
  kern.maxssiz=256MB
 
 for those of us who're booting off a stripped down freebsd and are not
 using the 4th routines, are the above to be set before 'load /kernel' or
 after 'load /kernel' ?
 
 currently, loader.rc contains,
 
 --- cut here ---
 set console=comconsole
 set hw.ata.atapi_dma=0
 set hw.ata.ata_dma=0
 set hw.ata.wc=0
 load /kernel
 load -t mfs_root /mfsroot
 boot
 --- cut here ---

I believe these would either need to be set *before* loading the kernel,
or, possibly it doesn't matter at all (they might be passed to the
kernel itself during boot).

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Maximum memory allocation per process

2008-05-30 Thread Oliver Fromme
Dinesh Nair wrote:
  for those of us who're booting off a stripped down freebsd and are not
  using the 4th routines, are the above to be set before 'load /kernel' or
  after 'load /kernel' ?

It doesn't matter.  The tunables are passed to the kernel
when it is booted.  In fact, the standard beastie.4th
stuff loads the kernel before displaying the menu, so
the settings happen after the kernel is loaded.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

Being really good at C++ is like being really good
at using rocks to sharpen sticks.
-- Thant Tessman
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Maximum memory allocation per process

2008-05-22 Thread Jeremy Chadwick
On Thu, May 22, 2008 at 11:00:37PM +1000, Adrian Thearle wrote:
 I have a problem with a perl script running out of memory. From my googling 
 I have found that perl itself does not seem to impose any memory limits, 
 and I have check ulimit and login.conf for any userclass limitations but 
 found nothing that seems to be limiting my memory.

 I have 128MBytes of RAM and a 2Gbyte swap partition.

 I am currently running
 FreeBSD albert 6.2-STABLE FreeBSD 6.2-STABLE #11: Sun Sep  2 00:45:05 EST 
 2007
 which I guess isn't exactly the latest... but the same thing happens on my 
 REL7.0 Box

 The process (imapsync in this case) runs out of ram at pretty much 512MB. I 
 read on a forum that BSD 6 imposes such a limit of 512MB per process, but i 
 have found no where to tune this, or even see what it is.

You need to modify some kernel settings via /boot/loader.conf and
reboot.  Here's what we use on our production RELENG_6 and RELENG_7
boxes:

# Increase maximum allocatable memory on a process to 2GB.
# (We don't choose 3GB (our max RAM) since that would
# exhaust all memory, and result in a kernel panic.)
# Set default memory size as 768MB.
# Maximum stack size is 256MB.
#
kern.maxdsiz=2048M
kern.dfldsiz=768M
kern.maxssiz=256MB

 I have also read that there are two sysctl namely, kern.maxdsiz and 
 kern.maxssiz, that can tune memory allocation but what happend to them in 
 Freebsd 6.

These are not sysctls, they are kernel settings.  They exist on both
RELENG_6 and RELENG_7.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]