Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th February 2012
lhrt lhrt is offline
New User
Join Date: Feb 2012
Posts: 2
Default Netbsd per process memory limit?


I am trying to run a solaris binary in netbsd sparc 5.2.1 in qemu. But the application is failing with the error 'UNIX ERR:malloc:Not enough space'.

Can some body suggest any solutions? I am able to run apps up to 255MB memory. Above that it is failing.

I believe recompile kernel will solve the issue but not sure where is these memory settings

Reply With Quote
  #2   (View Single Post)  
Old 25th February 2012
J65nko J65nko is offline
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,540

You probably have to raise the datasize in /etc/login.conf
Don't forget to run cap_mkdb after making the change. You also will need to log out and log in again
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 25th February 2012
lhrt lhrt is offline
New User
Join Date: Feb 2012
Posts: 2


Thanks. I tried that but still same error.

here is the login.conf snippet.

# ath=/usr/bin /bin /usr/sbin /sbin /usr/X11R7/bin /usr/X11R6/bin /usr/pkg/bin /usr/pkg/sbin /usr/local/bin:\
# :umask=022:\
# :maxproc-max=256:\
# :maxproc-cur=64:\
# penfiles-cur=128:\
# :stacksize-cur=8M:\

# Settings used by /etc/rc and root
# This must be set properly for daemons started as root by inetd as well.
# Be sure reset these values back to system defaults in the default class!
The error is

sbrk: grow failed, error = 12
UNIX ERR:malloc:Not enough space
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory limit jaax NetBSD General 2 19th February 2011 11:21 AM
Build Process Warnings IronForge OpenBSD Installation and Upgrading 9 22nd January 2010 11:21 AM
Loader, MBR and the boot process Jago FreeBSD Installation and Upgrading 1 22nd January 2010 04:52 AM
See what process is generating DNS traffic? Bruco FreeBSD General 3 2nd July 2009 05:57 PM
limit use memory by Apache mfaridi FreeBSD Security 4 8th July 2008 05:59 PM

All times are GMT. The time now is 09:13 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick